Completed
Push — master ( 9a3191...caa5cd )
by Jérémy
02:07
created
src/Calculator/Calculator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -172,15 +172,15 @@  discard block
 block discarded – undo
172 172
     {
173 173
         $this->potentialCombinaisons = $this->potentialCombinaisons
174 174
             // Eliminate impossible combinaison for global combinaison
175
-            ->filter(function ($combinaison) use ($global) {
175
+            ->filter(function($combinaison) use ($global) {
176 176
                 if ($combinaison->getTotal() <= $this->getMaxGlobalEvaluation($global) &&
177
-                    $combinaison->getTotal() > $this->getMaxGlobalEvaluation($global-1)) {
177
+                    $combinaison->getTotal() > $this->getMaxGlobalEvaluation($global - 1)) {
178 178
                     return true;
179 179
                 }
180 180
                 return false;
181 181
             })
182 182
             // Eliminate impossible combinaisons with best stats
183
-            ->filter(function ($combinaison) use ($bestStats) {
183
+            ->filter(function($combinaison) use ($bestStats) {
184 184
                 $nonBestStats = array_diff(self::AVAILABLE_OPTIONS, $bestStats);
185 185
                 foreach ($nonBestStats as $nonBestStat) {
186 186
                     if ($combinaison->getAbbreviated($nonBestStat) >= $combinaison->getMaximalIv()) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 return true;
191 191
             })
192 192
             // Eliminate impossible combinaisons with equals best stats
193
-            ->filter(function ($combinaison) use ($bestStats) {
193
+            ->filter(function($combinaison) use ($bestStats) {
194 194
                 foreach ($bestStats as $bestStat) {
195 195
                     if ($combinaison->getAbbreviated($bestStat) != $combinaison->getMaximalIv()) {
196 196
                         return false;
Please login to merge, or discard this patch.