@@ -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} |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | */ |
| 96 | 96 | public function setUser($user) |
| 97 | 97 | { |
| 98 | - $this->user=$user; |
|
| 98 | + $this->user = $user; |
|
| 99 | 99 | return $this; |
| 100 | 100 | } |
| 101 | 101 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @var array $attachmentsMimeType |
| 36 | 36 | */ |
| 37 | - protected $attachmentsMimeType = array('image','applications/pdf', |
|
| 37 | + protected $attachmentsMimeType = array('image', 'applications/pdf', |
|
| 38 | 38 | 'application/x-pdf', |
| 39 | 39 | 'application/acrobat', |
| 40 | 40 | 'applications/vnd.pdf', |
@@ -128,8 +128,8 @@ |
||
| 128 | 128 | */ |
| 129 | 129 | public function loadUnreadApplicationsForJob($job) |
| 130 | 130 | { |
| 131 | - $auth=$this->getService('AuthenticationService'); |
|
| 132 | - $qb=$this->createQueryBuilder() |
|
| 131 | + $auth = $this->getService('AuthenticationService'); |
|
| 132 | + $qb = $this->createQueryBuilder() |
|
| 133 | 133 | ->field("readBy")->notIn(array($auth->getUser()->id)) |
| 134 | 134 | ->field("job")->equals(new \MongoId($job->id)); |
| 135 | 135 | return $qb->getQuery()->execute(); |
@@ -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; |