Completed
Push — master ( 6be570...be77e1 )
by Benjamin
05:55
created
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.
src/Dijkstra.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
          *  PREDECESSOR(child-node) = parent-node
130 130
          * ENDIF
131 131
          */
132
-        if (! $this->weights[$child->ref]['passed']
132
+        if ( ! $this->weights[$child->ref]['passed']
133 133
             && ($this->weights[$parent->ref]['weight'] + self::distance($parent, $child) < $this->weights[$child->ref]['weight']
134 134
                 || $this->weights[$child->ref]['weight'] === -1)) {
135 135
             $this->weights[$child->ref]['weight'] = $this->weights[$parent->ref]['weight'] + self::distance($parent, $child);
Please login to merge, or discard this patch.