@@ -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 |
@@ -236,7 +236,7 @@ |
||
236 | 236 | */ |
237 | 237 | public function order ($column, $direction = self::DEFAULT_ORDER_DIRECTION) |
238 | 238 | { |
239 | - $this->queryElements[self::ORDER_KEY][] = rawurlencode($column . " " . $direction); |
|
239 | + $this->queryElements[self::ORDER_KEY][] = rawurlencode($column." ".$direction); |
|
240 | 240 | |
241 | 241 | return $this; |
242 | 242 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $this->headers = array( |
93 | 93 | 'Accept: application/json', |
94 | 94 | 'Content-type: application/json', |
95 | - 'X-App-Token: ' . $this->token |
|
95 | + 'X-App-Token: '.$this->token |
|
96 | 96 | ); |
97 | 97 | |
98 | 98 | $this->configureCurl($email, $password); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (!StringUtilities::isNullOrEmpty($token)) |
120 | 120 | { |
121 | 121 | $this->oAuth2Token = $token; |
122 | - $this->headers[] = "Authorization: OAuth " . $this->oAuth2Token; |
|
122 | + $this->headers[] = "Authorization: OAuth ".$this->oAuth2Token; |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } |
147 | 147 | else if (!empty($params)) |
148 | 148 | { |
149 | - $full_url = $this->url . "?" . $params; |
|
149 | + $full_url = $this->url."?".$params; |
|
150 | 150 | } |
151 | 151 | else |
152 | 152 | { |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | { |
296 | 296 | curl_setopt_array($this->cURL, array( |
297 | 297 | CURLOPT_HTTPAUTH => CURLAUTH_BASIC, |
298 | - CURLOPT_USERPWD => $email . ":" . $password |
|
298 | + CURLOPT_USERPWD => $email.":".$password |
|
299 | 299 | )); |
300 | 300 | } |
301 | 301 | } |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | |
399 | 399 | if (count($params) > 0) |
400 | 400 | { |
401 | - $full_url .= "?" . implode("&", $params); |
|
401 | + $full_url .= "?".implode("&", $params); |
|
402 | 402 | } |
403 | 403 | |
404 | 404 | return $full_url; |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | |
436 | 436 | foreach ($params as $key => $value) |
437 | 437 | { |
438 | - $parameters[] = rawurlencode($key) . "=" . rawurlencode($value); |
|
438 | + $parameters[] = rawurlencode($key)."=".rawurlencode($value); |
|
439 | 439 | } |
440 | 440 | |
441 | 441 | return $parameters; |
@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public function __construct ($filename) |
28 | 28 | { |
29 | - $this->message = "The following file could not be found or opened: " . $filename; |
|
29 | + $this->message = "The following file could not be found or opened: ".$filename; |
|
30 | 30 | } |
31 | 31 | } |
@@ -340,7 +340,7 @@ |
||
340 | 340 | $headers = array(); |
341 | 341 | |
342 | 342 | // For a single row, the format is the `resourceID/rowID.json`, so we'll use that as the "location" of the Api URL |
343 | - $apiEndPoint = $this->buildApiUrl("resource", $this->resourceId . "/" . $rowID); |
|
343 | + $apiEndPoint = $this->buildApiUrl("resource", $this->resourceId."/".$rowID); |
|
344 | 344 | |
345 | 345 | $urlQuery = new UrlQuery($apiEndPoint, $this->sodaClient->getToken(), $this->sodaClient->getEmail(), $this->sodaClient->getPassword()); |
346 | 346 | $urlQuery->setOAuth2Token($this->sodaClient->getOAuth2Token()); |