Completed
Branch master (06a783)
by Ventimiglia
02:56
created
src/Firebase.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,12 +114,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      */
390 390
     private function writeEventLogs($logger, $eventData, $event, $path)
391 391
     {
392
-        if (! empty($eventData) || null != $eventData) {
392
+        if (!empty($eventData) || null != $eventData) {
393 393
             $logger->addDebug("path: {$path}", [
394 394
                 'DATA' => $eventData,
395 395
                 'EVENT TYPE' => $event->getEventType()
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * Create new Firebase client object
86 86
      * Remember to install PHP CURL extention
87 87
      *
88
-     * @param Config\FirebaseAuth $auth
88
+     * @param Authentication\FirebaseAuth $auth
89 89
      */
90 90
     public function __construct(\ZendFirebase\Authentication\FirebaseAuth $auth)
91 91
     {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * Controll of all dipendenties
116 116
      *
117
-     * @param \ZendFirebase\Config\FirebaseAuth $auth
117
+     * @param Authentication\FirebaseAuth $auth
118 118
      */
119 119
     private function checkDipendenties($auth)
120 120
     {
Please login to merge, or discard this patch.
src/Stream/StreamClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/FirebaseResponce.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
@@ -189,16 +189,16 @@  discard block
 block discarded – undo
189 189
     {
190 190
         switch (json_last_error()) {
191 191
             case JSON_ERROR_NONE:
192
-                $jsonValidator =  false;
192
+                $jsonValidator = false;
193 193
                 break;
194 194
             case JSON_ERROR_STATE_MISMATCH:
195
-                $jsonValidator =  ' - Underflow or the modes mismatch';
195
+                $jsonValidator = ' - Underflow or the modes mismatch';
196 196
                 break;
197 197
             case JSON_ERROR_SYNTAX:
198
-                $jsonValidator =  ' - Syntax error, malformed JSON';
198
+                $jsonValidator = ' - Syntax error, malformed JSON';
199 199
                 break;
200 200
             case JSON_ERROR_UTF8:
201
-                $jsonValidator =  ' - Malformed UTF-8 characters, possibly incorrectly encoded';
201
+                $jsonValidator = ' - Malformed UTF-8 characters, possibly incorrectly encoded';
202 202
                 break;
203 203
         }
204 204
         
Please login to merge, or discard this patch.
src/FirebaseLogs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function writeEventLogs($logger, $eventData, $event, $path)
50 50
     {
51
-        if (! empty($eventData) || null != $eventData) {
51
+        if (!empty($eventData) || null != $eventData) {
52 52
             $logger->addDebug("path: {$path}", [
53 53
                 'DATA' => $eventData,
54 54
                 'EVENT TYPE' => $event->getEventType()
Please login to merge, or discard this patch.