Passed
Push — main ( eb4a74...9116b3 )
by Dimitri
08:20 queued 04:05
created
src/Config/Config.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function exists(string $key): bool
63 63
     {
64
-        if (! $this->configurator->exists($key)) {
64
+        if (!$this->configurator->exists($key)) {
65 65
             $config = explode('.', $key);
66 66
             $this->load($config[0]);
67 67
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function missing(string $key): bool
86 86
     {
87
-        return ! $this->exists($key);
87
+        return !$this->exists($key);
88 88
     }
89 89
 
90 90
     /**
@@ -165,18 +165,18 @@  discard block
 block discarded – undo
165 165
                 }
166 166
                 $this->load($conf, $file, null, $allow_empty);
167 167
             }
168
-        } elseif (! isset(self::$loaded[$config])) {
168
+        } elseif (!isset(self::$loaded[$config])) {
169 169
             $file ??= self::path($config);
170 170
             $schema ??= self::schema($config);
171 171
 
172 172
             $configurations = [];
173
-            if (file_exists($file) && ! in_array($file, get_included_files(), true)) {
173
+            if (file_exists($file) && !in_array($file, get_included_files(), true)) {
174 174
                 $configurations = (array) require $file;
175 175
             }
176 176
 
177 177
             $configurations = Arr::merge(self::$registrars[$config] ?? [], $configurations);
178 178
 
179
-            if (empty($configurations) && ! $allow_empty && ! is_a($schema, Schema::class, true)) {
179
+            if (empty($configurations) && !$allow_empty && !is_a($schema, Schema::class, true)) {
180 180
                 return;
181 181
             }
182 182
 
@@ -283,14 +283,14 @@  discard block
 block discarded – undo
283 283
             }
284 284
 
285 285
             $class   = new ReflectionClass($classname);
286
-            $methods = $class->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC);
286
+            $methods = $class->getMethods(ReflectionMethod::IS_STATIC|ReflectionMethod::IS_PUBLIC);
287 287
 
288 288
             foreach ($methods as $method) {
289
-                if (! ($method->isPublic() && $method->isStatic())) {
289
+                if (!($method->isPublic() && $method->isStatic())) {
290 290
                     continue;
291 291
                 }
292 292
 
293
-                if (! is_array($result = $method->invoke(null))) {
293
+                if (!is_array($result = $method->invoke(null))) {
294 294
                     continue;
295 295
                 }
296 296
 
@@ -359,12 +359,12 @@  discard block
 block discarded – undo
359 359
     {
360 360
         $config = $this->get('app.show_debugbar', 'auto');
361 361
 
362
-        if (! in_array($config, ['auto', true, false], true)) {
362
+        if (!in_array($config, ['auto', true, false], true)) {
363 363
             self::exceptBadConfigValue('show_debugbar', ['auto', true, false], 'app');
364 364
         }
365 365
 
366 366
         if ($config === 'auto') {
367
-            $this->set('app.show_debugbar', ! is_online());
367
+            $this->set('app.show_debugbar', !is_online());
368 368
         }
369 369
     }
370 370
 
Please login to merge, or discard this patch.