@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | private function validateOperation() |
146 | 146 | { |
147 | - if (! is_string($this->getOperation())) { |
|
147 | + if (!is_string($this->getOperation())) { |
|
148 | 148 | $getOperation = "Operation parameter must be STRING and NOT EMPTY. Received : "; |
149 | 149 | $getOperation .= gettype($this->getOperation()) . " ({$this->getOperation()})."; |
150 | 150 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | private function validateStatus() |
161 | 161 | { |
162 | - if (! is_numeric($this->getStatus())) { |
|
162 | + if (!is_numeric($this->getStatus())) { |
|
163 | 163 | $getStatus = "Status parameter must be NUMERIC. Received : "; |
164 | 164 | $getStatus .= gettype($this->getStatus()) . " ({$this->getStatus()})."; |
165 | 165 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | private function validateData() |
176 | 176 | { |
177 | - if (! is_array($this->getFirebaseData())) { |
|
177 | + if (!is_array($this->getFirebaseData())) { |
|
178 | 178 | $gettype = "FirebaseData parameter must be ARRAY. Received : " . gettype($this->getFirebaseData()) . "."; |
179 | 179 | throw new \Exception($gettype); |
180 | 180 | } |
@@ -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 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $headers['Content-Type'] = 'application/json'; |
188 | 188 | |
189 | 189 | // check if header is an array |
190 | - if (! is_array($headers)) { |
|
190 | + if (!is_array($headers)) { |
|
191 | 191 | $str = "The guzzle client headers must be an array."; |
192 | 192 | throw new \Exception($str); |
193 | 193 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | $path = ltrim($path, '/'); |
243 | 243 | |
244 | - return $path . '.json?auth='. $auth.'&'. http_build_query($options).''; |
|
244 | + return $path . '.json?auth=' . $auth . '&' . http_build_query($options) . ''; |
|
245 | 245 | } |
246 | 246 | |
247 | 247 | /** |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | */ |
443 | 443 | private function writeEventLogs($logger, $eventData, $event, $path) |
444 | 444 | { |
445 | - if (! empty($eventData) || null != $eventData) { |
|
445 | + if (!empty($eventData) || null != $eventData) { |
|
446 | 446 | $logger->addDebug("path: {$path}", [ |
447 | 447 | 'DATA' => $eventData, |
448 | 448 | 'EVENT TYPE' => $event->getEventType() |
@@ -172,7 +172,7 @@ |
||
172 | 172 | ]); |
173 | 173 | |
174 | 174 | } catch (\GuzzleException $e) { |
175 | - die((string)$e->getResponse()->getBody()); |
|
175 | + die((string) $e->getResponse()->getBody()); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | } |