@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function __construct(Collection $ivs) |
| 15 | 15 | { |
| 16 | - $this->ivs = $ivs->map(function (IV $iv) { |
|
| 16 | + $this->ivs = $ivs->map(function(IV $iv) { |
|
| 17 | 17 | $iv->perfection = $this->calculatePerfection($iv); |
| 18 | 18 | |
| 19 | 19 | return $iv; |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | */ |
| 85 | 85 | private function getBy($key, $value) |
| 86 | 86 | { |
| 87 | - if (!in_array($key, ['id', 'name', 'stamina', 'attack', 'defense'])) { |
|
| 87 | + if (!in_array($key, [ 'id', 'name', 'stamina', 'attack', 'defense' ])) { |
|
| 88 | 88 | throw new BadFunctionCallException(); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | ->sortBy('level'); |
| 75 | 75 | |
| 76 | 76 | if ($neverUpgraded) { |
| 77 | - $this->potentialLevels->filter(function ($potentialLevel) { |
|
| 77 | + $this->potentialLevels->filter(function($potentialLevel) { |
|
| 78 | 78 | return $potentialLevel->level % 2 === 0; |
| 79 | 79 | }); |
| 80 | 80 | } |