@@ -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 | } |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected $message; |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param StatusInterface $status |
|
| 46 | + */ |
|
| 44 | 47 | public function __construct($status, $message = '[System]') |
| 45 | 48 | { |
| 46 | 49 | if (!$status instanceof StatusInterface) { |
@@ -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); |