@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Sets the converter |
| 72 | 72 | * |
| 73 | - * @param $converter |
|
| 73 | + * @param Converter $converter |
|
| 74 | 74 | * |
| 75 | 75 | * @return $this |
| 76 | 76 | */ |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | /** |
| 156 | 156 | * Gets the data of an element |
| 157 | 157 | * |
| 158 | - * @return mixed |
|
| 158 | + * @return Hidden |
|
| 159 | 159 | */ |
| 160 | 160 | public function getDataElement() |
| 161 | 161 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | /** |
| 166 | 166 | * Gets the name of an element |
| 167 | 167 | * |
| 168 | - * @return mixed |
|
| 168 | + * @return Text |
|
| 169 | 169 | */ |
| 170 | 170 | public function getNameElement() |
| 171 | 171 | { |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | $coordinates = $location->getCoordinates(); |
| 72 | 72 | $data = [ |
| 73 | 73 | "geometry" => [ |
| 74 | - "coordinates" => $coordinates?$coordinates->getCoordinates():[0,0], |
|
| 75 | - "type" => $coordinates?$coordinates->getType():'Point' |
|
| 74 | + "coordinates" => $coordinates ? $coordinates->getCoordinates() : [0, 0], |
|
| 75 | + "type" => $coordinates ? $coordinates->getType() : 'Point' |
|
| 76 | 76 | ], |
| 77 | 77 | "type" => "Feature", |
| 78 | 78 | "properties" => [ |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | public function toCoordinates($input) { |
| 99 | 99 | $client = new Client('http://api.cross-solution.de/geo'); |
| 100 | 100 | $client->setMethod('GET'); |
| 101 | - $client->setParameterGet(array('q' => $input, 'country' => 'DE', 'coor' => 1, 'zoom' => 1 , 'strict' => 0)); |
|
| 101 | + $client->setParameterGet(array('q' => $input, 'country' => 'DE', 'coor' => 1, 'zoom' => 1, 'strict' => 0)); |
|
| 102 | 102 | $response = $client->send(); |
| 103 | 103 | $result = $response->getBody(); |
| 104 | 104 | $result = json_decode($result); |