@@ -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 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
14 | 14 | |
15 | -if (!file_exists(__DIR__ . '/autoload/yawik.config.global.php')) { |
|
15 | +if (!file_exists(__DIR__.'/autoload/yawik.config.global.php')) { |
|
16 | 16 | $modules = array('Install'); |
17 | 17 | } else { |
18 | 18 | $modules = array( |
@@ -34,12 +34,12 @@ discard block |
||
34 | 34 | // kann und über Server-Variablen oder ähnlichen steuern kann |
35 | 35 | $allModules = False; |
36 | 36 | } |
37 | - foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) { |
|
37 | + foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) { |
|
38 | 38 | $addModules = require $moduleFile; |
39 | 39 | foreach ($addModules as $addModule) { |
40 | 40 | if (strpos($addModule, '-') === 0) { |
41 | - $remove = substr($addModule,1); |
|
42 | - $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
|
41 | + $remove = substr($addModule, 1); |
|
42 | + $modules = array_filter($modules, function($elem) use ($remove) { return strcasecmp($elem, $remove); }); |
|
43 | 43 | } |
44 | 44 | else { |
45 | 45 | if (!in_array($addModule, $modules)) { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | ), |
93 | 93 | ); |
94 | 94 | |
95 | -$envConfigFile = __DIR__ . '/config.' . $env . '.php'; |
|
95 | +$envConfigFile = __DIR__.'/config.'.$env.'.php'; |
|
96 | 96 | if (file_exists($envConfigFile)) { |
97 | 97 | if (is_readable($envConfigFile)) { |
98 | 98 | $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 | }; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function createService(ServiceLocatorInterface $serviceLocator) |
31 | 31 | { |
32 | - $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
32 | + $auth = $serviceLocator->getServiceLocator()->get('AuthenticationService'); |
|
33 | 33 | $filter = new PaginationQuery($auth); |
34 | 34 | return $filter; |
35 | 35 | } |
@@ -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; |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | $results = $events->trigger( |
107 | 107 | $event, |
108 | - function ($r) { |
|
108 | + function($r) { |
|
109 | 109 | return false === $r; |
110 | 110 | } |
111 | 111 | ); |
@@ -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())); |