@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | while (!$clean) { |
82 | 82 | $clean = true; |
83 | 83 | foreach ($states as $i => $state) { |
84 | - if (array_key_exists($i+1, $states)) { |
|
85 | - $next = $states[$i+1]; |
|
84 | + if (array_key_exists($i + 1, $states)) { |
|
85 | + $next = $states[$i + 1]; |
|
86 | 86 | if ($state->target == $next->target && $state->targetId == $next->targetId) { |
87 | 87 | $states[$i]['end'] = $next->end; |
88 | - unset($states[$i+1]); |
|
88 | + unset($states[$i + 1]); |
|
89 | 89 | $states = array_values($states); |
90 | 90 | $clean = false; |
91 | 91 | break; |
@@ -322,11 +322,11 @@ discard block |
||
322 | 322 | while (!$clean) { |
323 | 323 | $clean = true; |
324 | 324 | foreach ($states as $i => $state) { |
325 | - if (array_key_exists($i+1, $states)) { |
|
326 | - $next = $states[$i+1]; |
|
325 | + if (array_key_exists($i + 1, $states)) { |
|
326 | + $next = $states[$i + 1]; |
|
327 | 327 | if (json_encode($state->data) == json_encode($next->data)) { |
328 | 328 | $states[$i]->end = $next->end; |
329 | - unset($states[$i+1]); |
|
329 | + unset($states[$i + 1]); |
|
330 | 330 | $states = array_values($states); |
331 | 331 | $clean = false; |
332 | 332 | break; |