@@ -40,7 +40,7 @@ |
||
40 | 40 | ['name' => 'StringTrim'], |
41 | 41 | ['name' => 'Alpha'], |
42 | 42 | ], |
43 | - ]); |
|
43 | + ]); |
|
44 | 44 | |
45 | 45 | $controller = new ApiJobListByOrganizationController($jobRepository, $apiJobDehydrator, $inputFilter); |
46 | 46 |
@@ -36,6 +36,6 @@ |
||
36 | 36 | $defaultListener = $container->get('DefaultListeners'); |
37 | 37 | $imageFileCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
38 | 38 | |
39 | - return new JobboardController($defaultListener, $jobRepository, $imageFileCacheManager, [ 'count' => $options->getPerPage() ]); |
|
39 | + return new JobboardController($defaultListener, $jobRepository, $imageFileCacheManager, ['count' => $options->getPerPage()]); |
|
40 | 40 | } |
41 | 41 | } |
@@ -33,8 +33,8 @@ |
||
33 | 33 | { |
34 | 34 | $auth = $container->get('AuthenticationService'); |
35 | 35 | /* @var RepositoryService $repositoryService */ |
36 | - $repositoryService = $container->get('repositories'); |
|
37 | - $translator = $container->get('translator'); |
|
36 | + $repositoryService = $container->get('repositories'); |
|
37 | + $translator = $container->get('translator'); |
|
38 | 38 | $filterManager = $container->get('FilterManager'); |
39 | 39 | $jobFormEvents = $container->get('Jobs/JobContainer/Events'); |
40 | 40 | $formManager = $container->get('FormElementManager'); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | if (!array_key_exists('path', $config)) { |
40 | 40 | throw new \RuntimeException('path is missing', 500); |
41 | 41 | } |
42 | - return $config['scheme'] . '://' . $config['host'] . '/' . $config['path']; |
|
42 | + return $config['scheme'].'://'.$config['host'].'/'.$config['path']; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -73,15 +73,15 @@ |
||
73 | 73 | if ('yawik' == $channelKey) { |
74 | 74 | $absoluteDiscount = 100; |
75 | 75 | } |
76 | - if ($channel instanceof ChannelOptions && $channel->getPrice('base')>0) { |
|
76 | + if ($channel instanceof ChannelOptions && $channel->getPrice('base') > 0) { |
|
77 | 77 | $sum += $channel->getPrice('base'); |
78 | 78 | $amount++; |
79 | 79 | } |
80 | 80 | } |
81 | - $discount=1-($amount-1)*13.5/100; |
|
82 | - if ($discount>0) { |
|
83 | - $sum= round($sum * $discount, 2); |
|
81 | + $discount = 1 - ($amount - 1) * 13.5 / 100; |
|
82 | + if ($discount > 0) { |
|
83 | + $sum = round($sum * $discount, 2); |
|
84 | 84 | } |
85 | - return $sum-$absoluteDiscount; |
|
85 | + return $sum - $absoluteDiscount; |
|
86 | 86 | } |
87 | 87 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'lang/jobs/view', |
49 | 49 | [], |
50 | 50 | [ |
51 | - 'query' => [ 'id' => $job->getId() ], |
|
51 | + 'query' => ['id' => $job->getId()], |
|
52 | 52 | 'force_canonical' => true |
53 | 53 | ] |
54 | 54 | ); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'lang/jobs/view', |
49 | 49 | [], |
50 | 50 | [ |
51 | - 'query' => [ 'id' => $job->getId() ], |
|
51 | + 'query' => ['id' => $job->getId()], |
|
52 | 52 | 'force_canonical' => true |
53 | 53 | ] |
54 | 54 | ); |
@@ -208,13 +208,13 @@ discard block |
||
208 | 208 | return $this->email; |
209 | 209 | } |
210 | 210 | |
211 | - /** |
|
212 | - * @return bool |
|
213 | - */ |
|
214 | - public function getOneClickApply() |
|
215 | - { |
|
216 | - return $this->oneClickApply; |
|
217 | - } |
|
211 | + /** |
|
212 | + * @return bool |
|
213 | + */ |
|
214 | + public function getOneClickApply() |
|
215 | + { |
|
216 | + return $this->oneClickApply; |
|
217 | + } |
|
218 | 218 | |
219 | 219 | |
220 | 220 | /** |
@@ -222,29 +222,29 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @return $this |
224 | 224 | */ |
225 | - public function setOneClickApply($oneClickApply) |
|
226 | - { |
|
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
225 | + public function setOneClickApply($oneClickApply) |
|
226 | + { |
|
227 | + $this->oneClickApply = (bool)$oneClickApply; |
|
228 | 228 | |
229 | - return $this; |
|
230 | - } |
|
231 | - |
|
232 | - /** |
|
233 | - * @return array |
|
234 | - */ |
|
235 | - public function getOneClickApplyProfiles() |
|
236 | - { |
|
237 | - return $this->oneClickApplyProfiles; |
|
238 | - } |
|
239 | - |
|
240 | - /** |
|
241 | - * @param array $oneClickApplyProfiles |
|
242 | - * @return AtsMode |
|
243 | - */ |
|
244 | - public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | - { |
|
246 | - $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
229 | + return $this; |
|
230 | + } |
|
231 | + |
|
232 | + /** |
|
233 | + * @return array |
|
234 | + */ |
|
235 | + public function getOneClickApplyProfiles() |
|
236 | + { |
|
237 | + return $this->oneClickApplyProfiles; |
|
238 | + } |
|
239 | + |
|
240 | + /** |
|
241 | + * @param array $oneClickApplyProfiles |
|
242 | + * @return AtsMode |
|
243 | + */ |
|
244 | + public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | + { |
|
246 | + $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
247 | 247 | |
248 | - return $this; |
|
249 | - } |
|
248 | + return $this; |
|
249 | + } |
|
250 | 250 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | */ |
225 | 225 | public function setOneClickApply($oneClickApply) |
226 | 226 | { |
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
227 | + $this->oneClickApply = (bool) $oneClickApply; |
|
228 | 228 | |
229 | 229 | return $this; |
230 | 230 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * A new job was created. |
23 | 23 | */ |
24 | - const CREATED = /*@translate*/ 'created'; |
|
24 | + const CREATED = /*@translate*/ 'created'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * A new job is waiting for approval |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * A Job is accepted an is going to be published |
38 | 38 | */ |
39 | - const PUBLISH = /*@translate*/ 'publish'; |
|
39 | + const PUBLISH = /*@translate*/ 'publish'; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * A Job is online |
43 | 43 | */ |
44 | - const ACTIVE = /*@translate*/ 'active'; |
|
44 | + const ACTIVE = /*@translate*/ 'active'; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * A job was is set inactive |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * A job was expired |
53 | 53 | */ |
54 | - const EXPIRED = /*@translate*/ 'expired'; |
|
54 | + const EXPIRED = /*@translate*/ 'expired'; |
|
55 | 55 | |
56 | 56 | public function __construct($status = self::CREATED); |
57 | 57 |