Completed
Branch develop (0d3216)
by Ventimiglia
03:13
created
src/Firebase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      * Create new Firebase client object
66 66
      * Remember to install PHP CURL extention
67 67
      *
68
-     * @param Config\FirebaseAuth $auth
68
+     * @param FirebaseAuth $auth
69 69
      */
70 70
     public function __construct(FirebaseAuth $auth)
71 71
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         }
80 80
 
81 81
         // check if extension is installed
82
-        if (! extension_loaded('curl')) {
82
+        if (!extension_loaded('curl')) {
83 83
             trigger_error($curlMessage, E_USER_ERROR);
84 84
         }
85 85
 
@@ -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
         }
Please login to merge, or discard this patch.
src/FirebaseLogs.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,6 @@
 block discarded – undo
66 66
     /**
67 67
      * Write log of current event
68 68
      *
69
-     * @param Logger $logger
70 69
      * @param array $eventData
71 70
      * @param mixed $event
72 71
      * @param string $path
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      */
74 74
     public function writeEventLogs($eventData, $event, $path)
75 75
     {
76
-        if (! empty($eventData) || null != $eventData) {
76
+        if (!empty($eventData) || null != $eventData) {
77 77
             $this->logger->addDebug("path: {$path}", [
78 78
                 'DATA' => $eventData,
79 79
                 'EVENT TYPE' => $event->getEventType()
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
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     private function validateOperation()
132 132
     {
133
-        if (! is_string($this->getOperation())) {
133
+        if (!is_string($this->getOperation())) {
134 134
             $getOperation = "Operation parameter must be STRING and NOT EMPTY. Received : ";
135 135
             $getOperation .= gettype($this->getOperation()) . " ({$this->getOperation()}).";
136 136
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     private function validateStatus()
147 147
     {
148
-        if (! is_numeric($this->getStatus())) {
148
+        if (!is_numeric($this->getStatus())) {
149 149
             $getStatus = "Status parameter must be NUMERIC. Received : ";
150 150
             $getStatus .= gettype($this->getStatus()) . " ({$this->getStatus()}).";
151 151
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     private function validateData()
162 162
     {
163
-        if (! is_array($this->getFirebaseData())) {
163
+        if (!is_array($this->getFirebaseData())) {
164 164
             $gettype = "FirebaseData parameter must be ARRAY. Received : " . gettype($this->getFirebaseData()) . ".";
165 165
             throw new \Exception($gettype);
166 166
         }
@@ -175,16 +175,16 @@  discard block
 block discarded – undo
175 175
     {
176 176
         switch (json_last_error()) {
177 177
             case JSON_ERROR_NONE:
178
-                $jsonValidator =  '';
178
+                $jsonValidator = '';
179 179
                 break;
180 180
             case JSON_ERROR_STATE_MISMATCH:
181
-                $jsonValidator =  ' - Underflow or the modes mismatch';
181
+                $jsonValidator = ' - Underflow or the modes mismatch';
182 182
                 break;
183 183
             case JSON_ERROR_SYNTAX:
184
-                $jsonValidator =  ' - Syntax error, malformed JSON';
184
+                $jsonValidator = ' - Syntax error, malformed JSON';
185 185
                 break;
186 186
             case JSON_ERROR_UTF8:
187
-                $jsonValidator =  ' - Malformed UTF-8 characters, possibly incorrectly encoded';
187
+                $jsonValidator = ' - Malformed UTF-8 characters, possibly incorrectly encoded';
188 188
                 break;
189 189
         }
190 190
 
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
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
             'headers' => $headers,
172 172
             ]);
173 173
         } catch (\GuzzleHttp\Exception\ClientException $e) {
174
-            die((string)$e->getResponse()->getBody());
174
+            die((string) $e->getResponse()->getBody());
175 175
         }
176 176
     }
177 177
 
Please login to merge, or discard this patch.