@@ -71,21 +71,18 @@ |
||
| 71 | 71 | 'timeout' => 30, |
| 72 | 72 | 'connection_timeout' => 5, |
| 73 | 73 | ]); |
| 74 | - } |
|
| 75 | - else if($http_client instanceof Client) |
|
| 74 | + } else if($http_client instanceof Client) |
|
| 76 | 75 | { |
| 77 | 76 | $application_url_client = $http_client->getConfig('base_uri'); |
| 78 | 77 | |
| 79 | 78 | if(!isset($application_url_client)) |
| 80 | 79 | { |
| 81 | 80 | $http_client->setDefaultOption('base_uri', $application_url); |
| 82 | - } |
|
| 83 | - else if($application_url_client != $application_url) |
|
| 81 | + } else if($application_url_client != $application_url) |
|
| 84 | 82 | { |
| 85 | 83 | throw new InvalidParameterException("http_client parameter has a differente url to application_url parameter"); |
| 86 | 84 | } |
| 87 | - } |
|
| 88 | - else |
|
| 85 | + } else |
|
| 89 | 86 | { |
| 90 | 87 | throw new InvalidParameterException("http_client parameter must be a GuzzleHttp\Client object or empty"); |
| 91 | 88 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param string $format The output format for the request |
| 64 | 64 | * |
| 65 | - * @return maxh\Nominatim\Query |
|
| 65 | + * @return Query |
|
| 66 | 66 | * @throws maxh\Nominatim\Exceptions\InvalidParameterException if format is not supported |
| 67 | 67 | */ |
| 68 | 68 | public function format($format) |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param string $language Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. |
| 90 | 90 | * Either uses standard rfc2616 accept-language string or a simple comma separated list of language codes. |
| 91 | 91 | * |
| 92 | - * @return maxh\Nominatim\Query |
|
| 92 | + * @return Query |
|
| 93 | 93 | */ |
| 94 | 94 | public function language($language) |
| 95 | 95 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * |
| 104 | 104 | * @param boolean $details |
| 105 | 105 | * |
| 106 | - * @return maxh\Nominatim\Query |
|
| 106 | + * @return Query |
|
| 107 | 107 | */ |
| 108 | 108 | public function addressDetails($details = true) |
| 109 | 109 | { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * |
| 118 | 118 | * @param boolean $tags |
| 119 | 119 | * |
| 120 | - * @return maxh\Nominatim\Query |
|
| 120 | + * @return Query |
|
| 121 | 121 | */ |
| 122 | 122 | public function extraTags($tags = true) |
| 123 | 123 | { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * |
| 133 | 133 | * @param boolean $details |
| 134 | 134 | * |
| 135 | - * @return maxh\Nominatim\Query |
|
| 135 | + * @return Query |
|
| 136 | 136 | */ |
| 137 | 137 | public function nameDetails($details = true) |
| 138 | 138 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * |
| 148 | 148 | * @param string $email Address mail |
| 149 | 149 | * |
| 150 | - * @return maxh\Nominatim\Query |
|
| 150 | + * @return Query |
|
| 151 | 151 | */ |
| 152 | 152 | public function email($email) |
| 153 | 153 | { |