@@ -32,9 +32,9 @@ |
||
32 | 32 | $channel = $this->params()->fromRoute('channel', 'default'); |
33 | 33 | |
34 | 34 | /* @var Paginator $paginator */ |
35 | - $paginator = $this->paginator('Jobs/Job', ['channel' => $channel ]); |
|
35 | + $paginator = $this->paginator('Jobs/Job', ['channel' => $channel]); |
|
36 | 36 | |
37 | - $viewModel=new ViewModel(); |
|
37 | + $viewModel = new ViewModel(); |
|
38 | 38 | $viewModel->setVariables( |
39 | 39 | [ |
40 | 40 | 'jobs' => $paginator, |
@@ -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', |
@@ -44,8 +44,8 @@ |
||
44 | 44 | $fileId = new \MongoId($file->getId()); |
45 | 45 | $dm = $eventArgs->getDocumentManager(); |
46 | 46 | $dm->createQueryBuilder('Cv\Entity\Cv') |
47 | - ->update()->multiple(true) |
|
48 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | - ->getQuery()->execute(); |
|
47 | + ->update()->multiple(true) |
|
48 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | + ->getQuery()->execute(); |
|
50 | 50 | } |
51 | 51 | } |
@@ -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%', |
@@ -33,44 +33,44 @@ |
||
33 | 33 | protected function addElements() |
34 | 34 | { |
35 | 35 | $this->add( |
36 | - [ |
|
37 | - 'name' => 'l', |
|
38 | - 'type' => 'LocationSelect', |
|
39 | - 'options' => [ |
|
40 | - 'label' => /*@translate*/ 'Location', |
|
41 | - 'span' => 3, |
|
42 | - 'location_entity' => Location::class, |
|
43 | - ], |
|
44 | - 'attributes' => [ |
|
45 | - 'data-width' => '100%', |
|
46 | - ], |
|
47 | - ] |
|
36 | + [ |
|
37 | + 'name' => 'l', |
|
38 | + 'type' => 'LocationSelect', |
|
39 | + 'options' => [ |
|
40 | + 'label' => /*@translate*/ 'Location', |
|
41 | + 'span' => 3, |
|
42 | + 'location_entity' => Location::class, |
|
43 | + ], |
|
44 | + 'attributes' => [ |
|
45 | + 'data-width' => '100%', |
|
46 | + ], |
|
47 | + ] |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | $this->add( |
51 | - [ |
|
52 | - 'name' => 'd', |
|
53 | - 'type' => 'Core\Form\Element\Select', //Laminas\Form\Element\Select |
|
54 | - 'options' => [ |
|
55 | - 'label' => /*@translate*/ 'Distance', |
|
56 | - 'value_options' => [ |
|
57 | - '5' => '5 km', |
|
58 | - '10' => '10 km', |
|
59 | - '20' => '20 km', |
|
60 | - '50' => '50 km', |
|
61 | - '100' => '100 km' |
|
62 | - ], |
|
63 | - 'span' => 4, |
|
51 | + [ |
|
52 | + 'name' => 'd', |
|
53 | + 'type' => 'Core\Form\Element\Select', //Laminas\Form\Element\Select |
|
54 | + 'options' => [ |
|
55 | + 'label' => /*@translate*/ 'Distance', |
|
56 | + 'value_options' => [ |
|
57 | + '5' => '5 km', |
|
58 | + '10' => '10 km', |
|
59 | + '20' => '20 km', |
|
60 | + '50' => '50 km', |
|
61 | + '100' => '100 km' |
|
62 | + ], |
|
63 | + 'span' => 4, |
|
64 | 64 | |
65 | - ], |
|
66 | - 'attributes' => [ |
|
67 | - 'value' => '10', // default distance |
|
68 | - 'data-searchbox' => -1, // hide the search box |
|
69 | - 'data-allowclear' => 'false', // allow to clear a selected value |
|
70 | - 'data-placeholder' => /*@translate*/ 'Distance', |
|
71 | - 'data-width' => '100%', |
|
72 | - ] |
|
73 | - ] |
|
65 | + ], |
|
66 | + 'attributes' => [ |
|
67 | + 'value' => '10', // default distance |
|
68 | + 'data-searchbox' => -1, // hide the search box |
|
69 | + 'data-allowclear' => 'false', // allow to clear a selected value |
|
70 | + 'data-placeholder' => /*@translate*/ 'Distance', |
|
71 | + 'data-width' => '100%', |
|
72 | + ] |
|
73 | + ] |
|
74 | 74 | ); |
75 | 75 | } |
76 | 76 | } |
@@ -124,9 +124,9 @@ |
||
124 | 124 | public function init() |
125 | 125 | { |
126 | 126 | $this->setName('nativeLanguages') |
127 | - ->setHydrator(new EntityHydrator()) |
|
128 | - ->setObject(new NativeLanguageEntity()) |
|
129 | - ->setLabel('Native Language'); |
|
127 | + ->setHydrator(new EntityHydrator()) |
|
128 | + ->setObject(new NativeLanguageEntity()) |
|
129 | + ->setLabel('Native Language'); |
|
130 | 130 | |
131 | 131 | |
132 | 132 | $this->add( |
@@ -11,9 +11,9 @@ |
||
11 | 11 | public function init() |
12 | 12 | { |
13 | 13 | $this->setName('language') |
14 | - ->setHydrator(new EntityHydrator()) |
|
15 | - ->setObject(new LanguageEntity()) |
|
16 | - ->setLabel('Language'); |
|
14 | + ->setHydrator(new EntityHydrator()) |
|
15 | + ->setObject(new LanguageEntity()) |
|
16 | + ->setLabel('Language'); |
|
17 | 17 | |
18 | 18 | $this->add( |
19 | 19 | array( |
@@ -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); |