Completed
Push — master ( 5a4ec5...1bffc6 )
by Benjamin
11:12 queued 05:47
created
src/Dijkstra.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
         $smallest = INF;
69 69
         $nextParent = null;
70 70
         foreach ($this->weights as $weight) {
71
-            if ($weight['weight'] < $smallest && $weight['weight'] !== -1 && ! $weight['passed']) {
71
+            if ($weight['weight'] < $smallest && $weight['weight'] !== -1 && !$weight['passed']) {
72 72
                 $smallest = $weight['weight'];
73 73
                 $nextParent = $weight['position'];
74 74
             }
75 75
         }
76
-        if (! is_null($nextParent)) {
76
+        if (!is_null($nextParent)) {
77 77
             return $this->run($nextParent);
78 78
         }
79 79
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
          *  PREDECESSOR(child-node) = parent-node
124 124
          * ENDIF
125 125
          */
126
-        if (! $this->weights[$child->ref]['passed']
126
+        if (!$this->weights[$child->ref]['passed']
127 127
             && ($this->weights[$parent->ref]['weight'] + self::distance($parent, $child) < $this->weights[$child->ref]['weight']
128 128
                 || $this->weights[$child->ref]['weight'] === -1)) {
129 129
             $this->weights[$child->ref]['weight'] = $this->weights[$parent->ref]['weight'] + self::distance($parent, $child);
Please login to merge, or discard this patch.
src/Point.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@
 block discarded – undo
19 19
 
20 20
     public function addPoint(self $point): self
21 21
     {
22
-        if (! in_array($point, $this->points)) {
22
+        if (!in_array($point, $this->points)) {
23 23
             $this->points[] = $point;
24 24
         }
25 25
 
26 26
         // add the reverse point
27
-        if (! in_array($this, $point->points)) {
27
+        if (!in_array($this, $point->points)) {
28 28
             $point->points[] = $this;
29 29
         }
30 30
 
Please login to merge, or discard this patch.