@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function findByUri($uri, $create = false) |
27 | 27 | { |
28 | - $subscriber = $this->findOneBy(array( "uri" => $uri )); |
|
28 | + $subscriber = $this->findOneBy(array("uri" => $uri)); |
|
29 | 29 | if (!isset($subscriber) && $create) { |
30 | 30 | $subscriber = $this->create(); |
31 | 31 | $subscriber->uri = $uri; |
@@ -97,9 +97,9 @@ |
||
97 | 97 | |
98 | 98 | $event = new AssertionEvent(null, $this); |
99 | 99 | $event->setAcl($acl) |
100 | - ->setRole($role) |
|
101 | - ->setResource($resource) |
|
102 | - ->setPrivilege($privilege); |
|
100 | + ->setRole($role) |
|
101 | + ->setResource($resource) |
|
102 | + ->setPrivilege($privilege); |
|
103 | 103 | |
104 | 104 | $events = $this->getEventManager(); |
105 | 105 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | $results = $events->trigger( |
107 | 107 | $event, |
108 | - function ($r) { |
|
108 | + function($r) { |
|
109 | 109 | return false === $r; |
110 | 110 | } |
111 | 111 | ); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | $events->attach( |
50 | 50 | MvcEvent::EVENT_DISPATCH, |
51 | - function ($event) { |
|
51 | + function($event) { |
|
52 | 52 | $routeMatch = $event->getRouteMatch(); |
53 | 53 | $action = $routeMatch->getParam('action'); |
54 | 54 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | $events->attach( |
70 | 70 | MvcEvent::EVENT_DISPATCH, |
71 | - function ($event) { |
|
71 | + function($event) { |
|
72 | 72 | $model = $event->getResult(); |
73 | 73 | if (!$model instanceof ViewModel || $model->terminate()) { |
74 | 74 | return; |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $users = $repository->findByQuery($query); |
199 | 199 | |
200 | 200 | $userFilter = $services->get('filtermanager')->get('Auth/Entity/UserToSearchResult'); |
201 | - $filterFunc = function ($user) use ($userFilter) { |
|
201 | + $filterFunc = function($user) use ($userFilter) { |
|
202 | 202 | return $userFilter->filter($user); |
203 | 203 | }; |
204 | 204 | $result = array_values(array_map($filterFunc, $users->toArray())); |
@@ -135,7 +135,7 @@ |
||
135 | 135 | $hybridAuth->restoreSessionData($sessionDataStored); |
136 | 136 | } |
137 | 137 | $adapter = $hybridAuth->authenticate($this->providerKey); |
138 | - $sessionData = $hybridAuth->getSessionData(); |
|
138 | + $sessionData = $hybridAuth->getSessionData(); |
|
139 | 139 | if ($sessionData != $sessionDataStored) { |
140 | 140 | $user->updateAuthSession($this->providerKey, $sessionData); |
141 | 141 | } |
@@ -177,7 +177,7 @@ |
||
177 | 177 | /** {@inheritdoc} */ |
178 | 178 | public function setLogin($login) |
179 | 179 | { |
180 | - $this->login = trim((String)$login); |
|
180 | + $this->login = trim((String) $login); |
|
181 | 181 | return $this; |
182 | 182 | } |
183 | 183 |
@@ -20,8 +20,8 @@ |
||
20 | 20 | public function init() |
21 | 21 | { |
22 | 22 | $this->setName('base'); |
23 | - //->setLabel( /* @translate */ 'General'); |
|
24 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
23 | + //->setLabel( /* @translate */ 'General'); |
|
24 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
25 | 25 | |
26 | 26 | |
27 | 27 | $this->add( |
@@ -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 |
@@ -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; |
@@ -76,6 +78,9 @@ discard block |
||
76 | 78 | return $this->resetLink; |
77 | 79 | } |
78 | 80 | |
81 | + /** |
|
82 | + * @param \Auth\Entity\UserInterface $user |
|
83 | + */ |
|
79 | 84 | public function setUser($user) |
80 | 85 | { |
81 | 86 | $this->user = $user; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | { |
28 | 28 | public function attach(EventManagerInterface $events) |
29 | 29 | { |
30 | - $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [ $this, 'onDispatchError']); |
|
30 | + $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'onDispatchError']); |
|
31 | 31 | |
32 | 32 | return $this; |
33 | 33 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | const NAMESPACE_INFO = 'info'; |
22 | 22 | const NAMESPACE_WARNING = 'warning'; |
23 | 23 | const NAMESPACE_DANGER = 'danger'; |
24 | - const NAMESPACE_SUCCESS = 'success'; |
|
24 | + const NAMESPACE_SUCCESS = 'success'; |
|
25 | 25 | |
26 | 26 | protected $namespace2priority = array( |
27 | 27 | self::NAMESPACE_INFO => NotificationEntity::INFO, |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function setListener($listener) |
61 | 61 | { |
62 | - $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1); |
|
62 | + $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1); |
|
63 | 63 | $this->notificationListener = $listener; |
64 | 64 | } |
65 | 65 |