Completed
Push — develop ( 2652a1...319c30 )
by Stephen
24s queued 12s
created
src/GeometryServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->singleton('geometry', function ($app) {
33
+        $this->app->singleton('geometry', function($app) {
34 34
             return $app->make(Geometry::class, [new geoPHP(), new TypeMapper(), $app]);
35 35
         });
36 36
     }
Please login to merge, or discard this patch.
src/Geometry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             throw new InvalidArgumentException("The geometry object cannot be null when building the name to the proxy class.");
99 99
         }
100 100
 
101
-        $class = __NAMESPACE__ . '\Geometries\\' . get_class($geometry);
101
+        $class = __NAMESPACE__.'\Geometries\\'.get_class($geometry);
102 102
 
103 103
         if (class_exists($class)) {
104 104
             return $class;
Please login to merge, or discard this patch.
src/Support/GeometryProxy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
         }
115 115
 
116 116
         // Shortcut to the getters
117
-        if (method_exists($this, 'get' . Str::studly($name))) {
118
-            return $this->{'get' . Str::studly($name)}();
117
+        if (method_exists($this, 'get'.Str::studly($name))) {
118
+            return $this->{'get'.Str::studly($name)}();
119 119
         }
120 120
 
121 121
         throw new RuntimeException(sprintf("Undefined property: %s", $name));
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             return $area;
249 249
         }
250 250
 
251
-        for ($i = 0; $i < $length; $i ++) {
251
+        for ($i = 0; $i < $length; $i++) {
252 252
             list($lower_index, $middle_index, $upper_index) = $this->determineCoordinateIndices($i, $length);
253 253
 
254 254
             $point1 = $coordinates[$lower_index];
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     public function toArray()
272 272
     {
273 273
         if (is_null($this->geometry_array)) {
274
-            $this->geometry_array = (array)json_decode($this->toJson(), true);
274
+            $this->geometry_array = (array) json_decode($this->toJson(), true);
275 275
         }
276 276
 
277 277
         return $this->geometry_array;
Please login to merge, or discard this patch.