Completed
Push — master ( 02e5d6...52f4c9 )
by Sergey
02:45
created
src/Requests/JSONRequest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function getSource($source)
26 26
     {
27
-        return $this->exec('requestSource', ['source' => $source]);
27
+        return $this->exec('requestSource', [ 'source' => $source ]);
28 28
     }
29 29
 
30 30
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function requestSource($name)
58 58
     {
59
-        return $this->exec('requestSource', ['source' => $name]);
59
+        return $this->exec('requestSource', [ 'source' => $name ]);
60 60
     }
61 61
 
62 62
     /**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         return $this->exec(
70 70
             'getContacts',
71
-            ['idGroup' => $groupId, 'phone' => $phone]
71
+            [ 'idGroup' => $groupId, 'phone' => $phone ]
72 72
         );
73 73
     }
74 74
     
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getPhoneInfo($phone)
80 80
     {
81
-        return $this->exec('getPhoneInfo', ['phone' => $phone]);
81
+        return $this->exec('getPhoneInfo', [ 'phone' => $phone ]);
82 82
     }
83 83
 
84 84
     /**
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
      * @param string|null $groupName
96 96
      * @return array|null
97 97
      */
98
-    public function getGroups($groupId = null,  $groupName = null)
98
+    public function getGroups($groupId = null, $groupName = null)
99 99
     {
100 100
         return $this->exec(
101 101
             'getGroups',
102
-            ['id' => $groupId, 'name' => $groupName]
102
+            [ 'id' => $groupId, 'name' => $groupName ]
103 103
         );
104 104
     }
105 105
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function editGroup($name, $id)
121 121
     {
122
-        return $this->exec('saveGroup', ['id' => $id, 'name' => $name]);
122
+        return $this->exec('saveGroup', [ 'id' => $id, 'name' => $name ]);
123 123
     }
124 124
 
125 125
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function removeContact($phone, $groupId = null)
139 139
     {
140
-        return $this->exec('removeContact', ['phone' => $phone, 'groupId' => $groupId]);
140
+        return $this->exec('removeContact', [ 'phone' => $phone, 'groupId' => $groupId ]);
141 141
     }
142 142
 
143 143
     /**
Please login to merge, or discard this patch.