From 7e11c3ede3eb6c2881e684845a4882fb2dc33235 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Oct 2017 11:27:06 +0100 Subject: [PATCH] Fix switch catch spacing --- Algorithm/Knappsack/Backpack.php | 2 +- Localization/L11nManager.php | 2 +- System/File/Storage.php | 2 +- Views/ViewAbstract.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Algorithm/Knappsack/Backpack.php b/Algorithm/Knappsack/Backpack.php index f0297f8d2..7bc983eaf 100644 --- a/Algorithm/Knappsack/Backpack.php +++ b/Algorithm/Knappsack/Backpack.php @@ -75,7 +75,7 @@ class Backpack public function pack(int $type) { - switch($type) { + switch ($type) { case AlgorithmType::BRUTEFORCE: return $this->bruteforce(); default: diff --git a/Localization/L11nManager.php b/Localization/L11nManager.php index 78a121720..ca7fb1ff7 100644 --- a/Localization/L11nManager.php +++ b/Localization/L11nManager.php @@ -160,7 +160,7 @@ class L11nManager if (!isset($this->language[$code][$module][$translation])) { return 'ERROR'; } - } catch(\Exception $e) { + } catch (\Exception $e) { FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [ 'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.', ]); diff --git a/System/File/Storage.php b/System/File/Storage.php index 66586f2dd..d7d464215 100644 --- a/System/File/Storage.php +++ b/System/File/Storage.php @@ -78,7 +78,7 @@ final class Storage $env = $env::getInstance(); self::$registered[$stg] = $env; - } catch(\Throwable $e) { + } catch (\Throwable $e) { throw new \Exception(); } } diff --git a/Views/ViewAbstract.php b/Views/ViewAbstract.php index 29e5971c0..8b8342f69 100644 --- a/Views/ViewAbstract.php +++ b/Views/ViewAbstract.php @@ -237,7 +237,7 @@ abstract class ViewAbstract implements \Serializable if (is_array($includeData)) { return json_encode($includeData); } - } catch(\Throwable $e) { + } catch (\Throwable $e) { $ob = ''; } finally { return $ob;