Completed
Push — master ( 74f6ae...0012bb )
by Vladimir
15s queued 12s
created
examples/911calls.php 1 patch
Braces   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@  discard block
 block discarded – undo
37 37
     <body>
38 38
         <h1>Seattle Police Department 911 Incident Response</h1>
39 39
 
40
-        <?php if (!$postBack) { ?>
40
+        <?php if (!$postBack)
41
+{
42
+?>
41 43
             <form method="POST">
42 44
                 <p>Query for all of the Seattle Fire 911 Calls calls within 500 meters of the Socrata offices in Seattle:</p>
43 45
                 <p>Try 47.59815, -122.334540 with a range of 500 meters</p>
@@ -56,7 +58,10 @@  discard block
 block discarded – undo
56 58
 
57 59
                 <input type="submit" value="Submit"/>
58 60
             </form>
59
-        <?php } else { ?>
61
+        <?php }
62
+else
63
+{
64
+?>
60 65
             <h2>Results</h2>
61 66
 
62 67
             <?php // Create a table for our actual data ?>
@@ -67,7 +72,9 @@  discard block
 block discarded – undo
67 72
                 </tr>
68 73
 
69 74
                 <?php // Loop through all of the results from the dataset ?>
70
-                <?php foreach($results as $row) { ?>
75
+                <?php foreach($results as $row)
76
+{
77
+?>
71 78
                     <tr>
72 79
                         <?php $timestamp = new DateTime($row["event_clearance_date"]); ?>
73 80
                         <td><?= $timestamp->format('Y-m-d h:ia') ?></td>
Please login to merge, or discard this patch.
src/SodaDataset.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/SoqlQuery.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,9 @@
 block discarded – undo
87 87
      *
88 88
      * @since 0.1.0
89 89
      */
90
-    public function __construct () {}
90
+    public function __construct ()
91
+    {
92
+}
91 93
 
92 94
     /**
93 95
      * Convert the current information into a URL encoded query that can be appended to the domain
Please login to merge, or discard this patch.
src/Utilities/UrlQuery.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
docs/sami-config.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@
 block discarded – undo
34 34
  * Include this section if you want sami to document
35 35
  * private and protected functions/properties
36 36
  */
37
-$sami['filter'] = function () {
37
+$sami['filter'] = function ()
38
+{
38 39
     return new ApiFilter();
39 40
 };
40 41
 
Please login to merge, or discard this patch.