@@ -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,29 +4,29 @@ |
||
4 | 4 | |
5 | 5 | class Widgets extends CrudEndpoint |
6 | 6 | { |
7 | - /** |
|
8 | - * @param string $itemId |
|
9 | - * @param string|null $collectionId |
|
10 | - * @return mixed |
|
11 | - */ |
|
12 | - public function delete($itemId, $collectionId = null) |
|
13 | - { |
|
14 | - $attributes = $collectionId ? ['collectionId' => $collectionId] : []; |
|
7 | + /** |
|
8 | + * @param string $itemId |
|
9 | + * @param string|null $collectionId |
|
10 | + * @return mixed |
|
11 | + */ |
|
12 | + public function delete($itemId, $collectionId = null) |
|
13 | + { |
|
14 | + $attributes = $collectionId ? ['collectionId' => $collectionId] : []; |
|
15 | 15 | |
16 | - return $this |
|
17 | - ->getHttp() |
|
18 | - ->delete( |
|
19 | - $this->makeRequestUrl($itemId), |
|
20 | - $attributes, |
|
21 | - $this->getHeaders() |
|
22 | - ); |
|
23 | - } |
|
16 | + return $this |
|
17 | + ->getHttp() |
|
18 | + ->delete( |
|
19 | + $this->makeRequestUrl($itemId), |
|
20 | + $attributes, |
|
21 | + $this->getHeaders() |
|
22 | + ); |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * {@inheritdoc} |
|
27 | - */ |
|
28 | - public function endpoint() |
|
29 | - { |
|
30 | - return 'widgets'; |
|
31 | - } |
|
25 | + /** |
|
26 | + * {@inheritdoc} |
|
27 | + */ |
|
28 | + public function endpoint() |
|
29 | + { |
|
30 | + return 'widgets'; |
|
31 | + } |
|
32 | 32 | } |
@@ -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 | } |
@@ -5,34 +5,34 @@ |
||
5 | 5 | |
6 | 6 | class Organizations extends CrudEndpoint |
7 | 7 | { |
8 | - /** |
|
9 | - * @param string $id |
|
10 | - * @return array |
|
11 | - */ |
|
12 | - public function getById($id) |
|
13 | - { |
|
14 | - $this->headers['organizationId'] = $id; |
|
8 | + /** |
|
9 | + * @param string $id |
|
10 | + * @return array |
|
11 | + */ |
|
12 | + public function getById($id) |
|
13 | + { |
|
14 | + $this->headers['organizationId'] = $id; |
|
15 | 15 | |
16 | - return parent::getById($id); |
|
17 | - } |
|
16 | + return parent::getById($id); |
|
17 | + } |
|
18 | 18 | |
19 | - /** |
|
20 | - * @param string $itemId |
|
21 | - * @param array $attributes |
|
22 | - * @return mixed |
|
23 | - */ |
|
24 | - public function update($itemId, array $attributes) |
|
25 | - { |
|
26 | - $this->headers['organizationId'] = $itemId; |
|
19 | + /** |
|
20 | + * @param string $itemId |
|
21 | + * @param array $attributes |
|
22 | + * @return mixed |
|
23 | + */ |
|
24 | + public function update($itemId, array $attributes) |
|
25 | + { |
|
26 | + $this->headers['organizationId'] = $itemId; |
|
27 | 27 | |
28 | - return parent::update($itemId, $attributes); |
|
29 | - } |
|
28 | + return parent::update($itemId, $attributes); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * {@inheritdoc} |
|
33 | - */ |
|
34 | - public function endpoint() |
|
35 | - { |
|
36 | - return 'organizations'; |
|
37 | - } |
|
31 | + /** |
|
32 | + * {@inheritdoc} |
|
33 | + */ |
|
34 | + public function endpoint() |
|
35 | + { |
|
36 | + return 'organizations'; |
|
37 | + } |
|
38 | 38 | } |
@@ -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 | } |