@@ -22,7 +22,7 @@ |
||
| 22 | 22 | // Build a SoqlQuery with functions |
| 23 | 23 | $soql = new SoqlQuery(); |
| 24 | 24 | $soql->where("within_circle(incident_location, {$_POST['latitude']}, {$_POST['longitude']}, {$_POST['range']})") |
| 25 | - ->limit(20); |
|
| 25 | + ->limit(20); |
|
| 26 | 26 | |
| 27 | 27 | // Get the dataset. $results is now an associative array in the same format as the JSON object |
| 28 | 28 | $results = $ds->getDataset($soql); |
@@ -90,10 +90,10 @@ |
||
| 90 | 90 | |
| 91 | 91 | // Build up the headers we'll need to pass |
| 92 | 92 | $this->headers = array( |
| 93 | - 'Accept: application/json', |
|
| 94 | - 'Content-type: application/json', |
|
| 95 | - 'X-App-Token: ' . $this->token |
|
| 96 | - ); |
|
| 93 | + 'Accept: application/json', |
|
| 94 | + 'Content-type: application/json', |
|
| 95 | + 'X-App-Token: ' . $this->token |
|
| 96 | + ); |
|
| 97 | 97 | |
| 98 | 98 | $this->configureCurl($email, $password); |
| 99 | 99 | } |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | * @throws \allejo\Socrata\Exceptions\HttpException If the $body returned was not a JSON object |
| 341 | 341 | * @throws \allejo\Socrata\Exceptions\SodaException The returned JSON object in the $body was a SODA API error |
| 342 | 342 | * |
| 343 | - * @return mixed An associative array of the decoded JSON response |
|
| 343 | + * @return string An associative array of the decoded JSON response |
|
| 344 | 344 | */ |
| 345 | 345 | private function handleResponseBody ($body, $result) |
| 346 | 346 | { |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | * Build a URL with GET parameters formatted into the URL |
| 395 | 395 | * |
| 396 | 396 | * @param string $url The base URL |
| 397 | - * @param array $params The GET parameters that need to be appended to the base URL |
|
| 397 | + * @param string[] $params The GET parameters that need to be appended to the base URL |
|
| 398 | 398 | * |
| 399 | 399 | * @since 0.1.0 |
| 400 | 400 | * |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @since 0.1.0 |
| 92 | 92 | * |
| 93 | - * @return double The API version number |
|
| 93 | + * @return integer The API version number |
|
| 94 | 94 | */ |
| 95 | 95 | public function getApiVersion () |
| 96 | 96 | { |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * Fetch a dataset based on a resource ID. |
| 138 | 138 | * |
| 139 | - * @param string|SoqlQuery $filterOrSoqlQuery A simple filter or a SoqlQuery to filter the results |
|
| 139 | + * @param SoqlQuery $filterOrSoqlQuery A simple filter or a SoqlQuery to filter the results |
|
| 140 | 140 | * |
| 141 | 141 | * @see SodaClient::enableAssociativeArrays() |
| 142 | 142 | * @see SodaClient::disableAssociativeArrays() |