Completed
Push — master ( aa295b...7990d7 )
by Greg
01:52
created
src/CommandFileDiscovery.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function ignoreNamespacePart($base, $ignore)
153 153
     {
154
-        $replacementPart = '\\' . $base . '\\';
155
-        $ignoredPart = $replacementPart . $ignore . '\\';
154
+        $replacementPart = '\\'.$base.'\\';
155
+        $ignoredPart = $replacementPart.$ignore.'\\';
156 156
         $this->strippedNamespaces[$ignoredPart] = $replacementPart;
157 157
 
158 158
         return $this;
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         // Strip out any part of the namespace the client did not want.
256 256
         // @see CommandFileDiscovery::ignoreNamespacePart
257 257
         return array_map(
258
-            function ($fqcn) {
258
+            function($fqcn) {
259 259
                 return str_replace(
260 260
                     array_keys($this->strippedNamespaces),
261 261
                     array_values($this->strippedNamespaces),
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      */
318 318
     protected function getSearchDepth()
319 319
     {
320
-        return $this->searchDepth <= 0 ? '== 0' : '<= ' . $this->searchDepth;
320
+        return $this->searchDepth <= 0 ? '== 0' : '<= '.$this->searchDepth;
321 321
     }
322 322
 
323 323
     /**
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
         return $this->joinParts(
416 416
             '\\',
417 417
             $namespaceParts,
418
-            function ($item) {
418
+            function($item) {
419 419
                 return !is_numeric($item) && !empty($item);
420 420
             }
421 421
         );
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         $path = $this->joinParts(
435 435
             '/',
436 436
             $pathParts,
437
-            function ($item) {
437
+            function($item) {
438 438
                 return !empty($item);
439 439
             }
440 440
         );
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     protected function joinParts($delimiter, $parts, $filterFunction)
452 452
     {
453 453
         $parts = array_map(
454
-            function ($item) use ($delimiter) {
454
+            function($item) use ($delimiter) {
455 455
                 return rtrim($item, $delimiter);
456 456
             },
457 457
             $parts
Please login to merge, or discard this patch.