Passed
Pull Request — master (#116)
by Théo
02:08
created
src/RequirementChecker/RequirementsDumper.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.
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     private static function dumpCheckScript(string ...$files): array
112 112
     {
113 113
         $autoloads = array_map(
114
-            function (string $file): string {
114
+            function(string $file): string {
115 115
                 return sprintf(
116 116
                     'require_once __DIR__."/%s";',
117 117
                     $file
Please login to merge, or discard this patch.
src/RequirementChecker/RequirementCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
              *
147 147
              * @return bool
148 148
              */
149
-            function ($checkPassed, Requirement $requirement) {
149
+            function($checkPassed, Requirement $requirement) {
150 150
                 return $checkPassed && $requirement->isFulfilled();
151 151
             },
152 152
             true
Please login to merge, or discard this patch.
src/RequirementChecker/AppRequirementsFactory.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.
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     private static function exportRequirementsIntoConfig(RequirementCollection $requirements): array
142 142
     {
143 143
         return array_map(
144
-            function (Requirement $requirement): array {
144
+            function(Requirement $requirement): array {
145 145
                 return [
146 146
                     $requirement->getIsFullfilledChecker(),
147 147
                     $requirement->getTestMessage(),
Please login to merge, or discard this patch.
src/RequirementChecker/Requirement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $this->fulfilled = eval($this->checkIsFulfilled);
47 47
         }
48 48
 
49
-        return (bool) $this->fulfilled;  // Cast to boolean, `(bool)` and `boolval()` are not available in PHP 5.3
49
+        return (bool) $this->fulfilled; // Cast to boolean, `(bool)` and `boolval()` are not available in PHP 5.3
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.