@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @param ServiceLocatorInterface $serviceLocator |
| 27 | 27 | * |
| 28 | - * @return ForgotPassword |
|
| 28 | + * @return GotoResetPassword |
|
| 29 | 29 | */ |
| 30 | 30 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 31 | 31 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * {@inheritDoc} |
| 43 | - * @return GroupsUsersCollection |
|
| 43 | + * @return GroupUsersCollection |
|
| 44 | 44 | * @see \Core\Form\ViewPartialProviderInterface::setViewPartial() |
| 45 | 45 | */ |
| 46 | 46 | public function setViewPartial($partial) |
@@ -98,9 +98,9 @@ |
||
| 98 | 98 | ); |
| 99 | 99 | |
| 100 | 100 | $this->setCount(0) |
| 101 | - ->setAllowRemove(true) |
|
| 102 | - ->setAllowAdd(true) |
|
| 103 | - ->setShouldCreateTemplate(true); |
|
| 101 | + ->setAllowRemove(true) |
|
| 102 | + ->setAllowAdd(true) |
|
| 103 | + ->setShouldCreateTemplate(true); |
|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * {@inheritDoc} |
| 35 | - * @return UserInfoContainer |
|
| 35 | + * @return string |
|
| 36 | 36 | * @see \Core\Form\ViewPartialProviderInterface::getViewPartial() |
| 37 | 37 | */ |
| 38 | 38 | public function getViewPartial() |
@@ -35,8 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Sets the job entity |
| 37 | 37 | * |
| 38 | - * @param Job $jobEntity |
|
| 39 | - * @return MvcEvent |
|
| 38 | + * @return AuthEvent |
|
| 40 | 39 | */ |
| 41 | 40 | public function setUserEntity($userEntity) |
| 42 | 41 | { |
@@ -65,6 +64,9 @@ discard block |
||
| 65 | 64 | return $this->newPassword; |
| 66 | 65 | } |
| 67 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $resetLink |
|
| 69 | + */ |
|
| 68 | 70 | public function setResetLink($resetLink) |
| 69 | 71 | { |
| 70 | 72 | $this->resetLink = $resetLink; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * a new password was created |
| 24 | 24 | */ |
| 25 | - const EVENT_AUTH_NEWPASSWORD = 'auth.newpassword'; |
|
| 25 | + const EVENT_AUTH_NEWPASSWORD = 'auth.newpassword'; |
|
| 26 | 26 | |
| 27 | 27 | protected $userEntity; |
| 28 | 28 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * Detach all our listeners from the event manager |
| 50 | 50 | * |
| 51 | 51 | * @param SharedEventManagerInterface $events |
| 52 | - * @return void |
|
| 52 | + * @return boolean |
|
| 53 | 53 | */ |
| 54 | 54 | public function detachShared(SharedEventManagerInterface $events) |
| 55 | 55 | { |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | /** |
| 122 | 122 | * Sets the From: of the mail header |
| 123 | 123 | * |
| 124 | - * @param $fromName |
|
| 124 | + * @param string $fromName |
|
| 125 | 125 | * @return $this |
| 126 | 126 | */ |
| 127 | 127 | public function setFromName($fromName) |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @var array() |
| 63 | 63 | */ |
| 64 | - protected $enableLogins = ['facebook','xing','linkedin','google','github']; |
|
| 64 | + protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github']; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Enable Registration |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * Creates a User |
| 65 | 65 | * |
| 66 | 66 | * @see \Core\Repository\AbstractRepository::create() |
| 67 | - * @return UserInterface |
|
| 67 | + * @return \Core\Entity\EntityInterface |
|
| 68 | 68 | */ |
| 69 | 69 | public function create(array $data = null) |
| 70 | 70 | { |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @param $email |
|
| 106 | + * @param string $email |
|
| 107 | 107 | * @param bool $isDraft |
| 108 | 108 | * |
| 109 | - * @return UserInterface|null |
|
| 109 | + * @return UserInterface |
|
| 110 | 110 | */ |
| 111 | 111 | public function findByEmail($email, $isDraft = false) |
| 112 | 112 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
| 195 | 195 | } |
| 196 | 196 | $qb->sort(array('info.lastName' => 1)) |
| 197 | - ->sort(array('info.email' => 1)); |
|
| 197 | + ->sort(array('info.email' => 1)); |
|
| 198 | 198 | |
| 199 | 199 | return $qb->getQuery()->execute(); |
| 200 | 200 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function findByProfileIdentifier($identifier, $provider) |
| 89 | 89 | { |
| 90 | - return $this->findOneBy(array('profiles.' . $provider . '.auth.identifier' => $identifier)) ?: $this->findOneBy(array('profile.identifier' => $identifier)); |
|
| 90 | + return $this->findOneBy(array('profiles.'.$provider.'.auth.identifier' => $identifier)) ?: $this->findOneBy(array('profile.identifier' => $identifier)); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $qb->field('_id')->notEqual($curentUserId) |
| 105 | 105 | ->addAnd( |
| 106 | 106 | $qb->expr() |
| 107 | - ->addOr($qb->expr()->field('profiles.' . $provider . '.auth.identifier' )->equals($identifier)) |
|
| 107 | + ->addOr($qb->expr()->field('profiles.'.$provider.'.auth.identifier')->equals($identifier)) |
|
| 108 | 108 | ->addOr($qb->expr()->field('profile.identifier')->equals($identifier)) |
| 109 | 109 | ); |
| 110 | 110 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | return $this->findOneBy( |
| 160 | 160 | array( |
| 161 | 161 | '$or' => array( |
| 162 | - array('login' => $identity . $suffix), |
|
| 162 | + array('login' => $identity.$suffix), |
|
| 163 | 163 | array('info.email' => $identity) |
| 164 | 164 | ) |
| 165 | 165 | ) |
@@ -208,10 +208,10 @@ discard block |
||
| 208 | 208 | public function findByQuery($query) |
| 209 | 209 | { |
| 210 | 210 | $qb = $this->createQueryBuilder(); |
| 211 | - $parts = explode(' ', trim($query)); |
|
| 211 | + $parts = explode(' ', trim($query)); |
|
| 212 | 212 | |
| 213 | 213 | foreach ($parts as $q) { |
| 214 | - $regex = new \MongoRegex('/^' . $query . '/i'); |
|
| 214 | + $regex = new \MongoRegex('/^'.$query.'/i'); |
|
| 215 | 215 | $qb->addOr($qb->expr()->field('info.firstName')->equals($regex)); |
| 216 | 216 | $qb->addOr($qb->expr()->field('info.lastName')->equals($regex)); |
| 217 | 217 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * @param EventManagerInterface $eventManager |
| 85 | - * @return $this|void |
|
| 85 | + * @return ForgotPassword |
|
| 86 | 86 | */ |
| 87 | 87 | public function setEventManager(EventManagerInterface $eventManager) |
| 88 | 88 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | - * @param $user |
|
| 116 | + * @param \Core\Entity\EntityInterface $user |
|
| 117 | 117 | * @return $this |
| 118 | 118 | */ |
| 119 | 119 | protected function setUser($user) |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | /** |
| 206 | 206 | * Email-Address |
| 207 | 207 | * @param $email string |
| 208 | - * @return mixed |
|
| 208 | + * @return Register |
|
| 209 | 209 | */ |
| 210 | 210 | protected function setEmail($email) |
| 211 | 211 | { |