Passed
Push — master ( 403190...0fd618 )
by Swen
02:54
created
src/Geometry/Point.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -250,9 +250,9 @@
 block discarded – undo
250 250
     public function equals(Geometry $geometry): bool
251 251
     {
252 252
         return $geometry->geometryType() === Geometry::POINT
253
-            ? ( abs(($this->getX()??0) - ($geometry->getX()??0)) <= 1.0E-9 &&
254
-                abs(($this->getY()??0) - ($geometry->getY()??0)) <= 1.0E-9 &&
255
-                abs(($this->getZ()??0) - ($geometry->getZ()??0)) <= 1.0E-9)
253
+            ? (abs(($this->getX() ?? 0) - ($geometry->getX() ?? 0)) <= 1.0E-9 &&
254
+                abs(($this->getY() ?? 0) - ($geometry->getY() ?? 0)) <= 1.0E-9 &&
255
+                abs(($this->getZ() ?? 0) - ($geometry->getZ() ?? 0)) <= 1.0E-9)
256 256
             : false;
257 257
     }
258 258
 
Please login to merge, or discard this patch.