Passed
Pull Request — master (#22)
by Théo
02:53
created
fixtures/Signature/DummyBufferedHash.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
 namespace KevinGH\Box\Signature;
6 6
 
Please login to merge, or discard this patch.
src/Box.php 1 patch
Spacing   +2 added lines, -2 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.
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     {
223 223
         return array_reduce(
224 224
             $this->compactors,
225
-            function (string $contents, Compactor $compactor) use ($file): string {
225
+            function(string $contents, Compactor $compactor) use ($file): string {
226 226
                 return $compactor->compact($file, $contents);
227 227
             },
228 228
             $contents
Please login to merge, or discard this patch.
src/Command/Build.php 1 patch
Spacing   +2 added lines, -2 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.
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
             OutputInterface::VERBOSITY_VERBOSE
545 545
         );
546 546
 
547
-        $logCompactors = function (Compactor $compactor) use ($logger): void {
547
+        $logCompactors = function(Compactor $compactor) use ($logger): void {
548 548
             $logger->log(
549 549
                 BuildLogger::PLUS_PREFIX,
550 550
                 get_class($compactor),
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Spacing   +8 added lines, -8 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.
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
 
542 542
             array_walk(
543 543
                 $directories,
544
-                function (&$directory) use ($basePath): void {
544
+                function(&$directory) use ($basePath): void {
545 545
                     $directory = $basePath
546 546
                         .DIRECTORY_SEPARATOR
547 547
                         .canonicalize($directory);
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 
616 616
             array_walk(
617 617
                 $blacklist,
618
-                function (&$file): void {
618
+                function(&$file): void {
619 619
                     $file = canonicalize($file);
620 620
                 }
621 621
             );
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
             preg_quote($basePath.DIRECTORY_SEPARATOR, '/')
640 640
         );
641 641
 
642
-        return function (SplFileInfo $file) use ($base, $blacklist): ?bool {
642
+        return function(SplFileInfo $file) use ($base, $blacklist): ?bool {
643 643
             $path = canonicalize(
644 644
                 preg_replace($base, '', $file->getPathname())
645 645
             );
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
 
682 682
             array_walk(
683 683
                 $directories,
684
-                function (&$directory) use ($basePath): void {
684
+                function(&$directory) use ($basePath): void {
685 685
                     $directory = $basePath
686 686
                         .DIRECTORY_SEPARATOR
687 687
                         .rtrim(canonicalize($directory), DIRECTORY_SEPARATOR);
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
      */
785 785
     private static function processFinders(array $findersConfig, string $basePath, Closure $blacklistFilter): array
786 786
     {
787
-        $processFinderConfig = function ($methods) use ($basePath, $blacklistFilter): Finder {
787
+        $processFinderConfig = function($methods) use ($basePath, $blacklistFilter): Finder {
788 788
             $finder = Finder::create()
789 789
                 ->files()
790 790
                 ->filter($blacklistFilter)
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
 
797 797
                 array_walk(
798 798
                     $methods->in,
799
-                    function (&$directory) use ($basePath): void {
799
+                    function(&$directory) use ($basePath): void {
800 800
                         $directory = canonicalize(
801 801
                             $basePath.DIRECTORY_SEPARATOR.$directory
802 802
                         );
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
 
995 995
     private static function retrieveMapper(array $map): Closure
996 996
     {
997
-        return function (string $path) use ($map): ?string {
997
+        return function(string $path) use ($map): ?string {
998 998
             foreach ($map as $item) {
999 999
                 foreach ($item as $match => $replace) {
1000 1000
                     if (empty($match)) {
Please login to merge, or discard this patch.