Passed
Branch master (206a29)
by Benjamin
02:08
created
org/Michotte/Paths/Point.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
org/Michotte/Paths/Dijkstra.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		{
Please login to merge, or discard this patch.
index.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,8 +206,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.