@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @var string |
| 58 | 58 | */ |
| 59 | - protected $options="Applications/Options"; |
|
| 59 | + protected $options = "Applications/Options"; |
|
| 60 | 60 | |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ->setIsDescriptionsEnabled(true) |
| 78 | 78 | ->setDescription( |
| 79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
| 80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
| 80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
| 81 | 81 | ) |
| 82 | 82 | ->setParam('return', 'file-uri') |
| 83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -23,35 +23,35 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * Job has been published |
| 25 | 25 | */ |
| 26 | - const RESPONSE_OK = 'ok'; |
|
| 26 | + const RESPONSE_OK = 'ok'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Job has been published and has stopped all other publishing |
| 30 | 30 | */ |
| 31 | - const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
| 31 | + const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * publishing has been stopped |
| 35 | 35 | */ |
| 36 | - const RESPONSE_STOP = 'publishing terminated'; |
|
| 36 | + const RESPONSE_STOP = 'publishing terminated'; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * publishing has been denied, |
| 40 | 40 | * this is very likely when a job was not intended to be sended to a portal |
| 41 | 41 | */ |
| 42 | - const RESPONSE_DENIED = 'denied'; |
|
| 42 | + const RESPONSE_DENIED = 'denied'; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * a connection to the portal could not be established |
| 46 | 46 | * or the publishing of the Job has been rejected for other reasons |
| 47 | 47 | */ |
| 48 | - const RESPONSE_FAIL = 'fail'; |
|
| 48 | + const RESPONSE_FAIL = 'fail'; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * This error has nothing to do with wrong inputs, |
| 52 | 52 | * something just has happend in the programm |
| 53 | 53 | */ |
| 54 | - const RESPONSE_ERROR = 'internal Error'; |
|
| 54 | + const RESPONSE_ERROR = 'internal Error'; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * nothing happens, but that's not a failure |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * nothing happens, and get used to it |
| 64 | 64 | */ |
| 65 | - const RESPONSE_DEPRECATED = 'deprecated'; |
|
| 65 | + const RESPONSE_DEPRECATED = 'deprecated'; |
|
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * @var string |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param string $portal |
| 84 | 84 | * @param string $status |
| 85 | 85 | */ |
| 86 | - public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') |
|
| 86 | + public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') |
|
| 87 | 87 | { |
| 88 | 88 | $this->portal = $portal; |
| 89 | 89 | $this->status = $status; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $object = parent::hydrate($data, $object); |
| 44 | 44 | /* @var \Organizations\Entity\Template $template */ |
| 45 | - $template=$object->getOrganization()->getTemplate(); |
|
| 45 | + $template = $object->getOrganization()->getTemplate(); |
|
| 46 | 46 | if (isset($data['description-label-requirements'])) { |
| 47 | 47 | $template->setLabelRequirements($data['description-label-requirements']); |
| 48 | 48 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | $this->add($fieldset); |
| 66 | 66 | |
| 67 | - $mode=$options->getMode(); |
|
| 67 | + $mode = $options->getMode(); |
|
| 68 | 68 | if (in_array($mode, [CaptchaOptions::RE_CAPTCHA, CaptchaOptions::IMAGE])) { |
| 69 | 69 | if ($mode == CaptchaOptions::IMAGE) { |
| 70 | 70 | $captcha = new Image($options->getImage()); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | |
| 22 | 22 | protected $sortPropertiesMap = [ |
| 23 | - 'name' => [ 'info.lastName', 'info.firstName', 'info.email' ], |
|
| 23 | + 'name' => ['info.lastName', 'info.firstName', 'info.email'], |
|
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | if (true === $this->getOption('include_all_option')) { |
| 37 | 37 | $valueOptions = array_merge([ |
| 38 | 38 | 'all' => /*@translate*/ 'All', |
| 39 | - ], $valueOptions ); |
|
| 39 | + ], $valueOptions); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $this->setValueOptions($valueOptions); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $options = parent::getValueOptions(); |
| 83 | 83 | |
| 84 | 84 | return true === $this->getOption('include_all_option') |
| 85 | - ? array_merge([ 'all' => /*@translate*/ 'All' ], $options) |
|
| 85 | + ? array_merge(['all' => /*@translate*/ 'All'], $options) |
|
| 86 | 86 | : $options; |
| 87 | 87 | } |
| 88 | 88 | |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | * Event is fired when a users has created a new job opening and accepted the |
| 35 | 35 | * terms and conditions |
| 36 | 36 | */ |
| 37 | - const EVENT_JOB_CREATED = 'job.created'; |
|
| 37 | + const EVENT_JOB_CREATED = 'job.created'; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Event is fired when the owner of the YAWIK installation has accepted the job |
| 41 | 41 | * opening |
| 42 | 42 | */ |
| 43 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
| 43 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * get all available names for publishing |
| 56 | 56 | */ |
| 57 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
| 57 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @var portals to be published |
@@ -39,15 +39,15 @@ |
||
| 39 | 39 | 'title' => 'Jobs', |
| 40 | 40 | 'data' => [ |
| 41 | 41 | /*@translate*/ 'Total jobs' => [ |
| 42 | - 'url' => [ 'lang/admin/jobs', [], true ], |
|
| 42 | + 'url' => ['lang/admin/jobs', [], true], |
|
| 43 | 43 | 'value' => $total, |
| 44 | 44 | ], |
| 45 | 45 | /*@translate*/ 'Active jobs' => [ |
| 46 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ], |
|
| 46 | + 'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'active']], true], |
|
| 47 | 47 | 'value' => $active |
| 48 | 48 | ], |
| 49 | 49 | /*@translate*/ 'Pending jobs' => [ |
| 50 | - 'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ], |
|
| 50 | + 'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'created']], true], |
|
| 51 | 51 | 'value' => $pending |
| 52 | 52 | ] |
| 53 | 53 | ], |
@@ -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; |