@@ -404,7 +404,7 @@ |
||
| 404 | 404 | /** |
| 405 | 405 | * {@inheritDoc} |
| 406 | 406 | * @see \Applications\Entity\ApplicationInterface::getSummary() |
| 407 | - * @return Application |
|
| 407 | + * @return string |
|
| 408 | 408 | */ |
| 409 | 409 | public function getSummary() |
| 410 | 410 | { |
@@ -446,7 +446,7 @@ |
||
| 446 | 446 | public function getCv() |
| 447 | 447 | { |
| 448 | 448 | if (is_null($this->cv)) { |
| 449 | - $this->cv= new Cv(); |
|
| 449 | + $this->cv = new Cv(); |
|
| 450 | 450 | } |
| 451 | 451 | return $this->cv; |
| 452 | 452 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * Gets the the maximum number of allowed attachments |
| 123 | 123 | * |
| 124 | - * @return string |
|
| 124 | + * @return integer |
|
| 125 | 125 | */ |
| 126 | 126 | public function getAttachmentsCount() |
| 127 | 127 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * Gets the the maximum size of contact images in bytes |
| 144 | 144 | * |
| 145 | - * @return string |
|
| 145 | + * @return integer |
|
| 146 | 146 | */ |
| 147 | 147 | public function getContactImageMaxSize() |
| 148 | 148 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @var array $attachmentsMimeType |
| 36 | 36 | */ |
| 37 | - protected $attachmentsMimeType = array('image','applications/pdf', |
|
| 37 | + protected $attachmentsMimeType = array('image', 'applications/pdf', |
|
| 38 | 38 | 'application/x-pdf', |
| 39 | 39 | 'application/acrobat', |
| 40 | 40 | 'applications/vnd.pdf', |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Updates fiile permissions on Flush |
| 37 | 37 | * |
| 38 | - * @param OnFlushEventArgs $eventArgs |
|
| 39 | - * @return boolean |
|
| 38 | + * @param LifecycleEventArgs $eventArgs |
|
| 39 | + * @return boolean|null |
|
| 40 | 40 | */ |
| 41 | 41 | public function postRemoveEntity(LifecycleEventArgs $eventArgs) |
| 42 | 42 | { |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * Updates fiile permissions on Flush |
| 36 | 36 | * |
| 37 | 37 | * @param OnFlushEventArgs $eventArgs |
| 38 | - * @return boolean |
|
| 38 | + * @return boolean|null |
|
| 39 | 39 | */ |
| 40 | 40 | public function onFlush(OnFlushEventArgs $eventArgs) |
| 41 | 41 | { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $dm = $eventArgs->getDocumentManager(); |
| 43 | 43 | $uow = $dm->getUnitOfWork(); |
| 44 | 44 | |
| 45 | - $filter = function ($element) { |
|
| 45 | + $filter = function($element) { |
|
| 46 | 46 | return $element instanceof ApplicationInterface |
| 47 | 47 | && $element->getPermissions()->hasChanged(); |
| 48 | 48 | }; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
| 27 | 27 | * @param ServiceLocatorInterface $serviceLocator |
| 28 | - * @return \Applications\Repository\Filter\PaginationQuery|mixed |
|
| 28 | + * @return PaginationQuery |
|
| 29 | 29 | */ |
| 30 | 30 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 31 | 31 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 33 | 33 | { |
| 34 | - $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 34 | + $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
| 35 | 35 | $filter = new PaginationQuery($auth); |
| 36 | 36 | return $filter; |
| 37 | 37 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * - injects the UserRepository fetched from the service manager. |
| 22 | 22 | * |
| 23 | 23 | * @param ServiceLocatorInterface $serviceLocator |
| 24 | - * @return \Auth\Adapter\ExternalApplication |
|
| 24 | + * @return \Zend\Permissions\Acl\AclInterface |
|
| 25 | 25 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
| 26 | 26 | */ |
| 27 | 27 | public function createService(ServiceLocatorInterface $serviceLocator) |
@@ -22,8 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * - Injects the AuthenticationService |
| 24 | 24 | * |
| 25 | - * @param ServiceLocatorInterface $helpers |
|
| 26 | - * @return \Auth\View\Helper\Auth |
|
| 25 | + * @return CheckPermissionsListener |
|
| 27 | 26 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
| 28 | 27 | */ |
| 29 | 28 | public function createService(ServiceLocatorInterface $serviceLocator) |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Gets the provider identifier used by HybridAuth. |
| 65 | 65 | * |
| 66 | - * @return string|null |
|
| 66 | + * @return string |
|
| 67 | 67 | */ |
| 68 | 68 | public function getProvider() |
| 69 | 69 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /* */ |
| 106 | 106 | |
| 107 | 107 | $dm = $this->getRepository()->getDocumentManager(); |
| 108 | - if ( '' == $user->getInfo()->email) $user->getInfo()->email = $email; |
|
| 108 | + if ('' == $user->getInfo()->email) $user->getInfo()->email = $email; |
|
| 109 | 109 | $user->getInfo()->firstName = $userProfile->firstName; |
| 110 | 110 | $user->getInfo()->lastName = $userProfile->lastName; |
| 111 | 111 | $user->getInfo()->birthDay = $userProfile->birthDay; |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $file->setBytes($response->getBody()); |
| 137 | 137 | |
| 138 | 138 | $userImage = new UserImage(); |
| 139 | - $userImage->setName($userProfile->lastName.$userProfile->firstName); |
|
| 139 | + $userImage->setName($userProfile->lastName . $userProfile->firstName); |
|
| 140 | 140 | $userImage->setType($response->getHeaders()->get('Content-Type')->getFieldValue()); |
| 141 | 141 | $userImage->setUser($user); |
| 142 | 142 | $userImage->setFile($file); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * {@inheritdoc} |
| 128 | 128 | * |
| 129 | - * @return \Auth\Entity\User |
|
| 129 | + * @return Info |
|
| 130 | 130 | */ |
| 131 | 131 | public function setBirthDay($birthDay) |
| 132 | 132 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * {@inheritdoc} |
| 149 | 149 | * |
| 150 | - * @return \Auth\Entity\User |
|
| 150 | + * @return Info |
|
| 151 | 151 | */ |
| 152 | 152 | public function setBirthMonth($birthMonth) |
| 153 | 153 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * {@inheritdoc} |
| 170 | 170 | * |
| 171 | - * @return \Auth\Entity\User |
|
| 171 | + * @return Info |
|
| 172 | 172 | */ |
| 173 | 173 | public function setBirthYear($birthYear) |
| 174 | 174 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | /** |
| 233 | 233 | * {@inheritdoc} |
| 234 | 234 | * |
| 235 | - * @return \Auth\Entity\User |
|
| 235 | + * @return Info |
|
| 236 | 236 | */ |
| 237 | 237 | public function setFirstName($firstName) |
| 238 | 238 | { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | /** |
| 255 | 255 | * {@inheritdoc} |
| 256 | 256 | * |
| 257 | - * @return \Auth\Entity\User |
|
| 257 | + * @return Info |
|
| 258 | 258 | */ |
| 259 | 259 | public function setGender($gender) |
| 260 | 260 | { |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * {@inheritdoc} |
| 277 | 277 | * |
| 278 | - * @return \Auth\Entity\User |
|
| 278 | + * @return Info |
|
| 279 | 279 | */ |
| 280 | 280 | public function setHouseNumber($houseNumber) |
| 281 | 281 | { |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | /** |
| 297 | 297 | * {@inheritdoc} |
| 298 | 298 | * |
| 299 | - * @return \Auth\Entity\User |
|
| 299 | + * @return Info |
|
| 300 | 300 | */ |
| 301 | 301 | public function setLastName($name) |
| 302 | 302 | { |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | /** |
| 326 | 326 | * {@inheritdoc} |
| 327 | 327 | * |
| 328 | - * @return \Auth\Entity\User |
|
| 328 | + * @return Info |
|
| 329 | 329 | */ |
| 330 | 330 | public function setPhone($phone) |
| 331 | 331 | { |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | /** |
| 347 | 347 | * {@inheritdoc} |
| 348 | 348 | * |
| 349 | - * @return \Auth\Entity\User |
|
| 349 | + * @return Info |
|
| 350 | 350 | */ |
| 351 | 351 | public function setPostalCode($postalCode) |
| 352 | 352 | { |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | /** |
| 368 | 368 | * {@inheritdoc} |
| 369 | 369 | * |
| 370 | - * @return \Auth\Entity\User |
|
| 370 | + * @return Info |
|
| 371 | 371 | */ |
| 372 | 372 | public function setCity($city) |
| 373 | 373 | { |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | /** |
| 410 | 410 | * {@inheritdoc} |
| 411 | 411 | * |
| 412 | - * @return \Auth\Entity\User |
|
| 412 | + * @return Info |
|
| 413 | 413 | */ |
| 414 | 414 | public function setStreet($street) |
| 415 | 415 | { |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | public function setBirthDay($birthDay) |
| 132 | 132 | { |
| 133 | - $this->birthDay=$birthDay; |
|
| 133 | + $this->birthDay = $birthDay; |
|
| 134 | 134 | return $this; |
| 135 | 135 | } |
| 136 | 136 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | public function setBirthMonth($birthMonth) |
| 153 | 153 | { |
| 154 | - $this->birthMonth=$birthMonth; |
|
| 154 | + $this->birthMonth = $birthMonth; |
|
| 155 | 155 | return $this; |
| 156 | 156 | } |
| 157 | 157 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | */ |
| 173 | 173 | public function setBirthYear($birthYear) |
| 174 | 174 | { |
| 175 | - $this->birthYear=$birthYear; |
|
| 175 | + $this->birthYear = $birthYear; |
|
| 176 | 176 | return $this; |
| 177 | 177 | } |
| 178 | 178 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | public function setEmail($email) |
| 195 | 195 | { |
| 196 | - $this->email = trim((String)$email); |
|
| 196 | + $this->email = trim((String) $email); |
|
| 197 | 197 | return $this; |
| 198 | 198 | } |
| 199 | 199 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | public function setFirstName($firstName) |
| 238 | 238 | { |
| 239 | - $this->firstName = trim((String)$firstName); |
|
| 239 | + $this->firstName = trim((String) $firstName); |
|
| 240 | 240 | return $this; |
| 241 | 241 | } |
| 242 | 242 | |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | */ |
| 259 | 259 | public function setGender($gender) |
| 260 | 260 | { |
| 261 | - $this->gender = trim((String)$gender); |
|
| 261 | + $this->gender = trim((String) $gender); |
|
| 262 | 262 | return $this; |
| 263 | 263 | } |
| 264 | 264 | |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | */ |
| 280 | 280 | public function setHouseNumber($houseNumber) |
| 281 | 281 | { |
| 282 | - $this->houseNumber=$houseNumber; |
|
| 282 | + $this->houseNumber = $houseNumber; |
|
| 283 | 283 | return $this; |
| 284 | 284 | } |
| 285 | 285 | |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | */ |
| 414 | 414 | public function setStreet($street) |
| 415 | 415 | { |
| 416 | - $this->street=$street; |
|
| 416 | + $this->street = $street; |
|
| 417 | 417 | return $this; |
| 418 | 418 | } |
| 419 | 419 | |