@@ -26,8 +26,8 @@ |
||
26 | 26 | { |
27 | 27 | |
28 | 28 | protected $identifiers = array( |
29 | - 'Jobs/Acl/Assertions', |
|
30 | - 'Jobs/Acl/Assertion/Create', |
|
29 | + 'Jobs/Acl/Assertions', |
|
30 | + 'Jobs/Acl/Assertion/Create', |
|
31 | 31 | ); |
32 | 32 | |
33 | 33 | protected function preAssert( |
@@ -198,7 +198,7 @@ |
||
198 | 198 | * |
199 | 199 | * @return UserInterface $user |
200 | 200 | */ |
201 | - public function getUser() ; |
|
201 | + public function getUser(); |
|
202 | 202 | |
203 | 203 | /** |
204 | 204 | * Gets the link to the application form |
@@ -34,6 +34,7 @@ discard block |
||
34 | 34 | * Gets the unique key used by applications to reference a job posting |
35 | 35 | * |
36 | 36 | * @param string $applyId |
37 | + * @return JobInterface |
|
37 | 38 | */ |
38 | 39 | public function setApplyId($applyId); |
39 | 40 | |
@@ -89,6 +90,7 @@ discard block |
||
89 | 90 | * Sets an URI for a job posting |
90 | 91 | * |
91 | 92 | * @param string $link |
93 | + * @return Job |
|
92 | 94 | */ |
93 | 95 | public function setLink($link); |
94 | 96 | |
@@ -135,6 +137,7 @@ discard block |
||
135 | 137 | * Sets the title of a job posting |
136 | 138 | * |
137 | 139 | * @param string $title |
140 | + * @return JobInterface |
|
138 | 141 | */ |
139 | 142 | public function setTitle($title); |
140 | 143 | |
@@ -236,6 +239,7 @@ discard block |
||
236 | 239 | * Sets the language of a job posting |
237 | 240 | * |
238 | 241 | * @param string $language |
242 | + * @return Job |
|
239 | 243 | */ |
240 | 244 | public function setLanguage($language); |
241 | 245 | |
@@ -251,6 +255,7 @@ discard block |
||
251 | 255 | * Sets the location of a job posting |
252 | 256 | * |
253 | 257 | * @param string $location |
258 | + * @return Job |
|
254 | 259 | */ |
255 | 260 | public function setLocation($location); |
256 | 261 | |
@@ -265,6 +270,7 @@ discard block |
||
265 | 270 | * Sets locations of a job posting |
266 | 271 | * |
267 | 272 | * @param string $locations |
273 | + * @return Job |
|
268 | 274 | */ |
269 | 275 | public function setLocations($locations); |
270 | 276 | |
@@ -279,6 +285,7 @@ discard block |
||
279 | 285 | * Sets applications for a job posting |
280 | 286 | * |
281 | 287 | * @param Collection $applications |
288 | + * @return Job |
|
282 | 289 | */ |
283 | 290 | public function setApplications(Collection $applications); |
284 | 291 | |
@@ -293,6 +300,7 @@ discard block |
||
293 | 300 | * Sets Status of a job posting |
294 | 301 | * |
295 | 302 | * @param string $status |
303 | + * @return void |
|
296 | 304 | */ |
297 | 305 | public function setStatus($status); |
298 | 306 | |
@@ -338,6 +346,7 @@ discard block |
||
338 | 346 | * organisation offering the job. |
339 | 347 | * |
340 | 348 | * @param string $reference |
349 | + * @return Job |
|
341 | 350 | */ |
342 | 351 | public function setReference($reference); |
343 | 352 | |
@@ -353,6 +362,7 @@ discard block |
||
353 | 362 | * Sets the list of channels where a job opening should be published |
354 | 363 | * |
355 | 364 | * @param Array $portals |
365 | + * @return Job |
|
356 | 366 | */ |
357 | 367 | public function setPortals(array $portals); |
358 | 368 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array(); |
34 | 34 | |
35 | - if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) { |
|
35 | + if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) { |
|
36 | 36 | $coreOptions = $serviceLocator->get('Core/Options'); |
37 | 37 | $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail(); |
38 | 38 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $core = $serviceLocator->get("Core/Options"); |
25 | 25 | |
26 | 26 | if ('' == $channel->getCurrency()) { |
27 | - $currency=$core->getDefaultCurrencyCode(); |
|
27 | + $currency = $core->getDefaultCurrencyCode(); |
|
28 | 28 | $channel->setCurrency($currency); |
29 | 29 | } |
30 | 30 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | ) |
48 | 48 | ); |
49 | 49 | |
50 | - $data['previewLink'] = $viewLink; |
|
50 | + $data['previewLink'] = $viewLink; |
|
51 | 51 | return $data; |
52 | 52 | } |
53 | 53 |
@@ -39,12 +39,12 @@ |
||
39 | 39 | $viewLink = $controllerPluginManager->get('url')->fromRoute( |
40 | 40 | 'lang/jobs/view', |
41 | 41 | array( |
42 | - ), |
|
42 | + ), |
|
43 | 43 | array( |
44 | - 'query' => array( |
|
45 | - 'id' => $data['id'], |
|
46 | - ) |
|
47 | - ) |
|
44 | + 'query' => array( |
|
45 | + 'id' => $data['id'], |
|
46 | + ) |
|
47 | + ) |
|
48 | 48 | ); |
49 | 49 | |
50 | 50 | $data['previewLink'] = $viewLink; |
@@ -43,13 +43,13 @@ |
||
43 | 43 | |
44 | 44 | $this->add( |
45 | 45 | array( |
46 | - 'type' => 'Jobs\MultipostingSelect', |
|
47 | - 'property' => true, |
|
48 | - 'name' => 'portals', |
|
49 | - 'options' => array( |
|
50 | - 'label' => /*@translate*/ 'Portals', |
|
51 | - ), |
|
52 | - ) |
|
46 | + 'type' => 'Jobs\MultipostingSelect', |
|
47 | + 'property' => true, |
|
48 | + 'name' => 'portals', |
|
49 | + 'options' => array( |
|
50 | + 'label' => /*@translate*/ 'Portals', |
|
51 | + ), |
|
52 | + ) |
|
53 | 53 | ); |
54 | 54 | } |
55 | 55 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @var int $publishDuration |
83 | 83 | */ |
84 | - protected $publishDuration=30; |
|
84 | + protected $publishDuration = 30; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Category for this channel |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function setKey($key) |
142 | 142 | { |
143 | - $this->key=$key; |
|
143 | + $this->key = $key; |
|
144 | 144 | return $this; |
145 | 145 | } |
146 | 146 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function setExternalkey($key) |
164 | 164 | { |
165 | - $this->externalkey=$key; |
|
165 | + $this->externalkey = $key; |
|
166 | 166 | return $this; |
167 | 167 | } |
168 | 168 |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | /** |
155 | 155 | * Gets the unique key of a channel |
156 | 156 | * |
157 | - * @return string |
|
157 | + * @return integer |
|
158 | 158 | */ |
159 | 159 | public function getKey() |
160 | 160 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Gets the unique key of a channel |
178 | 178 | * |
179 | - * @return string |
|
179 | + * @return integer |
|
180 | 180 | */ |
181 | 181 | public function getExternalkey() |
182 | 182 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | /** |
260 | 260 | * Gets the tax for a price |
261 | 261 | * |
262 | - * @return string |
|
262 | + * @return integer |
|
263 | 263 | */ |
264 | 264 | public function getTax() |
265 | 265 | { |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | /** |
353 | 353 | * Gets the headline of the channel |
354 | 354 | * |
355 | - * @return mixed |
|
355 | + * @return string |
|
356 | 356 | */ |
357 | 357 | public function getHeadLine() |
358 | 358 | { |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | } |
391 | 391 | |
392 | 392 | /** |
393 | - * @return mixed |
|
393 | + * @return string |
|
394 | 394 | */ |
395 | 395 | public function getLinkText() |
396 | 396 | { |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | } |
409 | 409 | |
410 | 410 | /** |
411 | - * @return mixed |
|
411 | + * @return string |
|
412 | 412 | */ |
413 | 413 | public function getRoute() |
414 | 414 | { |
@@ -44,21 +44,21 @@ |
||
44 | 44 | * |
45 | 45 | * @var string $defaultLogo |
46 | 46 | */ |
47 | - protected $defaultLogo="/Jobs/images/yawik-small.jpg"; |
|
47 | + protected $defaultLogo = "/Jobs/images/yawik-small.jpg"; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Maximum size in bytes of a company Logo. Default 200k |
51 | 51 | * |
52 | 52 | * @var int $companyLogoMaxSize |
53 | 53 | */ |
54 | - protected $companyLogoMaxSize=200000; |
|
54 | + protected $companyLogoMaxSize = 200000; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Allowed Mime-Types for company Logos |
58 | 58 | * |
59 | 59 | * @var array |
60 | 60 | */ |
61 | - protected $companyLogoMimeType=array("image"); |
|
61 | + protected $companyLogoMimeType = array("image"); |
|
62 | 62 | |
63 | 63 | |
64 | 64 | /** |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | { |
28 | 28 | $qb = $this->createQueryBuilder(); |
29 | 29 | $qb->hydrate(true) |
30 | - ->select('entity') |
|
31 | - ->field('sourceId')->equals($jobEntity->id) |
|
32 | - ->sort('dateCreated', 'desc') |
|
33 | - ->limit(1); |
|
30 | + ->select('entity') |
|
31 | + ->field('sourceId')->equals($jobEntity->id) |
|
32 | + ->sort('dateCreated', 'desc') |
|
33 | + ->limit(1); |
|
34 | 34 | |
35 | 35 | $result = $qb->getQuery()->execute(); |
36 | 36 | if ($result->count() == 0) { |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | // So we need to create a cursor, that skips the first Document |
54 | 54 | $qb = $this->createQueryBuilder(); |
55 | 55 | $qb->hydrate(false) |
56 | - ->select('entity') |
|
57 | - ->field('sourceId')->equals($jobEntity->id) |
|
58 | - ->sort('dateCreated', 'desc'); |
|
56 | + ->select('entity') |
|
57 | + ->field('sourceId')->equals($jobEntity->id) |
|
58 | + ->sort('dateCreated', 'desc'); |
|
59 | 59 | $result = $qb->getQuery()->execute()->skip(1); |
60 | 60 | foreach ($result as $item) { |
61 | 61 | $id = $item['_id']; |