Completed
Branch master (dbd066)
by Konstantinos
05:43
created
src/IVCalculator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param $dustCost
14 14
      * @param bool $neverUpgraded
15 15
      *
16
-     * @return Evaluation
16
+     * @return \Illuminate\Support\Collection
17 17
      */
18 18
     public function evaluate($pokemonNameOrId, $cp, $hp, $dustCost, $neverUpgraded = false)
19 19
     {
Please login to merge, or discard this patch.
src/Entities/Evaluation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Pokedex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Evaluator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.