Completed
Pull Request — master (#12)
by
unknown
05:45
created
examples/911calls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
src/SoqlOrderDirection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Utilities/UrlQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Exceptions/FileNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/SodaDataset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/SoqlQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         foreach ($array as $key => $value)
168 168
         {
169
-            if(is_string($key) && !is_null($value))
169
+            if (is_string($key) && !is_null($value))
170 170
             {
171 171
                 $formattedValues[] = rawurlencode(sprintf($format, trim($key), trim($value)));
172 172
             }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      */
244 244
     public function order ($column, $direction = self::DEFAULT_ORDER_DIRECTION)
245 245
     {
246
-        $this->queryElements[self::ORDER_KEY][] = rawurlencode($column . " " . $direction);
246
+        $this->queryElements[self::ORDER_KEY][] = rawurlencode($column." ".$direction);
247 247
 
248 248
         return $this;
249 249
     }
Please login to merge, or discard this patch.
docs/sami-config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/ApiFilter.php';
3
+require_once __DIR__.'/ApiFilter.php';
4 4
 
5 5
 use allejo\Sami\ApiFilter;
6 6
 use Sami\RemoteRepository\GitHubRemoteRepository;
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 $iterator = Finder::create()
12 12
     ->files()
13 13
     ->name('*.php')
14
-    ->in($dir = __DIR__ . '/../src')
14
+    ->in($dir = __DIR__.'/../src')
15 15
 ;
16 16
 
17 17
 // generate documentation for all 0.* branches and the master branch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 $sami = new Sami($iterator, array(
25 25
     'versions'             => $versions,
26 26
     'title'                => 'PhpSoda API',
27
-    'build_dir'            => __DIR__ . '/api/build/PhpSoda/%version%',
28
-    'cache_dir'            => __DIR__ . '/api/cache/PhpSoda/%version%',
27
+    'build_dir'            => __DIR__.'/api/build/PhpSoda/%version%',
28
+    'cache_dir'            => __DIR__.'/api/cache/PhpSoda/%version%',
29 29
     'remote_repository'    => new GitHubRemoteRepository('allejo/PhpSoda', dirname($dir)),
30 30
     'default_opened_level' => 2,
31 31
 ));
Please login to merge, or discard this patch.