@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
15 | 15 | use Doctrine\Common\Collections\ArrayCollection; |
16 | -use PhraseanetSDK\EntityHydrator; |
|
17 | 16 | |
18 | 17 | class DataboxTermsOfUse extends AbstractRepository |
19 | 18 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * Retrieve the entry identified by its id |
23 | 23 | * |
24 | 24 | * @param integer $id The entry id |
25 | - * @return \PhraseanetSDK\Entity\Feed |
|
25 | + * @return FeedEntry |
|
26 | 26 | * @throws RuntimeException |
27 | 27 | */ |
28 | 28 | public function findById($id) |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use PhraseanetSDK\Entity\FeedEntry; |
15 | 15 | use PhraseanetSDK\Exception\RuntimeException; |
16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
17 | -use PhraseanetSDK\EntityHydrator; |
|
18 | 17 | |
19 | 18 | class Entry extends AbstractRepository |
20 | 19 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
15 | 15 | use Doctrine\Common\Collections\ArrayCollection; |
16 | -use PhraseanetSDK\EntityHydrator; |
|
17 | 16 | |
18 | 17 | class Feed extends AbstractRepository |
19 | 18 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
15 | 15 | use Doctrine\Common\Collections\ArrayCollection; |
16 | -use PhraseanetSDK\EntityHydrator; |
|
17 | 16 | |
18 | 17 | class Metadata extends AbstractRepository |
19 | 18 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
15 | 15 | use Doctrine\Common\Collections\ArrayCollection; |
16 | -use PhraseanetSDK\EntityHydrator; |
|
17 | 16 | |
18 | 17 | class Quarantine extends AbstractRepository |
19 | 18 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
15 | 15 | use Doctrine\Common\Collections\ArrayCollection; |
16 | -use PhraseanetSDK\EntityHydrator; |
|
17 | 16 | |
18 | 17 | class RecordStatus extends AbstractRepository |
19 | 18 | { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
15 | 15 | use PhraseanetSDK\Exception\NotFoundException; |
16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
17 | -use PhraseanetSDK\EntityHydrator; |
|
18 | 17 | |
19 | 18 | class Subdef extends AbstractRepository |
20 | 19 | { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace PhraseanetSDK\Repository; |
13 | 13 | |
14 | -use PhraseanetSDK\EntityHydrator; |
|
15 | 14 | use PhraseanetSDK\Exception\RuntimeException; |
16 | 15 | |
17 | 16 | class User extends AbstractRepository |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | throw new RuntimeException('Missing "token" property in response content'); |
82 | 82 | } |
83 | 83 | |
84 | - return (string)$response->getProperty('reset_token'); |
|
84 | + return (string) $response->getProperty('reset_token'); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | throw new RuntimeException('Missing "success" property in response content'); |
102 | 102 | } |
103 | 103 | |
104 | - return (bool)$response->getProperty('success'); |
|
104 | + return (bool) $response->getProperty('success'); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | public function updatePassword($currentPassword, $newPassword) |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | throw new RuntimeException('Missing "success" property in response content'); |
119 | 119 | } |
120 | 120 | |
121 | - return (bool)$response->getProperty('success'); |
|
121 | + return (bool) $response->getProperty('success'); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | throw new \RuntimeException('Missing "token" property in response content'); |
165 | 165 | } |
166 | 166 | |
167 | - return (string)$response->getProperty('token'); |
|
167 | + return (string) $response->getProperty('token'); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | public function updateUser(\PhraseanetSDK\Entity\User $user) |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | throw new RuntimeException('Missing "success" property in response content'); |
194 | 194 | } |
195 | 195 | |
196 | - return (bool)$response->getProperty('success'); |
|
196 | + return (bool) $response->getProperty('success'); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | public function deleteAccount() |
@@ -215,6 +215,6 @@ discard block |
||
215 | 215 | throw new \RuntimeException('Missing "success" property in response content'); |
216 | 216 | } |
217 | 217 | |
218 | - return (bool)$response->getProperty('success'); |
|
218 | + return (bool) $response->getProperty('success'); |
|
219 | 219 | } |
220 | 220 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | */ |
167 | 167 | public function getValidationUsers() |
168 | 168 | { |
169 | - if (! $this->isValidationBasket()) { |
|
169 | + if (!$this->isValidationBasket()) { |
|
170 | 170 | return null; |
171 | 171 | } |
172 | 172 |