@@ -17,43 +17,43 @@ |
||
17 | 17 | |
18 | 18 | class Favro |
19 | 19 | { |
20 | - /** |
|
21 | - * @param string $login |
|
22 | - * @param string $password |
|
23 | - * @return Api |
|
24 | - */ |
|
25 | - public static function create($login, $password) |
|
26 | - { |
|
27 | - $httpClient = new GuzzleHttpClient( |
|
28 | - new Client(['auth' => [$login, $password]]) |
|
29 | - ); |
|
20 | + /** |
|
21 | + * @param string $login |
|
22 | + * @param string $password |
|
23 | + * @return Api |
|
24 | + */ |
|
25 | + public static function create($login, $password) |
|
26 | + { |
|
27 | + $httpClient = new GuzzleHttpClient( |
|
28 | + new Client(['auth' => [$login, $password]]) |
|
29 | + ); |
|
30 | 30 | |
31 | - return new Api( |
|
32 | - $httpClient, |
|
33 | - new Cards($httpClient), |
|
34 | - new Collections($httpClient), |
|
35 | - new Columns($httpClient), |
|
36 | - new Comments($httpClient), |
|
37 | - new Organizations($httpClient), |
|
38 | - new Tags($httpClient), |
|
39 | - new TaskLists($httpClient), |
|
40 | - new Tasks($httpClient), |
|
41 | - new Users($httpClient), |
|
42 | - new Widgets($httpClient) |
|
43 | - ); |
|
44 | - } |
|
31 | + return new Api( |
|
32 | + $httpClient, |
|
33 | + new Cards($httpClient), |
|
34 | + new Collections($httpClient), |
|
35 | + new Columns($httpClient), |
|
36 | + new Comments($httpClient), |
|
37 | + new Organizations($httpClient), |
|
38 | + new Tags($httpClient), |
|
39 | + new TaskLists($httpClient), |
|
40 | + new Tasks($httpClient), |
|
41 | + new Users($httpClient), |
|
42 | + new Widgets($httpClient) |
|
43 | + ); |
|
44 | + } |
|
45 | 45 | |
46 | - /** |
|
47 | - * @codeCoverageIgnore |
|
48 | - */ |
|
49 | - private function __construct() |
|
50 | - { |
|
51 | - } |
|
46 | + /** |
|
47 | + * @codeCoverageIgnore |
|
48 | + */ |
|
49 | + private function __construct() |
|
50 | + { |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * @codeCoverageIgnore |
|
55 | - */ |
|
56 | - private function __clone() |
|
57 | - { |
|
58 | - } |
|
53 | + /** |
|
54 | + * @codeCoverageIgnore |
|
55 | + */ |
|
56 | + private function __clone() |
|
57 | + { |
|
58 | + } |
|
59 | 59 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Comments extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'comments'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'comments'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class TaskLists extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'tasklists'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'tasklists'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Tasks extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'tasks'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'tasks'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Collections extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'collections'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'collections'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Tags extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'tags'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'tags'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Users extends Endpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'users'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'users'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Cards extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'cards'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'cards'; |
|
13 | + } |
|
14 | 14 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | class Columns extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * {@inheritdoc} |
|
9 | - */ |
|
10 | - public function endpoint() |
|
11 | - { |
|
12 | - return 'columns'; |
|
13 | - } |
|
7 | + /** |
|
8 | + * {@inheritdoc} |
|
9 | + */ |
|
10 | + public function endpoint() |
|
11 | + { |
|
12 | + return 'columns'; |
|
13 | + } |
|
14 | 14 | } |