Completed
Push — master ( c5af8a...224e88 )
by Vladimir
04:24
created
src/SodaDataset.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
     /**
123 123
      * Fetch a dataset based on a resource ID.
124 124
      *
125
-     * @param  string|SoqlQuery $filterOrSoqlQuery A simple filter or a SoqlQuery to filter the results
125
+     * @param  SoqlQuery $filterOrSoqlQuery A simple filter or a SoqlQuery to filter the results
126 126
      *
127 127
      * @see    SodaClient::enableAssociativeArrays()
128 128
      * @see    SodaClient::disableAssociativeArrays()
Please login to merge, or discard this patch.
src/Utilities/UrlQuery.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      *
308 308
      * @throws \allejo\Socrata\Exceptions\CurlException If cURL is misconfigured or encounters an error
309 309
      *
310
-     * @return mixed
310
+     * @return string
311 311
      */
312 312
     private function executeCurl ()
313 313
     {
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      * @throws \allejo\Socrata\Exceptions\HttpException If the $body returned was not a JSON object
333 333
      * @throws \allejo\Socrata\Exceptions\SodaException The returned JSON object in the $body was a SODA API error
334 334
      *
335
-     * @return mixed An associative array of the decoded JSON response
335
+     * @return string An associative array of the decoded JSON response
336 336
      */
337 337
     private function handleResponseBody ($body, $result)
338 338
     {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
      * Build a URL with GET parameters formatted into the URL
387 387
      *
388 388
      * @param string  $url    The base URL
389
-     * @param array   $params The GET parameters that need to be appended to the base URL
389
+     * @param string[]   $params The GET parameters that need to be appended to the base URL
390 390
      *
391 391
      * @since 0.1.0
392 392
      *
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,10 +90,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
examples/911calls.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.