Completed
Branch master (d12331)
by Ventimiglia
01:57
created
src/FirebaseResponce.php 1 patch
Spacing   +10 added lines, -10 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,25 +189,25 @@  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_DEPTH:
195
-                $jsonValidator =  ' - Maximum stack depth exceeded';
195
+                $jsonValidator = ' - Maximum stack depth exceeded';
196 196
                 break;
197 197
             case JSON_ERROR_STATE_MISMATCH:
198
-                $jsonValidator =  ' - Underflow or the modes mismatch';
198
+                $jsonValidator = ' - Underflow or the modes mismatch';
199 199
                 break;
200 200
             case JSON_ERROR_CTRL_CHAR:
201
-                $jsonValidator =  ' - Unexpected control character found';
201
+                $jsonValidator = ' - Unexpected control character found';
202 202
                 break;
203 203
             case JSON_ERROR_SYNTAX:
204
-                $jsonValidator =  ' - Syntax error, malformed JSON';
204
+                $jsonValidator = ' - Syntax error, malformed JSON';
205 205
                 break;
206 206
             case JSON_ERROR_UTF8:
207
-                $jsonValidator =  ' - Malformed UTF-8 characters, possibly incorrectly encoded';
207
+                $jsonValidator = ' - Malformed UTF-8 characters, possibly incorrectly encoded';
208 208
                 break;
209 209
             default:
210
-                $jsonValidator =  ' - Unknown error';
210
+                $jsonValidator = ' - Unknown error';
211 211
                 break;
212 212
         }
213 213
         
Please login to merge, or discard this patch.