@@ -123,7 +123,7 @@ |
||
123 | 123 | $eventManager = $event->getTarget()->getEventManager(); |
124 | 124 | $results = $eventManager->trigger(MvcEvent::EVENT_DISPATCH_ERROR, $event); |
125 | 125 | if (count($results)) { |
126 | - $return = $results->last(); |
|
126 | + $return = $results->last(); |
|
127 | 127 | } else { |
128 | 128 | $return = $e->getParams(); |
129 | 129 | } |
@@ -130,7 +130,7 @@ |
||
130 | 130 | $loginSuccess = false; |
131 | 131 | $loginResult = array(); |
132 | 132 | |
133 | - if (0 < $applicationIdIndex && strlen($identity) - strlen($applicationId) == $applicationIdIndex) { |
|
133 | + if (0 < $applicationIdIndex && strlen($identity) - strlen($applicationId) == $applicationIdIndex) { |
|
134 | 134 | $this->serviceManager->get('Core/Log')->debug('User ' . $login . ', login with correct suffix: '); |
135 | 135 | // the login ends with the applicationID, therefore use the secret key |
136 | 136 | // the external login must be the form 'xxxxx@yyyy' where yyyy is the matching suffix to the external application key |
@@ -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); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function profileAction() |
41 | 41 | { |
42 | 42 | $services = $this->getServiceLocator(); |
43 | - $container= $services->get('forms')->get('Auth/userprofilecontainer'); |
|
43 | + $container = $services->get('forms')->get('Auth/userprofilecontainer'); |
|
44 | 44 | $user = $services->get('AuthenticationService')->getUser(); |
45 | 45 | |
46 | 46 | $container->setEntity($user); |
@@ -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 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | public function fetch($api) |
25 | 25 | { |
26 | - $result = $this->queryApi($api); |
|
26 | + $result = $this->queryApi($api); |
|
27 | 27 | if (!$result) { |
28 | 28 | return false; |
29 | 29 | } |
@@ -135,7 +135,7 @@ |
||
135 | 135 | return array( |
136 | 136 | 'year' => strval($xml->year), |
137 | 137 | 'month'=> isset($xml->month) ? strval($xml->month) : '01', |
138 | - 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
138 | + 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
139 | 139 | ); |
140 | 140 | |
141 | 141 | } |
@@ -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 |