@@ -44,19 +44,19 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | protected function callRequestMethod(RequestInterface $request, $method, array $arguments) |
| 46 | 46 | { |
| 47 | - if(empty($arguments)) return $request->{$method}(); |
|
| 47 | + if (empty($arguments)) return $request->{$method}(); |
|
| 48 | 48 | |
| 49 | 49 | switch (count($arguments)) { |
| 50 | 50 | case 1: |
| 51 | - return $request->{$method}($arguments[0]); |
|
| 51 | + return $request->{$method}($arguments[ 0 ]); |
|
| 52 | 52 | case 2: |
| 53 | - return $request->{$method}($arguments[0], $arguments[1]); |
|
| 53 | + return $request->{$method}($arguments[ 0 ], $arguments[ 1 ]); |
|
| 54 | 54 | case 3: |
| 55 | - return $request->{$method}($arguments[0], $arguments[1], $arguments[2]); |
|
| 55 | + return $request->{$method}($arguments[ 0 ], $arguments[ 1 ], $arguments[ 2 ]); |
|
| 56 | 56 | case 4: |
| 57 | - return $request->{$method}($arguments[0], $arguments[1], $arguments[2], $arguments[3]); |
|
| 57 | + return $request->{$method}($arguments[ 0 ], $arguments[ 1 ], $arguments[ 2 ], $arguments[ 3 ]); |
|
| 58 | 58 | case 5: |
| 59 | - return $request->{$method}($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]); |
|
| 59 | + return $request->{$method}($arguments[ 0 ], $arguments[ 1 ], $arguments[ 2 ], $arguments[ 3 ], $arguments[ 4 ]); |
|
| 60 | 60 | default: |
| 61 | 61 | return $request->{$method}($arguments); |
| 62 | 62 | } |
@@ -44,7 +44,9 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | protected function callRequestMethod(RequestInterface $request, $method, array $arguments) |
| 46 | 46 | { |
| 47 | - if(empty($arguments)) return $request->{$method}(); |
|
| 47 | + if(empty($arguments)) { |
|
| 48 | + return $request->{$method}(); |
|
| 49 | + } |
|
| 48 | 50 | |
| 49 | 51 | switch (count($arguments)) { |
| 50 | 52 | case 1: |
@@ -24,7 +24,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |