Test Setup Failed
Push — master ( ac4eca...46a948 )
by Roman
55s
created
Category
src/ExcelGoalSeek/ExcelGoalSeek.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     private function debug($message, array $context = []): void
25 25
     {
26
-        if($this->debugEnabled) {
26
+        if ($this->debugEnabled) {
27 27
             $this->logger->debug($message, $context);
28 28
         }
29 29
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         $max_loops_round++;
50 50
 
51
-        $maximum_acceptable_difference = 0.1;//If goal found has more than this difference, return null as it is not found
51
+        $maximum_acceptable_difference = 0.1; //If goal found has more than this difference, return null as it is not found
52 52
 
53 53
         if ($max_loops_round > 100) {
54 54
             $this->debug('Goal never reached');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return false;
57 57
         }
58 58
 
59
-        $this->debug('Iteration ' . $max_loops_round . '; min value = ' . $lock_min['num'] . '; max value = ' . $lock_max['num'] . '; slope ' . $slope);
59
+        $this->debug('Iteration '.$max_loops_round.'; min value = '.$lock_min['num'].'; max value = '.$lock_max['num'].'; slope '.$slope);
60 60
 
61 61
         //If I have the goal  limited to a unit, I seek decimals
62 62
         if ($lock_min['num'] !== null && $lock_max['num'] !== null && abs(abs($lock_max['num']) - abs($lock_min['num'])) <= 1) {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                     $aux_obj = $this->$functionGS($aux_obj_num);
80 80
 
81 81
                     $this->debug(
82
-                    'Decimal iteration ' . $max_loops_dec . '; min value = ' . $lock_min['num'] . '; max value = ' . $lock_max['num'] . '; value ' . $aux_obj
82
+                    'Decimal iteration '.$max_loops_dec.'; min value = '.$lock_min['num'].'; max value = '.$lock_max['num'].'; value '.$aux_obj
83 83
                     );
84 84
 
85 85
                     //Like when I look without decimals
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
 
126 126
         if ($aux_obj_num != $start_from) {
127 127
             $aux_obj = $this->$functionGS($aux_obj_num);
128
-            $this->debug('Testing ' . $aux_obj_num . ' with value ' . $aux_obj);
128
+            $this->debug('Testing '.$aux_obj_num.' with value '.$aux_obj);
129 129
         } else {
130 130
             $aux_obj = $this->$functionGS($aux_obj_num);
131
-            $this->debug('Testing (with initial value) ' . $aux_obj_num . ' with value ' . $aux_obj );
131
+            $this->debug('Testing (with initial value) '.$aux_obj_num.' with value '.$aux_obj);
132 132
         }
133 133
 
134 134
         if ($slope == null) {
Please login to merge, or discard this patch.