@@ -18,21 +18,21 @@ |
||
18 | 18 | |
19 | 19 | class MeCollection extends AbstractRepository |
20 | 20 | { |
21 | - /** |
|
22 | - * Return all collections available |
|
23 | - * |
|
24 | - * @return MeCollection[] |
|
25 | - * @throws NotFoundException |
|
26 | - * @throws UnauthorizedException |
|
27 | - */ |
|
28 | - public function getCollectionsList() |
|
29 | - { |
|
30 | - $response = $this->query('GET', 'v1/me/collections/'); |
|
21 | + /** |
|
22 | + * Return all collections available |
|
23 | + * |
|
24 | + * @return MeCollection[] |
|
25 | + * @throws NotFoundException |
|
26 | + * @throws UnauthorizedException |
|
27 | + */ |
|
28 | + public function getCollectionsList() |
|
29 | + { |
|
30 | + $response = $this->query('GET', 'v1/me/collections/'); |
|
31 | 31 | |
32 | - if ($response->hasProperty(('collections')) !== true) { |
|
33 | - throw new RuntimeException('Missing "collections" property in response content'); |
|
34 | - } |
|
32 | + if ($response->hasProperty(('collections')) !== true) { |
|
33 | + throw new RuntimeException('Missing "collections" property in response content'); |
|
34 | + } |
|
35 | 35 | |
36 | - return \PhraseanetSDK\Entity\MeCollection::fromList($response->getProperty('collections')); |
|
37 | - } |
|
36 | + return \PhraseanetSDK\Entity\MeCollection::fromList($response->getProperty('collections')); |
|
37 | + } |
|
38 | 38 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function setExtended($extended) |
78 | 78 | { |
79 | - $this->extended = (boolean)$extended; |
|
79 | + $this->extended = (boolean) $extended; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function setSslVerification($sslVerification) |
96 | 96 | { |
97 | - $this->sslVerification = (boolean)$sslVerification; |
|
97 | + $this->sslVerification = (boolean) $sslVerification; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | 'Accept' => $this->extended ? 'application/vnd.phraseanet.record-extended+json' : 'application/json' |
126 | 126 | ); |
127 | 127 | |
128 | - if(!$this->sslVerification) { |
|
129 | - $this->guzzle->setSslVerification(false,false,0); |
|
128 | + if (!$this->sslVerification) { |
|
129 | + $this->guzzle->setSslVerification(false, false, 0); |
|
130 | 130 | } |
131 | 131 | $request = $this->guzzle->createRequest($method, $path, array_merge($acceptHeader, $headers)); |
132 | 132 | $this->addRequestParameters($request, $query, $postFields, $files); |