Completed
Push — develop ( beb977...f996e0 )
by
unknown
06:44
created
module/Jobs/src/Jobs/Entity/AtsMode.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/IndexController.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -411,8 +411,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,9 +198,9 @@  discard block
 block discarded – undo
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 : '');
201
+                $login         = uniqid().($this->options->auth_suffix != "" ? '@'.$this->options->auth_suffix : '');
202 202
                 $externalLogin = $user->getLogin() ?: '-- not communicated --';
203
-                $this->logger->debug('first login via ' . $provider . ' as: ' . $externalLogin);
203
+                $this->logger->debug('first login via '.$provider.' as: '.$externalLogin);
204 204
 
205 205
                 $user->setLogin($login);
206 206
                 $user->setPassword($password);
@@ -219,11 +219,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/DeactivatedUserListener.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         ];
34 34
         
35 35
         // do nothing for allowed routes
36
-		if (in_array($routeName, $allowedRoutes))
36
+        if (in_array($routeName, $allowedRoutes))
37 37
         {
38 38
             return;
39 39
         }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserStatusFieldset.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,17 +62,17 @@
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-	 * @param array $statusOptions
66
-	 * @return UserStatusFieldset
67
-	 */
68
-	public function setStatusOptions(array $statusOptions)
69
-	{
70
-		$this->statusOptions = $statusOptions;
65
+     * @param array $statusOptions
66
+     * @return UserStatusFieldset
67
+     */
68
+    public function setStatusOptions(array $statusOptions)
69
+    {
70
+        $this->statusOptions = $statusOptions;
71 71
 		
72
-		return $this;
73
-	}
72
+        return $this;
73
+    }
74 74
 
75
-	public function init()
75
+    public function init()
76 76
     {
77 77
         $this->setName('status');
78 78
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
                 'attributes' => [
88 88
                     'data-placeholder' => /*@translate*/ 'please select',
89 89
                     'data-allowclear' => 'false',
90
-                    'data-searchbox' => -1,  // hide the search box
90
+                    'data-searchbox' => -1, // hide the search box
91 91
                     'required' => true, // mark label as required
92 92
                 ],
93 93
             ]
Please login to merge, or discard this patch.
module/Auth/src/Auth/Entity/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@
 block discarded – undo
53 53
     public function __construct($status = self::ACTIVE)
54 54
     {
55 55
         if (!isset(static::$orderMap[$status])) {
56
-            throw new \DomainException('Unknown status: ' . $status);
56
+            throw new \DomainException('Unknown status: '.$status);
57 57
         }
58 58
         
59
-        $constant = 'self::' . strtoupper($status);
59
+        $constant = 'self::'.strtoupper($status);
60 60
         $this->name = constant($constant);
61 61
         $this->order = $this->getOrder();
62 62
     }
Please login to merge, or discard this patch.
module/Core/src/Core/EventManager/ListenerAggregateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             $method = $spec[1];
91 91
             $priority = isset($spec[2]) ? $spec[2] : 0;
92 92
 
93
-            $this->listeners[] = $events->attach($event, [ $this, $method ], $priority);
93
+            $this->listeners[] = $events->attach($event, [$this, $method], $priority);
94 94
         }
95 95
 
96 96
         return $this;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/UsersController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
         $imageStrategy = $infoContainer->getForm('info.image')
85 85
             ->getHydrator()
86 86
             ->getStrategy('image');
87
-		$fileEntity = $imageStrategy->getFileEntity();
88
-		$fileEntity->setUser($user);
89
-		$imageStrategy->setFileEntity($fileEntity);
87
+        $fileEntity = $imageStrategy->getFileEntity();
88
+        $fileEntity->setUser($user);
89
+        $imageStrategy->setFileEntity($fileEntity);
90 90
         
91 91
         if ($this->request->isPost()) {
92 92
             $formName = $params->fromQuery('form');
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * List users
42 42
      *
43
-     * @return \Zend\Http\Response|ViewModel
43
+     * @return \Core\Controller\Plugin\CreatePaginator
44 44
      */
45 45
     public function listAction()
46 46
     {
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/LanguageRouteListener.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -215,8 +215,8 @@
 block discarded – undo
215 215
     }
216 216
 
217 217
     /**
218
-     * @param $response
219
-     * @param $uri
218
+     * @param \Zend\Stdlib\ResponseInterface $response
219
+     * @param string $uri
220 220
      *
221 221
      * @return mixed
222 222
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
         }
98 98
         
99 99
         $router = $e->getRouter();
100
-        $basePath=$router->getBaseUrl();
100
+        $basePath = $router->getBaseUrl();
101 101
         $match = [];
102 102
         
103
-        if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
103
+        if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
104 104
             /* It seems we have already a language in the URI
105 105
              * Now there are two possibilities:
106 106
              *
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
         setlocale(
183 183
             LC_ALL,
184 184
             array(
185
-            $locale . ".utf8",
186
-            $locale . ".iso88591",
185
+            $locale.".utf8",
186
+            $locale.".iso88591",
187 187
             $locale,
188 188
             substr($locale, 0, 2),
189 189
             'de_DE.utf8',
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $notificationListener = $serviceLocator->getServiceLocator()->get('Core/Listener/Notification');
25 25
         $translator = $services->get('translator');
26 26
 
27
-        $notification   = new Notification($flashMessenger);
27
+        $notification = new Notification($flashMessenger);
28 28
         $notification->setListener($notificationListener);
29 29
         $notification->setTranslator($translator);
30 30
 
Please login to merge, or discard this patch.