Passed
Push — main ( d0f73f...902994 )
by Dimitri
04:06
created
src/Config/Config.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function exists(string $key): bool
64 64
     {
65
-        if (! $this->configurator->exists($key)) {
65
+        if (!$this->configurator->exists($key)) {
66 66
             $config = explode('.', $key);
67 67
             $this->load($config[0]);
68 68
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function missing(string $key): bool
87 87
     {
88
-        return ! $this->exists($key);
88
+        return !$this->exists($key);
89 89
     }
90 90
 
91 91
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         if (is_array($config)) {
161 161
             foreach ($config as $key => $value) {
162
-                if (! is_string($value) || empty($value)) {
162
+                if (!is_string($value) || empty($value)) {
163 163
                     continue;
164 164
                 }
165 165
                 if (is_string($key)) {
@@ -171,18 +171,18 @@  discard block
 block discarded – undo
171 171
                 }
172 172
                 self::load($conf, $file, null, $allow_empty);
173 173
             }
174
-        } elseif (is_string($config) && ! isset(self::$loaded[$config])) {
174
+        } elseif (is_string($config) && !isset(self::$loaded[$config])) {
175 175
             $file ??= self::path($config);
176 176
             $schema ??= self::schema($config);
177 177
 
178 178
             $configurations = [];
179
-            if (file_exists($file) && ! in_array($file, get_included_files(), true)) {
179
+            if (file_exists($file) && !in_array($file, get_included_files(), true)) {
180 180
                 $configurations = (array) require $file;
181 181
             }
182 182
 
183 183
             $configurations = Arr::merge(self::$registrars[$config] ?? [], $configurations);
184 184
 
185
-            if (empty($configurations) && ! $allow_empty && (empty($schema) || ! is_a($schema, Schema::class))) {
185
+            if (empty($configurations) && !$allow_empty && (empty($schema) || !is_a($schema, Schema::class))) {
186 186
                 return;
187 187
             }
188 188
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         if (is_array($accepts_values)) {
206 206
             $accepts_values = '(Accept values: ' . implode('/', $accepts_values) . ')';
207
-        } elseif (! is_string($accepts_values)) {
207
+        } elseif (!is_string($accepts_values)) {
208 208
             throw new InvalidArgumentException('Misuse of the method ' . __METHOD__);
209 209
         }
210 210
 
@@ -286,14 +286,14 @@  discard block
 block discarded – undo
286 286
             }
287 287
 
288 288
             $class   = new ReflectionClass($classname);
289
-            $methods = $class->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC);
289
+            $methods = $class->getMethods(ReflectionMethod::IS_STATIC|ReflectionMethod::IS_PUBLIC);
290 290
 
291 291
             foreach ($methods as $method) {
292
-                if (! ($method->isPublic() && $method->isStatic())) {
292
+                if (!($method->isPublic() && $method->isStatic())) {
293 293
                     continue;
294 294
                 }
295 295
 
296
-                if (! is_array($result = $method->invoke(null))) {
296
+                if (!is_array($result = $method->invoke(null))) {
297 297
                     continue;
298 298
                 }
299 299
 
@@ -362,12 +362,12 @@  discard block
 block discarded – undo
362 362
     {
363 363
         $config = $this->get('app.show_debugbar', 'auto');
364 364
 
365
-        if (! in_array($config, ['auto', true, false], true)) {
365
+        if (!in_array($config, ['auto', true, false], true)) {
366 366
             self::exceptBadConfigValue('show_debugbar', ['auto', true, false], 'app');
367 367
         }
368 368
 
369 369
         if ($config === 'auto') {
370
-            $this->set('app.show_debugbar', ! is_online());
370
+            $this->set('app.show_debugbar', !is_online());
371 371
         }
372 372
     }
373 373
 
Please login to merge, or discard this patch.