Test Failed
Push — master ( 01abcf...048a4d )
by Witali
02:06
created
src/Astar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,14 +79,14 @@  discard block
 block discarded – undo
79 79
                 if ($neighbor->isClosed() || in_array($neighbor->getCosts(), $this->blocked)) {
80 80
                     continue;
81 81
                 }
82
-                $score = $current->getScore() + $neighbor->getCosts();
82
+                $score = $current->getScore()+$neighbor->getCosts();
83 83
                 $visited = $neighbor->isVisited();
84 84
                 if (!$visited || $score < $neighbor->getScore()) {
85 85
                     $neighbor->visit();
86 86
                     $neighbor->setParent($current);
87 87
                     $neighbor->setGuessedScore($this->heuristic->compare($neighbor, $end));
88 88
                     $neighbor->setScore($score);
89
-                    $neighbor->setTotalScore($neighbor->getScore() + $neighbor->getGuessedScore());
89
+                    $neighbor->setTotalScore($neighbor->getScore()+$neighbor->getGuessedScore());
90 90
                     if (!$visited) {
91 91
                         $heap->insert($neighbor);
92 92
                     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $result[] = $current;
109 109
             $current = $current->getParent();
110 110
         }
111
-        $result[]=$current;
111
+        $result[] = $current;
112 112
         return array_reverse($result);
113 113
     }
114 114
 }
115 115
\ No newline at end of file
Please login to merge, or discard this patch.