Completed
Push — master ( eafdc3...b75110 )
by Jérémy
02:07
created
src/Calculator/Helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
             ->getIntervalLevelFiltered($pokemon, $trainer);
29 29
 
30 30
         $levels
31
-            ->each(function ($level) use (&$dusts, &$loop, $trainer) {
31
+            ->each(function($level) use (&$dusts, &$loop, $trainer) {
32 32
                 $loop += 0.5;
33 33
                 $dusts += $level->dust * 2;
34 34
             });
35 35
 
36
-        if ($pokemon*2 % 2 === 1) {
36
+        if ($pokemon * 2 % 2 === 1) {
37 37
             $dusts -= $levels->first()->dust;
38 38
         }
39 39
 
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
             ->getIntervalLevelFiltered($pokemon, $trainer);
59 59
 
60 60
         $levels
61
-            ->each(function ($level) use (&$candies, &$loop, $trainer) {
61
+            ->each(function($level) use (&$candies, &$loop, $trainer) {
62 62
                 $loop += 0.5;
63 63
                 $candies += $level->candy * 2;
64 64
             });
65 65
 
66
-        if ($pokemon*2 % 2 === 1) {
66
+        if ($pokemon * 2 % 2 === 1) {
67 67
             $candies -= $levels->first()->candy;
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Extractors/LevelExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
     public function getIntervalLevelFiltered(float $min, float $max)
47 47
     {
48 48
         return $this->getGameMasterJsonCollection()
49
-            ->filter(function ($level) use ($min, $max) {
50
-                return (int)$min<=$level->level && $level->level<=(int)$max ? true: false;
49
+            ->filter(function($level) use ($min, $max) {
50
+                return (int) $min <= $level->level && $level->level <= (int) $max ? true : false;
51 51
             });
52 52
     }
53 53
 }
Please login to merge, or discard this patch.