@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public function getSquareMeters(): float |
163 | 163 | { |
164 | - if (! is_null($this->cached_area)) { |
|
164 | + if (!is_null($this->cached_area)) { |
|
165 | 165 | return $this->cached_area; |
166 | 166 | } |
167 | 167 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * |
180 | 180 | * I know that there is a built in function, but I read that it was very slow & to use this. |
181 | 181 | */ |
182 | - private function radians(float|int $degrees): float |
|
182 | + private function radians(float | int $degrees): float |
|
183 | 183 | { |
184 | 184 | return $degrees * M_PI / 180; |
185 | 185 | } |
@@ -95,13 +95,13 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @throws InvalidArgumentException|Exception |
97 | 97 | */ |
98 | - protected function loadGeometry(object|string $data, ?string $type): GlobalGeometry |
|
98 | + protected function loadGeometry(object | string $data, ?string $type): GlobalGeometry |
|
99 | 99 | { |
100 | 100 | $geometry = is_null($type) |
101 | 101 | ? $this->geoPhp->load($data) |
102 | 102 | : $this->geoPhp->load($data, $this->mapper->map($type)); |
103 | 103 | |
104 | - if (! $geometry) { |
|
104 | + if (!$geometry) { |
|
105 | 105 | throw new InvalidArgumentException('Could not parse the supplied data.'); |
106 | 106 | } |
107 | 107 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @throws InvalidArgumentException|Exception |
115 | 115 | */ |
116 | - public function parse(object|string $data, ?string $type = null): GeometryProxy |
|
116 | + public function parse(object | string $data, ?string $type = null): GeometryProxy |
|
117 | 117 | { |
118 | 118 | $geometry = $this->loadGeometry($data, $type); |
119 | 119 |