@@ -172,15 +172,15 @@ |
||
| 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()) { |