@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | private $key; |
10 | 10 | private $isTest = false; |
11 | 11 | |
12 | - public function __construct($params=[]) |
|
12 | + public function __construct($params = []) |
|
13 | 13 | { |
14 | 14 | if (isset($params['test'])) { |
15 | 15 | $this->isTest = $params['test']; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | return $this->_request('article', $options); |
82 | 82 | } |
83 | 83 | |
84 | - public function articles($options=null) |
|
84 | + public function articles($options = null) |
|
85 | 85 | { |
86 | 86 | if (!$this->key) { |
87 | 87 | throw new \Exception('You forgot to provide api key'); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | return $this->_request($url, $options); |
99 | 99 | } |
100 | 100 | |
101 | - private function _request($suffix, $options=[], $method='get') |
|
101 | + private function _request($suffix, $options = [], $method = 'get') |
|
102 | 102 | { |
103 | 103 | if ($this->key) { |
104 | 104 | $options['key'] = $this->key; |