@@ -8,42 +8,42 @@ |
||
| 8 | 8 | |
| 9 | 9 | class Favro |
| 10 | 10 | { |
| 11 | - /** |
|
| 12 | - * @param string $login |
|
| 13 | - * @param string $password |
|
| 14 | - * @return Api |
|
| 15 | - */ |
|
| 16 | - public static function create($login, $password) |
|
| 17 | - { |
|
| 18 | - $endpointsContainer = new EndpointsContainer( |
|
| 19 | - self::getHttpInterfaceAdapter($login, $password) |
|
| 20 | - ); |
|
| 21 | - return new Api($endpointsContainer); |
|
| 22 | - } |
|
| 11 | + /** |
|
| 12 | + * @param string $login |
|
| 13 | + * @param string $password |
|
| 14 | + * @return Api |
|
| 15 | + */ |
|
| 16 | + public static function create($login, $password) |
|
| 17 | + { |
|
| 18 | + $endpointsContainer = new EndpointsContainer( |
|
| 19 | + self::getHttpInterfaceAdapter($login, $password) |
|
| 20 | + ); |
|
| 21 | + return new Api($endpointsContainer); |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * @param string $login |
|
| 26 | - * @param string $password |
|
| 27 | - * @return GuzzleHttpClient |
|
| 28 | - */ |
|
| 29 | - protected static function getHttpInterfaceAdapter($login, $password) |
|
| 30 | - { |
|
| 31 | - return new GuzzleHttpClient( |
|
| 32 | - new Client(['auth' => [$login, $password]]) |
|
| 33 | - ); |
|
| 34 | - } |
|
| 24 | + /** |
|
| 25 | + * @param string $login |
|
| 26 | + * @param string $password |
|
| 27 | + * @return GuzzleHttpClient |
|
| 28 | + */ |
|
| 29 | + protected static function getHttpInterfaceAdapter($login, $password) |
|
| 30 | + { |
|
| 31 | + return new GuzzleHttpClient( |
|
| 32 | + new Client(['auth' => [$login, $password]]) |
|
| 33 | + ); |
|
| 34 | + } |
|
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * @codeCoverageIgnore |
|
| 38 | - */ |
|
| 39 | - private function __construct() |
|
| 40 | - { |
|
| 41 | - } |
|
| 36 | + /** |
|
| 37 | + * @codeCoverageIgnore |
|
| 38 | + */ |
|
| 39 | + private function __construct() |
|
| 40 | + { |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * @codeCoverageIgnore |
|
| 45 | - */ |
|
| 46 | - private function __clone() |
|
| 47 | - { |
|
| 48 | - } |
|
| 43 | + /** |
|
| 44 | + * @codeCoverageIgnore |
|
| 45 | + */ |
|
| 46 | + private function __clone() |
|
| 47 | + { |
|
| 48 | + } |
|
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |