@@ -146,7 +146,7 @@ |
||
146 | 146 | */ |
147 | 147 | public function equal($point) |
148 | 148 | { |
149 | - if (! ($point instanceof Point)) |
|
149 | + if (!($point instanceof Point)) |
|
150 | 150 | { |
151 | 151 | return false; |
152 | 152 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $nextParent = null; |
146 | 146 | foreach ($this->weights as $weight) |
147 | 147 | { |
148 | - if ($weight['weight'] < $smallest && $weight['weight'] != -1 && ! $weight['passed']) |
|
148 | + if ($weight['weight'] < $smallest && $weight['weight'] != -1 && !$weight['passed']) |
|
149 | 149 | { |
150 | 150 | $smallest = $weight['weight']; |
151 | 151 | $nextParent = $weight['position']; |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * PREDECESSOR(child-node) = parent-node |
217 | 217 | * ENDIF |
218 | 218 | */ |
219 | - if (! $this->weights[$child->getRef()]['passed'] |
|
219 | + if (!$this->weights[$child->getRef()]['passed'] |
|
220 | 220 | && ($this->weights[$parent->getRef()]['weight'] + $this->distance($parent, $child) < $this->weights[$child->getRef()]['weight'] |
221 | 221 | || $this->weights[$child->getRef()]['weight'] == -1)) |
222 | 222 | { |
@@ -206,8 +206,7 @@ |
||
206 | 206 | { |
207 | 207 | $from = $p->getY() < $d->getY() ? $p : $d; |
208 | 208 | $to = $p->getY() > $d->getY() ? $p : $d; |
209 | - } |
|
210 | - else |
|
209 | + } else |
|
211 | 210 | { |
212 | 211 | $from = $p->getX() < $d->getX() ? $p : $d; |
213 | 212 | $to = $p->getX() > $d->getX() ? $p : $d; |