Passed
Pull Request — master (#60)
by Tomáš
02:16
created
src/FileSystem/file_system.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the box project.
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the box project.
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
     {
495 495
         $blacklist = self::retrieveBlacklist($raw, $basePath);
496 496
 
497
-        return function (SplFileInfo $file) use ($blacklist): ?bool {
497
+        return function(SplFileInfo $file) use ($blacklist): ?bool {
498 498
             if (in_array($file->getRealPath(), $blacklist, true)) {
499 499
                 return false;
500 500
             }
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 
515 515
         $blacklist = $raw->blacklist;
516 516
 
517
-        $normalizePath = function ($file) use ($basePath): string {
517
+        $normalizePath = function($file) use ($basePath): string {
518 518
             return self::normalizeFilePath($file, $basePath);
519 519
         };
520 520
 
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
 
539 539
         Assertion::allString($files);
540 540
 
541
-        $normalizePath = function (string $file) use ($basePath, $key): SplFileInfo {
541
+        $normalizePath = function(string $file) use ($basePath, $key): SplFileInfo {
542 542
             $file = self::normalizeFilePath($file, $basePath);
543 543
 
544 544
             Assertion::file(
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
      */
605 605
     private static function processFinders(array $findersConfig, string $basePath, Closure $blacklistFilter): array
606 606
     {
607
-        $processFinderConfig = function (stdClass $config) use ($basePath, $blacklistFilter) {
607
+        $processFinderConfig = function(stdClass $config) use ($basePath, $blacklistFilter) {
608 608
             return self::processFinder($config, $basePath, $blacklistFilter);
609 609
         };
610 610
 
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
             ->ignoreVCS(true)
627 627
         ;
628 628
 
629
-        $normalizedConfig = (function (array $config, Finder $finder): array {
629
+        $normalizedConfig = (function(array $config, Finder $finder): array {
630 630
             $normalizedConfig = [];
631 631
 
632 632
             foreach ($config as $method => $arguments) {
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
             return $normalizedConfig;
648 648
         })((array) $config, $finder);
649 649
 
650
-        $createNormalizedDirectories = function (string $directory) use ($basePath): string {
650
+        $createNormalizedDirectories = function(string $directory) use ($basePath): string {
651 651
             $directory = self::normalizeDirectoryPath($directory, $basePath);
652 652
 
653 653
             Assertion::directory($directory);
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
             return $directory;
656 656
         };
657 657
 
658
-        $normalizeFileOrDirectory = function (string &$fileOrDirectory) use ($basePath): void {
658
+        $normalizeFileOrDirectory = function(string &$fileOrDirectory) use ($basePath): void {
659 659
             $fileOrDirectory = self::normalizeDirectoryPath($fileOrDirectory, $basePath);
660 660
 
661 661
             if (false === file_exists($fileOrDirectory)) {
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
 
714 714
         $directories = $raw->{$key};
715 715
 
716
-        $normalizeDirectory = function (string $directory) use ($basePath, $key): string {
716
+        $normalizeDirectory = function(string $directory) use ($basePath, $key): string {
717 717
             $directory = self::normalizeDirectoryPath($directory, $basePath);
718 718
 
719 719
             Assertion::directory(
Please login to merge, or discard this patch.
src/Box.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the box project.
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         $this->phar = $phar;
68 68
         $this->file = $file;
69 69
 
70
-        $this->retrieveRelativeBasePath = function (string $path) { return $path; };
71
-        $this->mapFile = function (): void { };
70
+        $this->retrieveRelativeBasePath = function(string $path) { return $path; };
71
+        $this->mapFile = function(): void { };
72 72
     }
73 73
 
74 74
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $fileWithContents = $this->processContents(
159 159
             array_map(
160
-                function ($file): string {
160
+                function($file): string {
161 161
                     // Convert files to string as SplFileInfo is not serializable
162 162
                     return (string) $file;
163 163
                 },
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
         $placeholders = $this->placeholders;
281 281
         $compactors = $this->compactors;
282 282
 
283
-        $processFile = function (string $file) use ($retrieveRelativeBasePath, $mapFile, $placeholders, $compactors): array {
283
+        $processFile = function(string $file) use ($retrieveRelativeBasePath, $mapFile, $placeholders, $compactors): array {
284 284
             $contents = file_contents($file);
285 285
 
286 286
             $relativePath = $retrieveRelativeBasePath($file);
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     {
324 324
         return array_reduce(
325 325
             $compactors,
326
-            function (string $contents, Compactor $compactor) use ($file): string {
326
+            function(string $contents, Compactor $compactor) use ($file): string {
327 327
                 return $compactor->compact($file, $contents);
328 328
             },
329 329
             $contents
Please login to merge, or discard this patch.
src/Test/FileSystemTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the box project.
Please login to merge, or discard this patch.