@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * for multiple paths. |
23 | 23 | * example https://github.com/doctrine/DoctrineORMModule |
24 | 24 | */ |
25 | - 'paths' => array( __DIR__ . '/../src/Geo/Entity'), |
|
25 | + 'paths' => array(__DIR__.'/../src/Geo/Entity'), |
|
26 | 26 | ), |
27 | 27 | ), |
28 | 28 | 'eventmanager' => array( |
@@ -84,13 +84,13 @@ discard block |
||
84 | 84 | |
85 | 85 | // Map template to files. Speeds up the lookup through the template stack. |
86 | 86 | 'template_map' => array( |
87 | - 'geo/form/GeoText' => __DIR__ . '/../view/form/geotext.phtml', |
|
88 | - 'geo/form/GeoHorizontal' => __DIR__ . '/../view/form/geo-horizontal.phtml', |
|
87 | + 'geo/form/GeoText' => __DIR__.'/../view/form/geotext.phtml', |
|
88 | + 'geo/form/GeoHorizontal' => __DIR__.'/../view/form/geo-horizontal.phtml', |
|
89 | 89 | ), |
90 | 90 | |
91 | 91 | // Where to look for view templates not mapped above |
92 | 92 | 'template_path_stack' => array( |
93 | - __DIR__ . '/../view', |
|
93 | + __DIR__.'/../view', |
|
94 | 94 | ), |
95 | 95 | ), |
96 | 96 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * @var String |
36 | 36 | * @ODM\Field(type="string") |
37 | 37 | */ |
38 | - protected $qualifications=''; |
|
38 | + protected $qualifications = ''; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Requirements field of the job template |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @var String |
44 | 44 | * @ODM\Field(type="string") |
45 | 45 | */ |
46 | - protected $requirements=''; |
|
46 | + protected $requirements = ''; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Benefits field of the job template |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @var String |
52 | 52 | * @ODM\Field(type="string") |
53 | 53 | */ |
54 | - protected $benefits=''; |
|
54 | + protected $benefits = ''; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Job title field of the job template |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @var String |
60 | 60 | * @ODM\Field(type="string") |
61 | 61 | */ |
62 | - protected $title=''; |
|
62 | + protected $title = ''; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Company description field of the job template |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @var String |
68 | 68 | * @ODM\Field(type="string") |
69 | 69 | */ |
70 | - protected $description=''; |
|
70 | + protected $description = ''; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @var String |
76 | 76 | * @ODM\Field(type="string") |
77 | 77 | */ |
78 | - protected $language='en'; |
|
78 | + protected $language = 'en'; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * free values (currently not in use) |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function setQualifications($qualifications) |
94 | 94 | { |
95 | - $this->qualifications= (string) $qualifications; |
|
95 | + $this->qualifications = (string) $qualifications; |
|
96 | 96 | return $this; |
97 | 97 | } |
98 | 98 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function setRequirements($requirements) |
116 | 116 | { |
117 | - $this->requirements=(string) $requirements; |
|
117 | + $this->requirements = (string) $requirements; |
|
118 | 118 | return $this; |
119 | 119 | } |
120 | 120 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function setBenefits($benefits) |
138 | 138 | { |
139 | - $this->benefits=(string) $benefits; |
|
139 | + $this->benefits = (string) $benefits; |
|
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function setTitle($title) |
160 | 160 | { |
161 | - $this->title=(string) $title; |
|
161 | + $this->title = (string) $title; |
|
162 | 162 | return $this; |
163 | 163 | } |
164 | 164 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function setDescription($description) |
182 | 182 | { |
183 | - $this->description=(string) $description; |
|
183 | + $this->description = (string) $description; |
|
184 | 184 | return $this; |
185 | 185 | } |
186 | 186 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function setLanguage($language) |
204 | 204 | { |
205 | - $this->language=(string) $language; |
|
205 | + $this->language = (string) $language; |
|
206 | 206 | return $this; |
207 | 207 | } |
208 | 208 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | public function __get($property) |
249 | 249 | { |
250 | - $getter = "get" . ucfirst($property); |
|
250 | + $getter = "get".ucfirst($property); |
|
251 | 251 | if (method_exists($this, $getter)) { |
252 | 252 | return $this->$getter(); |
253 | 253 | } |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | public function __set($property, $value) |
263 | 263 | { |
264 | 264 | //$this->checkWriteAccess(); |
265 | - $setter = 'set' . ucfirst($property); |
|
265 | + $setter = 'set'.ucfirst($property); |
|
266 | 266 | if (method_exists($this, $setter)) { |
267 | 267 | $this->$setter($value); |
268 | 268 | return; |
@@ -64,10 +64,10 @@ |
||
64 | 64 | $imageUrl = $image ? $image->getUri() : ''; |
65 | 65 | |
66 | 66 | $options[$org->getId()] = $name . '|' |
67 | - . $contact->getCity() . '|' |
|
68 | - . $contact->getStreet() . '|' |
|
69 | - . $contact->getHouseNumber() . '|' |
|
70 | - . $imageUrl; |
|
67 | + . $contact->getCity() . '|' |
|
68 | + . $contact->getStreet() . '|' |
|
69 | + . $contact->getHouseNumber() . '|' |
|
70 | + . $imageUrl; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $this->setValueOptions($options); |
@@ -63,10 +63,10 @@ |
||
63 | 63 | $image = $org->getImage(); |
64 | 64 | $imageUrl = $image ? $image->getUri() : ''; |
65 | 65 | |
66 | - $options[$org->getId()] = $name . '|' |
|
67 | - . $contact->getCity() . '|' |
|
68 | - . $contact->getStreet() . '|' |
|
69 | - . $contact->getHouseNumber() . '|' |
|
66 | + $options[$org->getId()] = $name.'|' |
|
67 | + . $contact->getCity().'|' |
|
68 | + . $contact->getStreet().'|' |
|
69 | + . $contact->getHouseNumber().'|' |
|
70 | 70 | . $imageUrl; |
71 | 71 | } |
72 | 72 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | public function render(ElementInterface $element, $options = null) |
37 | 37 | { |
38 | - $content = '<iframe src="' . $element->getValue() . '" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
38 | + $content = '<iframe src="'.$element->getValue().'" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
39 | 39 | return $content; |
40 | 40 | } |
41 | 41 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | parent::init(); |
19 | 19 | $input = $this->get('applyId') |
20 | - ->getValidatorChain() |
|
21 | - ->attachByName('Jobs/Form/UniqueApplyId'); |
|
20 | + ->getValidatorChain() |
|
21 | + ->attachByName('Jobs/Form/UniqueApplyId'); |
|
22 | 22 | } |
23 | 23 | } |
@@ -30,21 +30,21 @@ |
||
30 | 30 | )); |
31 | 31 | |
32 | 32 | $this->add([ |
33 | - 'type' => 'Jobs/StatusSelect', |
|
33 | + 'type' => 'Jobs/StatusSelect', |
|
34 | 34 | |
35 | - ]); |
|
35 | + ]); |
|
36 | 36 | |
37 | 37 | $this->add([ |
38 | - 'type' => 'Core/Datepicker', |
|
39 | - 'name' => 'datePublishStart', |
|
40 | - 'options' => [ |
|
41 | - 'label' => /*@translate*/ 'Start date', |
|
42 | - 'description' => /*@translate*/ 'Set the start date of this job.', |
|
43 | - ], |
|
44 | - 'attributes' => [ |
|
45 | - 'data-date-autoclose' => 'true', |
|
46 | - ], |
|
47 | - ]); |
|
38 | + 'type' => 'Core/Datepicker', |
|
39 | + 'name' => 'datePublishStart', |
|
40 | + 'options' => [ |
|
41 | + 'label' => /*@translate*/ 'Start date', |
|
42 | + 'description' => /*@translate*/ 'Set the start date of this job.', |
|
43 | + ], |
|
44 | + 'attributes' => [ |
|
45 | + 'data-date-autoclose' => 'true', |
|
46 | + ], |
|
47 | + ]); |
|
48 | 48 | $this->setIsDescriptionsEnabled(true); |
49 | 49 | } |
50 | 50 |
@@ -171,14 +171,14 @@ |
||
171 | 171 | $jsonLastError = json_last_error(); |
172 | 172 | if (json_last_error() != JSON_ERROR_NONE) { |
173 | 173 | // not able to decode json |
174 | - $log->info('RestCall Response not Json [errorCode: ' . $jsonLastError . ']: ' . var_export($body, true)); |
|
174 | + $log->info('RestCall Response not Json [errorCode: '.$jsonLastError.']: '.var_export($body, true)); |
|
175 | 175 | } else { |
176 | 176 | // does the provider want to have an own ID for Identification ? |
177 | 177 | $response_referenceUpdate = $decodedBody->referenceUpdate; |
178 | 178 | $response_externalIdUpdate = $decodedBody->applyIdUpdate; |
179 | 179 | |
180 | 180 | if ($publisher->externalId != $response_externalIdUpdate || $publisher->reference != $response_referenceUpdate) { |
181 | - $log->info('RestCall changed externalID [' . var_export($publisher->externalId, true) . ' => ' . var_export($response_externalIdUpdate, true) . '], reference [' . var_export($publisher->reference, true) . ' => ' . var_export($response_referenceUpdate, true) . ']'); |
|
181 | + $log->info('RestCall changed externalID ['.var_export($publisher->externalId, true).' => '.var_export($response_externalIdUpdate, true).'], reference ['.var_export($publisher->reference, true).' => '.var_export($response_referenceUpdate, true).']'); |
|
182 | 182 | $publisher->reference = $response_referenceUpdate; |
183 | 183 | $publisher->externalId = $response_externalIdUpdate; |
184 | 184 | $serviceManager->get('repositories')->store($entity); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | return new JsonModel([ |
72 | 72 | 'valid' => $valid, |
73 | 73 | 'errors' => $errors |
74 | - ]); |
|
74 | + ]); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $form->bind($job); |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | public function indexAction() |
27 | 27 | { |
28 | 28 | return $this->pagination([ |
29 | - 'params' => [ 'Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ] ], |
|
30 | - 'form' => [ 'as' => 'form', 'Jobs/AdminSearch' ], |
|
31 | - 'paginator' => [ 'as' => 'jobs', 'Jobs/Admin' ], |
|
29 | + 'params' => ['Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status']], |
|
30 | + 'form' => ['as' => 'form', 'Jobs/AdminSearch'], |
|
31 | + 'paginator' => ['as' => 'jobs', 'Jobs/Admin'], |
|
32 | 32 | ]); |
33 | 33 | } |
34 | 34 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $oldStatus = $job->getStatus(); |
55 | 55 | $job->changeStatus($post['statusselect'], '[System] Status changed via Admin GUI.'); |
56 | 56 | $events = $services->get('Jobs/Events'); |
57 | - $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, [ 'job' => $job, 'status' => $oldStatus ]); |
|
57 | + $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, ['job' => $job, 'status' => $oldStatus]); |
|
58 | 58 | } |
59 | 59 | } |
60 | 60 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | $form->bind($job); |
68 | 68 | |
69 | - return [ 'form' => $form, 'job' => $job ]; |
|
69 | + return ['form' => $form, 'job' => $job]; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | } |
73 | 73 | \ No newline at end of file |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $job = $this->repository->find($id); |
63 | 63 | |
64 | 64 | if (!$job) { |
65 | - throw new \RuntimeException('No job found with id "' . $id . '"'); |
|
65 | + throw new \RuntimeException('No job found with id "'.$id.'"'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $this->acl($job, 'edit'); |