@@ -30,7 +30,7 @@ |
||
| 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 | } |
@@ -98,7 +98,7 @@ |
||
| 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; |
@@ -114,8 +114,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |