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