@@ -62,17 +62,17 @@ |
||
| 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 | |
@@ -87,7 +87,7 @@ |
||
| 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 | ] |
@@ -53,10 +53,10 @@ |
||
| 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 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * for multiple paths. |
| 30 | 30 | * example https://github.com/doctrine/DoctrineORMModule |
| 31 | 31 | */ |
| 32 | - 'paths' => array( __DIR__ . '/../src/Auth/Entity'), |
|
| 32 | + 'paths' => array(__DIR__.'/../src/Auth/Entity'), |
|
| 33 | 33 | ), |
| 34 | 34 | ), |
| 35 | 35 | ), |
@@ -107,13 +107,13 @@ discard block |
||
| 107 | 107 | 'hybridauth' => array( |
| 108 | 108 | "Facebook" => array( |
| 109 | 109 | "enabled" => true, |
| 110 | - "keys" => array( "id" => "", "secret" => "" ), |
|
| 110 | + "keys" => array("id" => "", "secret" => ""), |
|
| 111 | 111 | "scope" => 'email, user_about_me, user_birthday, user_hometown, user_website', |
| 112 | 112 | "display" => 'popup', |
| 113 | 113 | ), |
| 114 | 114 | "LinkedIn" => array( |
| 115 | 115 | "enabled" => true, |
| 116 | - "keys" => array( "key" => "", "secret" => "" ), |
|
| 116 | + "keys" => array("key" => "", "secret" => ""), |
|
| 117 | 117 | ), |
| 118 | 118 | "XING" => array( |
| 119 | 119 | "enabled" => true, |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | 'class' => 'Hybrid_Providers_XING', |
| 124 | 124 | 'path' => __FILE__, |
| 125 | 125 | ), |
| 126 | - "keys" => array( "key" => "", "secret" => "" ), |
|
| 126 | + "keys" => array("key" => "", "secret" => ""), |
|
| 127 | 127 | ), |
| 128 | 128 | "Github" => array( |
| 129 | 129 | "enabled" => true, |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | 'class' => 'Hybrid_Providers_Github', |
| 134 | 134 | 'path' => __FILE__, |
| 135 | 135 | ), |
| 136 | - "keys" => array( "key" => "", "secret" => "" ), |
|
| 136 | + "keys" => array("key" => "", "secret" => ""), |
|
| 137 | 137 | ), |
| 138 | 138 | |
| 139 | 139 | ), |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | 'translation_file_patterns' => array( |
| 234 | 234 | array( |
| 235 | 235 | 'type' => 'gettext', |
| 236 | - 'base_dir' => __DIR__ . '/../language', |
|
| 236 | + 'base_dir' => __DIR__.'/../language', |
|
| 237 | 237 | 'pattern' => '%s.mo', |
| 238 | 238 | ), |
| 239 | 239 | ), |
@@ -242,25 +242,25 @@ discard block |
||
| 242 | 242 | // Configure the view service manager |
| 243 | 243 | 'view_manager' => array( |
| 244 | 244 | 'template_map' => array( |
| 245 | - 'form/auth/contact.form' => __DIR__ . '/../view/form/contact.form.phtml', |
|
| 246 | - 'form/auth/contact.view' => __DIR__ . '/../view/form/contact.view.phtml', |
|
| 247 | - 'form/auth/status.form' => __DIR__ . '/../view/form/status.form.phtml', |
|
| 248 | - 'form/auth/status.view' => __DIR__ . '/../view/form/status.view.phtml', |
|
| 249 | - 'auth/error/social-profiles-unconfigured' => __DIR__ . '/../view/error/social-profiles-unconfigured.phtml', |
|
| 250 | - 'auth/form/user-info-container' => __DIR__ . '/../view/form/user-info-container.phtml', |
|
| 251 | - 'auth/form/user-status-container' => __DIR__ . '/../view/form/user-status-container.phtml', |
|
| 252 | - 'auth/form/userselect' => __DIR__ . '/../view/form/userselect.phtml', |
|
| 253 | - 'auth/form/social-profiles-fieldset' => __DIR__ . '/../view/form/social-profiles-fieldset.phtml', |
|
| 254 | - 'auth/form/social-profiles-button' => __DIR__ . '/../view/form/social-profiles-button.phtml', |
|
| 255 | - 'auth/sidebar/groups-menu' => __DIR__ . '/../view/sidebar/groups-menu.phtml', |
|
| 256 | - 'mail/first-external-login' => __DIR__ . '/../view/mail/first-external-login.phtml', |
|
| 257 | - 'mail/first-socialmedia-login' => __DIR__ . '/../view/mail/first-socialmedia-login.phtml', |
|
| 258 | - 'mail/forgotPassword' => __DIR__ . '/../view/mail/forgot-password.phtml', |
|
| 259 | - 'mail/register' => __DIR__ . '/../view/mail/register.phtml', |
|
| 245 | + 'form/auth/contact.form' => __DIR__.'/../view/form/contact.form.phtml', |
|
| 246 | + 'form/auth/contact.view' => __DIR__.'/../view/form/contact.view.phtml', |
|
| 247 | + 'form/auth/status.form' => __DIR__.'/../view/form/status.form.phtml', |
|
| 248 | + 'form/auth/status.view' => __DIR__.'/../view/form/status.view.phtml', |
|
| 249 | + 'auth/error/social-profiles-unconfigured' => __DIR__.'/../view/error/social-profiles-unconfigured.phtml', |
|
| 250 | + 'auth/form/user-info-container' => __DIR__.'/../view/form/user-info-container.phtml', |
|
| 251 | + 'auth/form/user-status-container' => __DIR__.'/../view/form/user-status-container.phtml', |
|
| 252 | + 'auth/form/userselect' => __DIR__.'/../view/form/userselect.phtml', |
|
| 253 | + 'auth/form/social-profiles-fieldset' => __DIR__.'/../view/form/social-profiles-fieldset.phtml', |
|
| 254 | + 'auth/form/social-profiles-button' => __DIR__.'/../view/form/social-profiles-button.phtml', |
|
| 255 | + 'auth/sidebar/groups-menu' => __DIR__.'/../view/sidebar/groups-menu.phtml', |
|
| 256 | + 'mail/first-external-login' => __DIR__.'/../view/mail/first-external-login.phtml', |
|
| 257 | + 'mail/first-socialmedia-login' => __DIR__.'/../view/mail/first-socialmedia-login.phtml', |
|
| 258 | + 'mail/forgotPassword' => __DIR__.'/../view/mail/forgot-password.phtml', |
|
| 259 | + 'mail/register' => __DIR__.'/../view/mail/register.phtml', |
|
| 260 | 260 | ), |
| 261 | 261 | |
| 262 | 262 | 'template_path_stack' => array( |
| 263 | - 'Auth' => __DIR__ . '/../view', |
|
| 263 | + 'Auth' => __DIR__.'/../view', |
|
| 264 | 264 | ), |
| 265 | 265 | ), |
| 266 | 266 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'Auth/Users' => 'switch', |
| 209 | 209 | ), |
| 210 | 210 | 'deny' => array( |
| 211 | - // 'route/lang/auth', |
|
| 211 | + // 'route/lang/auth', |
|
| 212 | 212 | 'route/auth-provider', |
| 213 | 213 | 'route/auth-extern', |
| 214 | 214 | 'route/lang/forgot-password', |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | 'factories' => array( |
| 291 | 291 | 'auth' => '\Auth\Factory\View\Helper\AuthFactory', |
| 292 | 292 | 'acl' => '\Acl\Factory\View\Helper\AclFactory', |
| 293 | - ), |
|
| 293 | + ), |
|
| 294 | 294 | ), |
| 295 | 295 | |
| 296 | 296 | 'form_elements' => array( |
@@ -90,7 +90,7 @@ |
||
| 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; |
@@ -84,9 +84,9 @@ |
||
| 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'); |
@@ -40,7 +40,7 @@ |
||
| 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 | { |
@@ -215,8 +215,8 @@ |
||
| 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 | */ |
@@ -97,10 +97,10 @@ discard block |
||
| 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 |
||
| 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', |
@@ -24,7 +24,7 @@ |
||
| 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 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | [ |
| 77 | 77 | 'job' => $job, |
| 78 | 78 | 'user' => $employee->getUser(), |
| 79 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
| 79 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
| 80 | 80 | ] |
| 81 | 81 | ); |
| 82 | 82 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | [ |
| 95 | 95 | 'job' => $this->application->getJob(), |
| 96 | 96 | 'user' => $recruiter, |
| 97 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
| 97 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
| 98 | 98 | ] |
| 99 | 99 | ); |
| 100 | 100 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | [ |
| 112 | 112 | 'application' => $this->application, |
| 113 | 113 | 'body' => $ackBody, |
| 114 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
| 114 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
| 115 | 115 | ] |
| 116 | 116 | ); |
| 117 | 117 | |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * @param ServiceLocatorInterface $formManager |
| 112 | - * @return AbstractSettingsForm |
|
| 112 | + * @return DisableElementsCapableFormSettingsFieldset |
|
| 113 | 113 | */ |
| 114 | 114 | public static function factory(ServiceLocatorInterface $formManager) |
| 115 | 115 | { |