@@ -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 |
@@ -114,12 +114,12 @@ discard block |
||
114 | 114 | $curlMessage = 'Extension CURL is not loaded or not installed.'; |
115 | 115 | |
116 | 116 | // check if auth is null |
117 | - if (! is_object($auth) || null == $auth) { |
|
117 | + if (!is_object($auth) || null == $auth) { |
|
118 | 118 | trigger_error($authMessage, E_USER_ERROR); |
119 | 119 | } |
120 | 120 | |
121 | 121 | // check if extension is installed |
122 | - if (! extension_loaded('curl')) { |
|
122 | + if (!extension_loaded('curl')) { |
|
123 | 123 | trigger_error($curlMessage, E_USER_ERROR); |
124 | 124 | } |
125 | 125 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $headers['Content-Type'] = 'application/json'; |
161 | 161 | |
162 | 162 | // check if header is an array |
163 | - if (! is_array($headers)) { |
|
163 | + if (!is_array($headers)) { |
|
164 | 164 | $str = "The guzzle client headers must be an array."; |
165 | 165 | throw new \Exception($str); |
166 | 166 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | if ($opt == 'orderBy') { |
188 | 188 | |
189 | - $options['orderBy']= '"' . $optVal . '"'; |
|
189 | + $options['orderBy'] = '"' . $optVal . '"'; |
|
190 | 190 | |
191 | 191 | } |
192 | 192 | } |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | */ |
377 | 377 | private function writeEventLogs($logger, $eventData, $event, $path) |
378 | 378 | { |
379 | - if (! empty($eventData) || null != $eventData) { |
|
379 | + if (!empty($eventData) || null != $eventData) { |
|
380 | 380 | $logger->addDebug("path: {$path}", [ |
381 | 381 | 'DATA' => $eventData, |
382 | 382 | 'EVENT TYPE' => $event->getEventType() |
@@ -443,9 +443,9 @@ discard block |
||
443 | 443 | $jsonData = []; |
444 | 444 | if ($this->operation === 'GET') { |
445 | 445 | |
446 | - if (empty($jsonData)){ |
|
446 | + if (empty($jsonData)) { |
|
447 | 447 | $jsonData[] = '204 No Content'; |
448 | - }else { |
|
448 | + } else { |
|
449 | 449 | $jsonData = json_decode($this->response, true); |
450 | 450 | } |
451 | 451 |
@@ -445,7 +445,7 @@ |
||
445 | 445 | |
446 | 446 | if (empty($jsonData)){ |
447 | 447 | $jsonData[] = '204 No Content'; |
448 | - }else { |
|
448 | + } else { |
|
449 | 449 | $jsonData = json_decode($this->response, true); |
450 | 450 | } |
451 | 451 |