@@ -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 | } |
@@ -109,11 +109,11 @@ discard block |
||
109 | 109 | return $this->toArray()[$name]; |
110 | 110 | } |
111 | 111 | |
112 | - echo('get' . studly_case($name)); |
|
112 | + echo('get'.studly_case($name)); |
|
113 | 113 | |
114 | 114 | // Shortcut to the getters |
115 | - if (method_exists($this, 'get' . studly_case($name))) { |
|
116 | - return $this->{'get' . studly_case($name)}(); |
|
115 | + if (method_exists($this, 'get'.studly_case($name))) { |
|
116 | + return $this->{'get'.studly_case($name)}(); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | throw new RuntimeException(sprintf("Undefined property: %s", $name)); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | return $area; |
223 | 223 | } |
224 | 224 | |
225 | - for ($i = 0; $i < $length; $i ++) { |
|
225 | + for ($i = 0; $i < $length; $i++) { |
|
226 | 226 | list($lower_index, $middle_index, $upper_index) = $this->determineCoordinateIndices($i, $length); |
227 | 227 | |
228 | 228 | $point1 = $coordinates[$lower_index]; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | public function toArray() |
246 | 246 | { |
247 | 247 | if (is_null($this->geometry_array)) { |
248 | - $this->geometry_array = (array)json_decode($this->toJson(), true); |
|
248 | + $this->geometry_array = (array) json_decode($this->toJson(), true); |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | return $this->geometry_array; |
@@ -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; |