Completed
Push — master ( fdc81c...2e750c )
by Jérémy
02:35
created
src/Calculator/Calculator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -172,15 +172,15 @@
 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()) {
Please login to merge, or discard this patch.