@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | * @param bool $acceptApplicationByDepartmentManager |
41 | 41 | * @return WorkflowSettings |
42 | 42 | */ |
43 | - public function setAcceptApplicationByDepartmentManager( $acceptApplicationByDepartmentManager ) |
|
43 | + public function setAcceptApplicationByDepartmentManager($acceptApplicationByDepartmentManager) |
|
44 | 44 | { |
45 | - $this->acceptApplicationByDepartmentManager= $acceptApplicationByDepartmentManager; |
|
45 | + $this->acceptApplicationByDepartmentManager = $acceptApplicationByDepartmentManager; |
|
46 | 46 | return $this; |
47 | 47 | } |
48 | 48 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param bool $assignDepartmentManagersToJobs |
63 | 63 | * @return WorkflowSettings |
64 | 64 | */ |
65 | - public function setAssignDepartmentManagersToJobs( $assignDepartmentManagersToJobs ) |
|
65 | + public function setAssignDepartmentManagersToJobs($assignDepartmentManagersToJobs) |
|
66 | 66 | { |
67 | 67 | $this->assignDepartmentManagersToJobs = $assignDepartmentManagersToJobs; |
68 | 68 | return $this; |
@@ -142,7 +142,7 @@ |
||
142 | 142 | /** |
143 | 143 | * @return bool |
144 | 144 | */ |
145 | - public function getAutoConfirmMail(){ |
|
145 | + public function getAutoConfirmMail() { |
|
146 | 146 | return $this->autoConfirmMail; |
147 | 147 | } |
148 | 148 | } |
@@ -30,17 +30,17 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * Event is fired when a new application is saved. |
32 | 32 | */ |
33 | - const EVENT_APPLICATION_POST_CREATE = 'application.post.create'; |
|
33 | + const EVENT_APPLICATION_POST_CREATE = 'application.post.create'; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Event is fired when a users deleted application |
37 | 37 | */ |
38 | - const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete'; |
|
38 | + const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete'; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Event is fired when the status of an application is changed |
42 | 42 | */ |
43 | - const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change'; |
|
43 | + const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change'; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @var Application $application |
@@ -233,12 +233,12 @@ discard block |
||
233 | 233 | $this->setApplicationEntity($params->application); |
234 | 234 | } |
235 | 235 | |
236 | - if(is_array($params) && isset($params['user'])) { |
|
236 | + if (is_array($params) && isset($params['user'])) { |
|
237 | 237 | $this->setUser($params['user']); |
238 | 238 | unset($params['user']); |
239 | 239 | } |
240 | 240 | |
241 | - if(is_array($params) && isset($params['status'])) { |
|
241 | + if (is_array($params) && isset($params['status'])) { |
|
242 | 242 | $this->setStatus($params['status']); |
243 | 243 | unset($params['status']); |
244 | 244 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | - * @param $notification |
|
141 | + * @param string $notification |
|
142 | 142 | * |
143 | 143 | * @return $this |
144 | 144 | */ |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return mixed |
|
171 | + * @return string |
|
172 | 172 | */ |
173 | 173 | public function getStatus() |
174 | 174 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
179 | - * @return mixed |
|
179 | + * @return boolean |
|
180 | 180 | */ |
181 | 181 | public function isPostRequest() |
182 | 182 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | $params->set('by', 'me'); |
41 | 41 | } |
42 | 42 | |
43 | - //default sorting |
|
43 | + //default sorting |
|
44 | 44 | if (!isset($params['sort'])) { |
45 | 45 | $params['sort']="-date"; |
46 | 46 | } |
@@ -42,10 +42,10 @@ |
||
42 | 42 | |
43 | 43 | //default sorting |
44 | 44 | if (!isset($params['sort'])) { |
45 | - $params['sort']="-date"; |
|
45 | + $params['sort'] = "-date"; |
|
46 | 46 | } |
47 | 47 | $params->count = 5; |
48 | - $params->pageRange=5; |
|
48 | + $params->pageRange = 5; |
|
49 | 49 | |
50 | 50 | $this->paginationParams()->setParams('Applications\Index', $params); |
51 | 51 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ) |
47 | 47 | ); |
48 | 48 | |
49 | - $timezones=array_merge( |
|
49 | + $timezones = array_merge( |
|
50 | 50 | \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA), |
51 | 51 | \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA), |
52 | 52 | \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA), |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | ->getHybridAuth(); |
240 | 240 | /* @var $authProfile \Hybrid_User_Profile */ |
241 | 241 | $authProfile = $hybridAuth->authenticate($network) |
242 | - ->getUserProfile(); |
|
242 | + ->getUserProfile(); |
|
243 | 243 | |
244 | 244 | /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */ |
245 | 245 | $profile = $this->plugin('Auth/SocialProfiles')->fetch($network); |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | } |
293 | 293 | |
294 | 294 | return $this->redirect() |
295 | - ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
295 | + ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions); |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | public function processPreviewAction() |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | throw new \RuntimeException('Invalid application id.'); |
92 | 92 | } |
93 | 93 | |
94 | - $action = 'process'; |
|
94 | + $action = 'process'; |
|
95 | 95 | |
96 | 96 | $routeMatch->setParam('action', $action); |
97 | 97 | } else { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | $this->response->setStatusCode(410); |
184 | 184 | $model = new ViewModel( |
185 | - [ 'content' => /*@translate*/ 'Invalid apply id'] |
|
185 | + ['content' => /*@translate*/ 'Invalid apply id'] |
|
186 | 186 | ); |
187 | 187 | $model->setTemplate('applications/error/not-found'); |
188 | 188 | return $model; |
@@ -360,13 +360,13 @@ discard block |
||
360 | 360 | } |
361 | 361 | |
362 | 362 | if ('previewmail' == $this->params()->fromQuery('do')) { |
363 | - $this->mailer('Applications/CarbonCopy', [ 'application' => $application], true); |
|
363 | + $this->mailer('Applications/CarbonCopy', ['application' => $application], true); |
|
364 | 364 | $this->notification()->success(/*@translate*/ 'Mail has been send'); |
365 | 365 | return new JsonModel(); |
366 | 366 | } |
367 | 367 | |
368 | 368 | if ('sendmail' == $this->params()->fromQuery('do')) { |
369 | - $jobEntity = $application->getJob(); |
|
369 | + $jobEntity = $application->getJob(); |
|
370 | 370 | |
371 | 371 | $mailData = array( |
372 | 372 | 'application' => $application, |
@@ -396,8 +396,8 @@ discard block |
||
396 | 396 | |
397 | 397 | $repositories->store($application); |
398 | 398 | |
399 | - $events = $services->get('Applications/Events'); |
|
400 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]); |
|
399 | + $events = $services->get('Applications/Events'); |
|
400 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]); |
|
401 | 401 | |
402 | 402 | $model = new ViewModel( |
403 | 403 | array( |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | 'sendImmediately' => false |
72 | 72 | ], $options); |
73 | 73 | $view = $this->view; |
74 | - $currentTemplate = $view->viewModel() |
|
74 | + $currentTemplate = $view->viewModel() |
|
75 | 75 | ->getCurrent() |
76 | 76 | ->getTemplate(); |
77 | 77 | $partial = dirname($currentTemplate) . '/' . $options['partial']; |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | $label = $options['oneClickLabel'] ?: $view->translate('Apply with %s'); |
88 | 88 | |
89 | 89 | foreach ($data['oneClickProfiles'] as $network) { |
90 | - $variables['oneClick'][] = [ |
|
90 | + $variables['oneClick'][] = [ |
|
91 | 91 | 'label' => sprintf($label, $network), |
92 | 92 | 'url' => $view->url('lang/apply-one-click', ['applyId' => $data['applyId'], 'network' => $network, 'immediately' => $options['sendImmediately'] ?: null], ['force_canonical' => true]), |
93 | - 'network' => $network |
|
93 | + 'network' => $network |
|
94 | 94 | ]; |
95 | 95 | } |
96 | 96 | } |
@@ -98,22 +98,22 @@ discard block |
||
98 | 98 | return $view->partial($partial, $variables); |
99 | 99 | } |
100 | 100 | |
101 | - /** |
|
102 | - * @return string |
|
103 | - */ |
|
104 | - public function getPartial() |
|
105 | - { |
|
106 | - return $this->partial; |
|
107 | - } |
|
101 | + /** |
|
102 | + * @return string |
|
103 | + */ |
|
104 | + public function getPartial() |
|
105 | + { |
|
106 | + return $this->partial; |
|
107 | + } |
|
108 | 108 | |
109 | - /** |
|
110 | - * @param string $partial |
|
111 | - * @return ApplyButtons |
|
112 | - */ |
|
113 | - public function setPartial($partial) |
|
114 | - { |
|
115 | - $this->partial = $partial; |
|
109 | + /** |
|
110 | + * @param string $partial |
|
111 | + * @return ApplyButtons |
|
112 | + */ |
|
113 | + public function setPartial($partial) |
|
114 | + { |
|
115 | + $this->partial = $partial; |
|
116 | 116 | |
117 | - return $this; |
|
118 | - } |
|
117 | + return $this; |
|
118 | + } |
|
119 | 119 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $currentTemplate = $view->viewModel() |
75 | 75 | ->getCurrent() |
76 | 76 | ->getTemplate(); |
77 | - $partial = dirname($currentTemplate) . '/' . $options['partial']; |
|
77 | + $partial = dirname($currentTemplate).'/'.$options['partial']; |
|
78 | 78 | |
79 | 79 | if (!$options['oneClickOnly'] && $data['uri']) { |
80 | 80 | $variables['default'] = [ |
@@ -208,13 +208,13 @@ discard block |
||
208 | 208 | return $this->email; |
209 | 209 | } |
210 | 210 | |
211 | - /** |
|
212 | - * @return bool |
|
213 | - */ |
|
214 | - public function getOneClickApply() |
|
215 | - { |
|
216 | - return $this->oneClickApply; |
|
217 | - } |
|
211 | + /** |
|
212 | + * @return bool |
|
213 | + */ |
|
214 | + public function getOneClickApply() |
|
215 | + { |
|
216 | + return $this->oneClickApply; |
|
217 | + } |
|
218 | 218 | |
219 | 219 | |
220 | 220 | /** |
@@ -222,29 +222,29 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @return $this |
224 | 224 | */ |
225 | - public function setOneClickApply($oneClickApply) |
|
226 | - { |
|
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
225 | + public function setOneClickApply($oneClickApply) |
|
226 | + { |
|
227 | + $this->oneClickApply = (bool)$oneClickApply; |
|
228 | 228 | |
229 | - return $this; |
|
230 | - } |
|
231 | - |
|
232 | - /** |
|
233 | - * @return array |
|
234 | - */ |
|
235 | - public function getOneClickApplyProfiles() |
|
236 | - { |
|
237 | - return $this->oneClickApplyProfiles; |
|
238 | - } |
|
239 | - |
|
240 | - /** |
|
241 | - * @param array $oneClickApplyProfiles |
|
242 | - * @return AtsMode |
|
243 | - */ |
|
244 | - public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | - { |
|
246 | - $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
229 | + return $this; |
|
230 | + } |
|
231 | + |
|
232 | + /** |
|
233 | + * @return array |
|
234 | + */ |
|
235 | + public function getOneClickApplyProfiles() |
|
236 | + { |
|
237 | + return $this->oneClickApplyProfiles; |
|
238 | + } |
|
239 | + |
|
240 | + /** |
|
241 | + * @param array $oneClickApplyProfiles |
|
242 | + * @return AtsMode |
|
243 | + */ |
|
244 | + public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | + { |
|
246 | + $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
247 | 247 | |
248 | - return $this; |
|
249 | - } |
|
248 | + return $this; |
|
249 | + } |
|
250 | 250 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | */ |
225 | 225 | public function setOneClickApply($oneClickApply) |
226 | 226 | { |
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
227 | + $this->oneClickApply = (bool) $oneClickApply; |
|
228 | 228 | |
229 | 229 | return $this; |
230 | 230 | } |
@@ -411,8 +411,7 @@ |
||
411 | 411 | } else { |
412 | 412 | $notFoundUsers[] = $grp_member . $loginSuffix; |
413 | 413 | } |
414 | - } |
|
415 | - catch (\Auth\Exception\UserDeactivatedException $e) |
|
414 | + } catch (\Auth\Exception\UserDeactivatedException $e) |
|
416 | 415 | { |
417 | 416 | $notFoundUsers[] = $grp_member . $loginSuffix; |
418 | 417 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * @param $auth AuthenticationService |
62 | 62 | * @param $logger LoggerInterface |
63 | 63 | * @param $forms |
64 | - * @param $options ModuleOptions |
|
64 | + * @param ModuleOptions $options ModuleOptions |
|
65 | 65 | */ |
66 | 66 | public function __construct(AuthenticationService $auth, LoggerInterface $logger, array $forms, $options) |
67 | 67 | { |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | class IndexController extends AbstractActionController |
35 | 35 | { |
36 | 36 | |
37 | - const LOGIN='login'; |
|
38 | - const REGISTER='register'; |
|
37 | + const LOGIN = 'login'; |
|
38 | + const REGISTER = 'register'; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @var AuthenticationService |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $registerForm = $this->forms[self::REGISTER]; |
92 | 92 | |
93 | 93 | /* @var $request \Zend\Http\Request */ |
94 | - $request = $this->getRequest(); |
|
94 | + $request = $this->getRequest(); |
|
95 | 95 | |
96 | 96 | if ($request->isPost()) { |
97 | 97 | $data = $this->params()->fromPost(); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | if (array_key_exists('credentials', $data) && |
110 | 110 | array_key_exists('login', $data['credentials']) && |
111 | 111 | array_key_exists('credential', $data['credentials'])) { |
112 | - $adapter->setIdentity($data['credentials']['login'] . $loginSuffix) |
|
112 | + $adapter->setIdentity($data['credentials']['login'].$loginSuffix) |
|
113 | 113 | ->setCredential($data['credentials']['credential']); |
114 | 114 | } |
115 | 115 | |
@@ -120,14 +120,14 @@ discard block |
||
120 | 120 | if ($result->isValid()) { |
121 | 121 | $user = $auth->getUser(); |
122 | 122 | $language = $services->get('Core/Locale')->detectLanguage($request, $user); |
123 | - $this->logger->info('User ' . $user->getLogin() . ' logged in'); |
|
123 | + $this->logger->info('User '.$user->getLogin().' logged in'); |
|
124 | 124 | |
125 | 125 | $ref = $this->params()->fromQuery('ref', false); |
126 | 126 | |
127 | 127 | if ($ref) { |
128 | 128 | $ref = urldecode($ref); |
129 | - $url = preg_replace('~/[a-z]{2}(/|$)~', '/' . $language . '$1', $ref); |
|
130 | - $url = $request->getBasePath() . $url; |
|
129 | + $url = preg_replace('~/[a-z]{2}(/|$)~', '/'.$language.'$1', $ref); |
|
130 | + $url = $request->getBasePath().$url; |
|
131 | 131 | } else { |
132 | 132 | $urlHelper = $services->get('ViewHelperManager')->get('url'); |
133 | 133 | $url = $urlHelper('lang', array('lang' => $language)); |
@@ -137,9 +137,9 @@ discard block |
||
137 | 137 | } else { |
138 | 138 | $loginName = $data['credentials']['login']; |
139 | 139 | if (!empty($loginSuffix)) { |
140 | - $loginName = $loginName . ' (' . $loginName . $loginSuffix . ')'; |
|
140 | + $loginName = $loginName.' ('.$loginName.$loginSuffix.')'; |
|
141 | 141 | } |
142 | - $this->logger->info('Failed to authenticate User ' . $loginName); |
|
142 | + $this->logger->info('Failed to authenticate User '.$loginName); |
|
143 | 143 | $this->notification()->danger(/*@translate*/ 'Authentication failed.'); |
144 | 144 | } |
145 | 145 | } |
@@ -198,11 +198,11 @@ discard block |
||
198 | 198 | try { |
199 | 199 | $user = $auth->getUser(); |
200 | 200 | $password = substr(md5(uniqid()), 0, 6); |
201 | - $login = uniqid() . ($this->options->auth_suffix != "" ? '@' . $this->options->auth_suffix : ''); |
|
202 | - $externalLogin = isset($user->login)?$user->login:'-- not communicated --'; |
|
203 | - $this->logger->debug('first login via ' . $provider . ' as: ' . $externalLogin); |
|
201 | + $login = uniqid().($this->options->auth_suffix != "" ? '@'.$this->options->auth_suffix : ''); |
|
202 | + $externalLogin = isset($user->login) ? $user->login : '-- not communicated --'; |
|
203 | + $this->logger->debug('first login via '.$provider.' as: '.$externalLogin); |
|
204 | 204 | |
205 | - $user->login=$login; |
|
205 | + $user->login = $login; |
|
206 | 206 | $user->setPassword($password); |
207 | 207 | $user->setRole($this->options->getRole()); |
208 | 208 | |
@@ -219,11 +219,11 @@ discard block |
||
219 | 219 | ); |
220 | 220 | $mail->addTo($user->getInfo()->getEmail()); |
221 | 221 | |
222 | - $loggerId = $login . ' (' . $provider . ': ' . $externalLogin . ')'; |
|
222 | + $loggerId = $login.' ('.$provider.': '.$externalLogin.')'; |
|
223 | 223 | if (isset($mail) && $this->mailer($mail)) { |
224 | - $this->logger->info('Mail first-login for ' . $loggerId . ' sent to ' . $user->getInfo()->getEmail()); |
|
224 | + $this->logger->info('Mail first-login for '.$loggerId.' sent to '.$user->getInfo()->getEmail()); |
|
225 | 225 | } else { |
226 | - $this->logger->warn('No Mail was sent for ' . $loggerId); |
|
226 | + $this->logger->warn('No Mail was sent for '.$loggerId); |
|
227 | 227 | } |
228 | 228 | } catch (\Exception $e) { |
229 | 229 | $this->logger->crit($e); |
@@ -234,11 +234,11 @@ discard block |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | $user = $auth->getUser(); |
237 | - $this->logger->info('User ' . $auth->getUser()->getInfo()->getDisplayName() . ' logged in via ' . $provider); |
|
237 | + $this->logger->info('User '.$auth->getUser()->getInfo()->getDisplayName().' logged in via '.$provider); |
|
238 | 238 | $settings = $user->getSettings('Core'); |
239 | 239 | if (null !== $settings->localization->language) { |
240 | 240 | $basePath = $this->getRequest()->getBasePath(); |
241 | - $ref = preg_replace('~^'.$basePath . '/[a-z]{2}(?=/|$)~', $basePath . '/' . $settings->localization->language, $ref); |
|
241 | + $ref = preg_replace('~^'.$basePath.'/[a-z]{2}(?=/|$)~', $basePath.'/'.$settings->localization->language, $ref); |
|
242 | 242 | } |
243 | 243 | return $this->redirect()->toUrl($ref); |
244 | 244 | } |
@@ -270,8 +270,8 @@ discard block |
||
270 | 270 | |
271 | 271 | if ($result->isValid()) { |
272 | 272 | $this->logger->info( |
273 | - 'User ' . $this->params()->fromPost('user') . |
|
274 | - ' logged via ' . $appKey |
|
273 | + 'User '.$this->params()->fromPost('user'). |
|
274 | + ' logged via '.$appKey |
|
275 | 275 | ); |
276 | 276 | |
277 | 277 | // the external login may include some parameters for an update |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | if (array_key_exists('firstLogin', $resultMessage) && $resultMessage['firstLogin'] === true) { |
303 | 303 | // first external Login |
304 | 304 | $userName = $this->params()->fromPost('user'); |
305 | - $this->logger->debug('first login for User: ' . $userName); |
|
305 | + $this->logger->debug('first login for User: '.$userName); |
|
306 | 306 | // |
307 | 307 | if (preg_match('/^(.*)@\w+$/', $userName, $realUserName)) { |
308 | 308 | $userName = $realUserName[1]; |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | |
327 | 327 | try { |
328 | 328 | $this->mailer($mail); |
329 | - $this->logger->info('Mail first-login sent to ' . $userName); |
|
329 | + $this->logger->info('Mail first-login sent to '.$userName); |
|
330 | 330 | } catch (\Zend\Mail\Transport\Exception\ExceptionInterface $e) { |
331 | 331 | $this->logger->warn('No Mail was sent'); |
332 | 332 | $this->logger->debug($e); |
@@ -341,8 +341,8 @@ discard block |
||
341 | 341 | ); |
342 | 342 | } else { |
343 | 343 | $this->logger->info( |
344 | - 'Failed to authenticate User ' . $this->params()->fromPost('user') . |
|
345 | - ' via ' . $this->params()->fromPost('appKey') |
|
344 | + 'Failed to authenticate User '.$this->params()->fromPost('user'). |
|
345 | + ' via '.$this->params()->fromPost('appKey') |
|
346 | 346 | ); |
347 | 347 | |
348 | 348 | $this->getResponse()->setStatusCode(Response::STATUS_CODE_401); |
@@ -367,8 +367,8 @@ discard block |
||
367 | 367 | array( |
368 | 368 | 'format' => 'json', |
369 | 369 | 'group' => array( |
370 | - 0 => 'testuser4711', 1 => 'flatscreen', 2 => 'flatscreen1', 3 => 'flatscreen2', 4 => 'flatscreen3', 5 => 'flatscreen4', |
|
371 | - 6 => 'flatscreen5', 7 => 'flatscreen6', 8 => 'flatscreen7', 9 => 'flatscreen8', 10 => 'flatscreen9' |
|
370 | + 0 => 'testuser4711', 1 => 'flatscreen', 2 => 'flatscreen1', 3 => 'flatscreen2', 4 => 'flatscreen3', 5 => 'flatscreen4', |
|
371 | + 6 => 'flatscreen5', 7 => 'flatscreen6', 8 => 'flatscreen7', 9 => 'flatscreen8', 10 => 'flatscreen9' |
|
372 | 372 | ), |
373 | 373 | 'name' => '(die) Rauscher – Unternehmensberatung & Consulting', |
374 | 374 | ) |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | } |
378 | 378 | $auth = $this->auth; |
379 | 379 | $userGrpAdmin = $auth->getUser(); |
380 | - $this->logger->info('User ' . $auth->getUser()->getInfo()->getDisplayName()); |
|
380 | + $this->logger->info('User '.$auth->getUser()->getInfo()->getDisplayName()); |
|
381 | 381 | $grp = $this->params()->fromQuery('group'); |
382 | 382 | |
383 | 383 | // if the request is made by an external host, add his identification-key to the name |
@@ -398,16 +398,16 @@ discard block |
||
398 | 398 | foreach ($params->group as $grp_member) { |
399 | 399 | try |
400 | 400 | { |
401 | - $user = $users->findByLogin($grp_member . $loginSuffix); |
|
401 | + $user = $users->findByLogin($grp_member.$loginSuffix); |
|
402 | 402 | if (!empty($user)) { |
403 | 403 | $groupUserId[] = $user->id; |
404 | 404 | } else { |
405 | - $notFoundUsers[] = $grp_member . $loginSuffix; |
|
405 | + $notFoundUsers[] = $grp_member.$loginSuffix; |
|
406 | 406 | } |
407 | 407 | } |
408 | 408 | catch (\Auth\Exception\UserDeactivatedException $e) |
409 | 409 | { |
410 | - $notFoundUsers[] = $grp_member . $loginSuffix; |
|
410 | + $notFoundUsers[] = $grp_member.$loginSuffix; |
|
411 | 411 | } |
412 | 412 | } |
413 | 413 | } |
@@ -417,9 +417,9 @@ discard block |
||
417 | 417 | $group->setUsers($groupUserId); |
418 | 418 | } |
419 | 419 | $this->logger->info( |
420 | - 'Update Group Name: ' . $name . PHP_EOL . str_repeat(' ', 36) . 'Group Owner: ' . $userGrpAdmin->getLogin() . PHP_EOL . |
|
421 | - str_repeat(' ', 36) . 'Group Members Param: ' . implode(',', $params->group) . PHP_EOL . |
|
422 | - str_repeat(' ', 36) . 'Group Members: ' . count($groupUserId) . PHP_EOL . str_repeat(' ', 36) . 'Group Members not found: ' . implode(',', $notFoundUsers) |
|
420 | + 'Update Group Name: '.$name.PHP_EOL.str_repeat(' ', 36).'Group Owner: '.$userGrpAdmin->getLogin().PHP_EOL. |
|
421 | + str_repeat(' ', 36).'Group Members Param: '.implode(',', $params->group).PHP_EOL. |
|
422 | + str_repeat(' ', 36).'Group Members: '.count($groupUserId).PHP_EOL.str_repeat(' ', 36).'Group Members not found: '.implode(',', $notFoundUsers) |
|
423 | 423 | ); |
424 | 424 | |
425 | 425 | return new JsonModel( |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | public function logoutAction() |
437 | 437 | { |
438 | 438 | $auth = $this->auth; |
439 | - $this->logger->info('User ' . ($auth->getUser()->getLogin()==''?$auth->getUser()->getInfo()->getDisplayName():$auth->getUser()->getLogin()) . ' logged out'); |
|
439 | + $this->logger->info('User '.($auth->getUser()->getLogin() == '' ? $auth->getUser()->getInfo()->getDisplayName() : $auth->getUser()->getLogin()).' logged out'); |
|
440 | 440 | $auth->clearIdentity(); |
441 | 441 | unset($_SESSION['HA::STORE']); |
442 | 442 |