Passed
Push — master ( cbde3b...f22511 )
by Abishek R
02:33
created
src/Core/Helpers.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,9 @@
 block discarded – undo
16 16
     public static function clearArray($data)
17 17
     {
18 18
         return array_filter($data, function ($item) {
19
-            if ($item === null)
20
-                return false;
19
+            if ($item === null) {
20
+                            return false;
21
+            }
21 22
             return true;
22 23
         });
23 24
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function clearArray($data)
17 17
     {
18
-        return array_filter($data, function ($item) {
18
+        return array_filter($data, function($item) {
19 19
             if ($item === null)
20 20
                 return false;
21 21
             return true;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public static function array_except($array, $keys)
48 48
     {
49
-        return array_diff_key($array, array_flip((array)$keys));
49
+        return array_diff_key($array, array_flip((array) $keys));
50 50
     }
51 51
 
52 52
     public static function replaceArrayKeys($array, $search, $replace)
Please login to merge, or discard this patch.
src/helpers.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
     function clear_array($data)
8 8
     {
9
-        return array_filter($data, function ($item) {
9
+        return array_filter($data, function($item) {
10 10
             if ($item === null)
11 11
                 return false;
12 12
             return true;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,9 @@
 block discarded – undo
7 7
     function clear_array($data)
8 8
     {
9 9
         return array_filter($data, function ($item) {
10
-            if ($item === null)
11
-                return false;
10
+            if ($item === null) {
11
+                            return false;
12
+            }
12 13
             return true;
13 14
         });
14 15
     }
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function postRequest($uri, $data, $retryCounter = 0)
51 51
     {
52 52
         $data = array_merge($this->toArray(), [
53
-            'payload' => $this->getTripleDESService()->encrypt((string)$data)
53
+            'payload' => $this->getTripleDESService()->encrypt((string) $data)
54 54
         ]);
55 55
 
56 56
         $response = $this->sendRequest($uri, $data);
Please login to merge, or discard this patch.