@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param string $uri |
21 | 21 | * @param array $options |
22 | 22 | * |
23 | - * @return \GuzzleHttp\Message\ResponseInterface |
|
23 | + * @return \Psr\Http\Message\ResponseInterface |
|
24 | 24 | */ |
25 | 25 | protected function _doRequest($method, $uri, $options) |
26 | 26 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function __invoke(callable $handler) |
48 | 48 | { |
49 | - return function ( |
|
49 | + return function( |
|
50 | 50 | RequestInterface $request, |
51 | 51 | array $options |
52 | 52 | ) use ($handler) { |
@@ -21,9 +21,9 @@ discard block |
||
21 | 21 | { |
22 | 22 | // are we getting or setting? |
23 | 23 | if (preg_match('~^(set|get|is)([A-Z])(.*)$~', $methodName, $matches)) { |
24 | - $property = strtolower($matches[2]) . $matches[3]; |
|
24 | + $property = strtolower($matches[2]).$matches[3]; |
|
25 | 25 | if (!property_exists($this, $property)) { |
26 | - throw new \InvalidArgumentException('Property ' . $property . ' is not exist'); |
|
26 | + throw new \InvalidArgumentException('Property '.$property.' is not exist'); |
|
27 | 27 | } |
28 | 28 | switch ($matches[1]) { |
29 | 29 | case 'set': |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | return $this->get($property); |
38 | 38 | case 'default': |
39 | - throw new \BadMethodCallException('Method ' . $methodName . ' is not exist'); |
|
39 | + throw new \BadMethodCallException('Method '.$methodName.' is not exist'); |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | $argc = count($args); |
84 | 84 | if ($argc < $min || $argc > $max) { |
85 | - throw new \BadMethodCallException('Method ' . $methodName . ' is not exist'); |
|
85 | + throw new \BadMethodCallException('Method '.$methodName.' is not exist'); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 |