@@ -40,8 +40,7 @@ |
||
40 | 40 | if (strpos($addModule, '-') === 0) { |
41 | 41 | $remove = substr($addModule,1); |
42 | 42 | $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | if (!in_array($addModule, $modules)) { |
46 | 45 | $modules[] = $addModule; |
47 | 46 | } |
@@ -13,12 +13,12 @@ discard block |
||
13 | 13 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
14 | 14 | |
15 | 15 | $coreModules = include 'common.modules.php'; |
16 | -if (!file_exists(__DIR__ . '/autoload/yawik.config.global.php')) { |
|
17 | - $modules = array_merge($coreModules,[ |
|
16 | +if (!file_exists(__DIR__.'/autoload/yawik.config.global.php')) { |
|
17 | + $modules = array_merge($coreModules, [ |
|
18 | 18 | 'Install', |
19 | 19 | ]); |
20 | 20 | } else { |
21 | - $modules = array_merge($coreModules,[ |
|
21 | + $modules = array_merge($coreModules, [ |
|
22 | 22 | 'Core', |
23 | 23 | 'Auth', |
24 | 24 | 'Cv', |
@@ -35,12 +35,12 @@ discard block |
||
35 | 35 | // kann und über Server-Variablen oder ähnlichen steuern kann |
36 | 36 | $allModules = False; |
37 | 37 | } |
38 | - foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) { |
|
38 | + foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) { |
|
39 | 39 | $addModules = require $moduleFile; |
40 | 40 | foreach ($addModules as $addModule) { |
41 | 41 | if (strpos($addModule, '-') === 0) { |
42 | - $remove = substr($addModule,1); |
|
43 | - $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
|
42 | + $remove = substr($addModule, 1); |
|
43 | + $modules = array_filter($modules, function($elem) use ($remove) { return strcasecmp($elem, $remove); }); |
|
44 | 44 | } |
45 | 45 | else { |
46 | 46 | if (!in_array($addModule, $modules)) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ), |
94 | 94 | ); |
95 | 95 | |
96 | -$envConfigFile = __DIR__ . '/config.' . $env . '.php'; |
|
96 | +$envConfigFile = __DIR__.'/config.'.$env.'.php'; |
|
97 | 97 | if (file_exists($envConfigFile)) { |
98 | 98 | if (is_readable($envConfigFile)) { |
99 | 99 | $envConfig = include $envConfigFile; |
@@ -446,7 +446,7 @@ |
||
446 | 446 | public function getCv() |
447 | 447 | { |
448 | 448 | if (is_null($this->cv)) { |
449 | - $this->cv= new Cv(); |
|
449 | + $this->cv = new Cv(); |
|
450 | 450 | } |
451 | 451 | return $this->cv; |
452 | 452 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * A new application has been received |
22 | 22 | */ |
23 | - const INCOMING = 'incoming'; |
|
23 | + const INCOMING = 'incoming'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * An acknowledgement of receipt has been sent |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * An applicant ist invited to in interview |
32 | 32 | */ |
33 | - const INVITED = 'invited'; |
|
33 | + const INVITED = 'invited'; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * The applicant has been canceled |
37 | 37 | */ |
38 | - const REJECTED = 'rejected'; |
|
38 | + const REJECTED = 'rejected'; |
|
39 | 39 | |
40 | 40 | public function __construct($status = self::INCOMING); |
41 | 41 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - protected $label = /*@translate*/ 'Cover Letter'; |
|
27 | + protected $label = /*@translate*/ 'Cover Letter'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * {@inheritDoc} |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $dm = $eventArgs->getDocumentManager(); |
43 | 43 | $uow = $dm->getUnitOfWork(); |
44 | 44 | |
45 | - $filter = function ($element) { |
|
45 | + $filter = function($element) { |
|
46 | 46 | return $element instanceof ApplicationInterface |
47 | 47 | && $element->getPermissions()->hasChanged(); |
48 | 48 | }; |
@@ -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; |
@@ -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 |
@@ -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 |