@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $this->auth()->isAdmin() |
105 | 105 | ) { |
106 | 106 | $applicationViewModel->setTemplate('iframe/iFrameInjection'); |
107 | - } elseif (Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
107 | + } elseif (Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
108 | 108 | $response->setStatusCode(Response::STATUS_CODE_410); |
109 | 109 | $model->setTemplate('jobs/error/expired'); |
110 | 110 | $model->setVariables( |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | protected function editTemplateAction() |
133 | 133 | { |
134 | 134 | $id = $this->params('id'); |
135 | - $formIdentifier=$this->params()->fromQuery('form'); |
|
135 | + $formIdentifier = $this->params()->fromQuery('form'); |
|
136 | 136 | //$job = $this->jobRepository->find($id); |
137 | 137 | $job = $this->initializeJob()->get($this->params(), true, true); /* @var \Jobs\Entity\Job $job */ |
138 | 138 | $this->acl($job, 'edit'); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | $instanceForm = $formTemplate->get($formIdentifier); |
166 | 166 | if (!isset($instanceForm)) { |
167 | - throw new \RuntimeException('No form found for "' . $formIdentifier . '"'); |
|
167 | + throw new \RuntimeException('No form found for "'.$formIdentifier.'"'); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | // the id is part of the postData, but it never should be altered |
@@ -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', |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | protected $targetDocument = Cv::class; |
26 | 26 | |
27 | - protected $filesProperties = [ 'attachments' ]; |
|
27 | + protected $filesProperties = ['attachments']; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * |
@@ -66,7 +66,7 @@ |
||
66 | 66 | ], |
67 | 67 | 'attributes' => [ |
68 | 68 | 'value' => '10', // default distance |
69 | - 'data-searchbox' => -1, // hide the search box |
|
69 | + 'data-searchbox' => -1, // hide the search box |
|
70 | 70 | 'data-allowclear' => 'false', // allow to clear a selected value |
71 | 71 | 'data-placeholder' => /*@translate*/ 'Distance', |
72 | 72 | 'data-width' => '100%', |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->add([ |
28 | 28 | 'name' => 'endDate', |
29 | - 'required' => ! $data['currentIndicator'] |
|
29 | + 'required' => !$data['currentIndicator'] |
|
30 | 30 | ]); |
31 | 31 | |
32 | 32 | return parent::setData($data); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->add([ |
28 | 28 | 'name' => 'endDate', |
29 | - 'required' => ! $data['currentIndicator'] |
|
29 | + 'required' => !$data['currentIndicator'] |
|
30 | 30 | ]); |
31 | 31 | |
32 | 32 | return parent::setData($data); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | use EmptySummaryAwareTrait, HydratorStrategyAwareTrait, ViewPartialProviderTrait; |
18 | 18 | |
19 | - private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
19 | + private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
20 | 20 | private $defaultPartial = 'cv/form/preferred-job-fieldset'; |
21 | 21 | |
22 | 22 | /** |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function getConfig() |
30 | 30 | { |
31 | - return include __DIR__ . '/../config/module.config.php'; |
|
31 | + return include __DIR__.'/../config/module.config.php'; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function onBootstrap(MvcEvent $e) |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @var string |
54 | 54 | */ |
55 | - protected $options="Cv/Options"; |
|
55 | + protected $options = "Cv/Options"; |
|
56 | 56 | |
57 | 57 | |
58 | 58 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->setIsDescriptionsEnabled(true) |
78 | 78 | ->setDescription( |
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your CV. 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'); |