@@ -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; |