@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | continue; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - $event = self::parseEventData($event,$name, $value); |
|
| 76 | + $event = self::parseEventData($event, $name, $value); |
|
| 77 | 77 | } |
| 78 | 78 | return $event; |
| 79 | 79 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * @param string $value |
| 87 | 87 | * @return \ZendFirebase\Stream\StreamEvent |
| 88 | 88 | */ |
| 89 | - private static function parseEventData($event,$name, $value) |
|
| 89 | + private static function parseEventData($event, $name, $value) |
|
| 90 | 90 | { |
| 91 | 91 | |
| 92 | 92 | |
@@ -121,12 +121,12 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |