From cb8c1fa8ef52c6ef152707ef008cd26e00fa7d9f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 5 Dec 2020 21:39:54 +0100 Subject: [PATCH] phpcs fixes --- Admin/Installer.php | 2 +- Models/Collection.php | 2 +- Theme/Backend/template-functions.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 07c7a83..51cf4fb 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -46,7 +46,7 @@ final class Installer extends InstallerAbstract */ public static function installExternal(DatabasePool $dbPool, array $data) : void { - try { + try { $dbPool->get()->con->query('select 1 from `media`'); } catch (\Exception $e) { return; // @codeCoverageIgnore diff --git a/Models/Collection.php b/Models/Collection.php index 4cabbe4..edc7a23 100755 --- a/Models/Collection.php +++ b/Models/Collection.php @@ -117,7 +117,7 @@ class Collection extends Media implements \Iterator { $current = \current($this->sources); - return $current === false ? $this : $current ; + return $current === false ? $this : $current; } /** diff --git a/Theme/Backend/template-functions.php b/Theme/Backend/template-functions.php index 6509f66..5f826a3 100755 --- a/Theme/Backend/template-functions.php +++ b/Theme/Backend/template-functions.php @@ -21,7 +21,7 @@ $fileIconFunction = function (int $extensionType) : string } elseif ($extensionType === ExtensionType::TEXT) { return 'file-text'; } elseif ($extensionType === ExtensionType::PRESENTATION) { - return 'file-powerpoint'; + return 'file-powerpoint'; } elseif ($extensionType === ExtensionType::PDF) { return 'file-pdf'; } elseif ($extensionType === ExtensionType::ARCHIVE) {