Passed
Push — master ( 887d22...dd9386 )
by Swen
03:29
created
src/Geometry/Point.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -273,9 +273,9 @@  discard block
 block discarded – undo
273 273
     public function equals(Geometry $geometry): bool
274 274
     {
275 275
         return $geometry->geometryType() === Geometry::POINT
276
-            ? ( abs(($this->getX()??0) - ($geometry->getX()??0)) <= 1.0E-9 &&
277
-                abs(($this->getY()??0) - ($geometry->getY()??0)) <= 1.0E-9 &&
278
-                abs(($this->getZ()??0) - ($geometry->getZ()??0)) <= 1.0E-9)
276
+            ? (abs(($this->getX() ?? 0) - ($geometry->getX() ?? 0)) <= 1.0E-9 &&
277
+                abs(($this->getY() ?? 0) - ($geometry->getY() ?? 0)) <= 1.0E-9 &&
278
+                abs(($this->getZ() ?? 0) - ($geometry->getZ() ?? 0)) <= 1.0E-9)
279 279
             : false;
280 280
     }
281 281
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
             // @codeCoverageIgnoreEnd
327 327
         }
328 328
         
329
-        switch ($geometry->geometryType() ) {
329
+        switch ($geometry->geometryType()) {
330 330
             // Point
331 331
             case Geometry::POINT:
332 332
                 return sqrt(
Please login to merge, or discard this patch.