Test Setup Failed
Push — master ( dd5da1...e41902 )
by
unknown
02:24
created
src/Charcoal/Model/Service/MetadataLoader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             );
114 114
         }
115 115
 
116
-        if (strpos($ident,'\\') !== false) {
116
+        if (strpos($ident, '\\') !== false) {
117 117
             $ident = $this->classnameToIdent($ident);
118 118
         }
119 119
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         $classname = $this->identToClassname($ident);
382 382
 
383 383
         if (!class_exists($classname) && !interface_exists($classname)) {
384
-            return [ $ident ];
384
+            return [$ident];
385 385
         }
386 386
 
387 387
         $classes   = array_values(class_parents($classname));
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
      */
511 511
     private function filenameFromIdent($ident)
512 512
     {
513
-        $filename  = str_replace([ '\\' ], '.', $ident);
513
+        $filename  = str_replace(['\\'], '.', $ident);
514 514
         $filename .= '.json';
515 515
 
516 516
         return $filename;
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
         $parts = explode('-', $ident);
535 535
         array_walk(
536 536
             $parts,
537
-            function(&$i) {
537
+            function (&$i) {
538 538
                 $i = ucfirst($i);
539 539
             }
540 540
         );
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 
547 547
         array_walk(
548 548
             $parts,
549
-            function(&$i) {
549
+            function (&$i) {
550 550
                 $i = ucfirst($i);
551 551
             }
552 552
         );
Please login to merge, or discard this patch.