Passed
Pull Request — master (#182)
by Arman
12:44 queued 09:39
created
src/Libraries/Auth/AuthManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         if ($authAdapter == 'api') {
81 81
             $jwt = (new JWToken())
82 82
                 ->setLeeway(1)
83
-                ->setClaims((array)config()->get('auth.claims'));
83
+                ->setClaims((array) config()->get('auth.claims'));
84 84
         }
85 85
 
86 86
         $authAdapterClassName = __NAMESPACE__ . '\\Adapters\\' . ucfirst($authAdapter) . 'Adapter';
Please login to merge, or discard this patch.
src/Di/Di.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
             return [];
183 183
         }
184 184
 
185
-        return (array)require_once $userDependencies;
185
+        return (array) require_once $userDependencies;
186 186
     }
187 187
 
188 188
     /**
Please login to merge, or discard this patch.
src/Bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             $router->findRoute();
77 77
 
78 78
             if (config()->get('multilang')) {
79
-                Lang::getInstance((int)config()->get(Lang::LANG_SEGMENT))->load();
79
+                Lang::getInstance((int) config()->get(Lang::LANG_SEGMENT))->load();
80 80
             }
81 81
 
82 82
             $debugger->addToStoreCell(Debugger::HOOKS, LogLevel::INFO, HookManager::getRegistered());
Please login to merge, or discard this patch.
src/Logger/LoggerManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public static function getHandler(): Logger
42 42
     {
43
-        if(is_debug_mode()) {
43
+        if (is_debug_mode()) {
44 44
             return LoggerFactory::createLogger();
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Logger/Adapters/DailyAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     {
52 52
         $this->fs = Di::get(FileSystem::class);
53 53
 
54
-        if(!$this->fs->isDirectory( $params['path'])) {
54
+        if (!$this->fs->isDirectory($params['path'])) {
55 55
             throw LoggerException::logPathIsNotDirectory($params['path']);   
56 56
         }
57 57
         
Please login to merge, or discard this patch.
src/Helpers/server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return [];
46 46
         }
47 47
 
48
-        return array_reduce(array_keys($data), function ($headers, $key) use ($data) {
48
+        return array_reduce(array_keys($data), function($headers, $key) use ($data) {
49 49
             if (strpos($key, 'HTTP_') === 0) {
50 50
                 $formattedKey = strtolower(str_replace('_', '-', substr($key, 5)));
51 51
                 $headers[$formattedKey] = $data[$key];
Please login to merge, or discard this patch.
src/Router/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         ];
99 99
 
100 100
         if (isset($this->moduleOptions['cacheable'])) {
101
-            $this->currentRoute['cache_settings']['shouldCache'] = (bool)$this->moduleOptions['cacheable'];
101
+            $this->currentRoute['cache_settings']['shouldCache'] = (bool) $this->moduleOptions['cacheable'];
102 102
         }
103 103
 
104 104
         if (is_callable($params[0])) {
Please login to merge, or discard this patch.
src/Libraries/Auth/AuthServiceInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
      */
30 30
     public function get(string $field, ?string $value): ?User;
31 31
 
32
-     /**
33
-     * Add
34
-     * @param array $data
35
-     * @return User
36
-     */
32
+        /**
33
+         * Add
34
+         * @param array $data
35
+         * @return User
36
+         */
37 37
     public function add(array $data): User;
38 38
 
39 39
     /**
Please login to merge, or discard this patch.