@@ -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); |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | </tr> |
| 68 | 68 | |
| 69 | 69 | <?php // Loop through all of the results from the dataset ?> |
| 70 | - <?php foreach($results as $row) { ?> |
|
| 70 | + <?php foreach ($results as $row) { ?> |
|
| 71 | 71 | <tr> |
| 72 | 72 | <?php $timestamp = new DateTime($row["event_clearance_date"]); ?> |
| 73 | 73 | <td><?= $timestamp->format('Y-m-d h:ia') ?></td> |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * The ascending clause Socrata expects |
| 22 | 22 | */ |
| 23 | - const ASC = 'ASC'; |
|
| 23 | + const ASC = 'ASC'; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * The descending clause Socrata expects |
@@ -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 | } |