Completed
Push — master ( 41b19b...b938e9 )
by Ventimiglia
02:17
created
src/Firebase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 
156 156
     /**
157 157
      *
158
-     * @return the unknown_type
158
+     * @return string unknown_type
159 159
      */
160 160
     public function getLastIdStored()
161 161
     {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -121,12 +121,12 @@  discard block
 block discarded – undo
121 121
         $curlMessage = 'Extension CURL is not loaded or not installed.';
122 122
 
123 123
         // check if auth is null
124
-        if (! is_object($auth) || null == $auth) {
124
+        if (!is_object($auth) || null == $auth) {
125 125
             trigger_error($authMessage, E_USER_ERROR);
126 126
         }
127 127
 
128 128
         // check if extension is installed
129
-        if (! extension_loaded('curl')) {
129
+        if (!extension_loaded('curl')) {
130 130
             trigger_error($curlMessage, E_USER_ERROR);
131 131
         }
132 132
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $headers['Content-Type'] = 'application/json';
187 187
 
188 188
         // check if header is an array
189
-        if (! is_array($headers)) {
189
+        if (!is_array($headers)) {
190 190
             $str = "The guzzle client headers must be an array.";
191 191
             throw new \Exception($str);
192 192
         }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
             if ($opt == 'orderBy') {
214 214
 
215
-                $options['orderBy']= '"' . $optVal . '"';
215
+                $options['orderBy'] = '"' . $optVal . '"';
216 216
 
217 217
             }
218 218
         }
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                 ]);
330 330
 
331 331
                 // save auto-increment id created from Firebase after post operation
332
-                $this->setLastIdStored(json_decode($this->response->getBody()->getContents(),true)['name']);
332
+                $this->setLastIdStored(json_decode($this->response->getBody()->getContents(), true)['name']);
333 333
 
334 334
                 $this->setDataFromOperation($op, $this->response->getStatusCode());
335 335
                 break;
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      */
413 413
     private function writeEventLogs($logger, $eventData, $event, $path)
414 414
     {
415
-        if (! empty($eventData) || null != $eventData) {
415
+        if (!empty($eventData) || null != $eventData) {
416 416
             $logger->addDebug("path: {$path}", [
417 417
                 'DATA' => $eventData,
418 418
                 'EVENT TYPE' => $event->getEventType()
@@ -480,9 +480,9 @@  discard block
 block discarded – undo
480 480
         if ($this->operation === 'GET') {
481 481
 
482 482
             $jsonData = json_decode($this->response, true);
483
-            if (empty($jsonData)){
483
+            if (empty($jsonData)) {
484 484
                 $jsonData[] = '204 No Content';
485
-            }else {
485
+            } else {
486 486
                 $jsonData = json_decode($this->response, true);
487 487
             }
488 488
 
Please login to merge, or discard this patch.