@@ -36,7 +36,7 @@ |
||
36 | 36 | $helpers = $services->get('ViewHelperManager'); |
37 | 37 | // $headScript = $helpers->get('headScript'); |
38 | 38 | /// $basePath = $helpers->get('basePath'); |
39 | - $currencyFormat = $helpers->get('currencyFormat'); |
|
39 | + $currencyFormat = $helpers->get('currencyFormat'); |
|
40 | 40 | |
41 | 41 | $channels = $services->get('Jobs/Options/Provider'); |
42 | 42 |
@@ -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,13 +47,13 @@ |
||
47 | 47 | $amount = 0; |
48 | 48 | foreach ($value as $channelKey) { |
49 | 49 | $channel = $this->providers->getChannel($channelKey); |
50 | - if ($channel->getPrice('base')>0) { |
|
50 | + if ($channel->getPrice('base') > 0) { |
|
51 | 51 | $sum += $channel->getPrice('base'); |
52 | 52 | $amount++; |
53 | 53 | } |
54 | 54 | } |
55 | - $discount=1-($amount-1)*13.5/100; |
|
56 | - if ($discount>0) $sum= round($sum * $discount,2); |
|
55 | + $discount = 1 - ($amount - 1) * 13.5 / 100; |
|
56 | + if ($discount > 0) $sum = round($sum * $discount, 2); |
|
57 | 57 | return $sum; |
58 | 58 | } |
59 | 59 |
@@ -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 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | public function renderPost(Renderer $renderer) |
101 | 101 | { |
102 | - $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
102 | + $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
103 | 103 | $javaScript = <<<JS |
104 | 104 | $(document).ready(function() { |
105 | 105 |
@@ -34,24 +34,24 @@ |
||
34 | 34 | * Event is fired when a users has created a new job opening and accepted the |
35 | 35 | * terms and conditions |
36 | 36 | */ |
37 | - const EVENT_JOB_CREATED = 'job.created'; |
|
37 | + const EVENT_JOB_CREATED = 'job.created'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Event is fired when the owner of the YAWIK installation has accepted the job |
41 | 41 | * opening |
42 | 42 | */ |
43 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
43 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
47 | 47 | * opening |
48 | 48 | */ |
49 | - const EVENT_JOB_REJECTED = 'job.rejected'; |
|
49 | + const EVENT_JOB_REJECTED = 'job.rejected'; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * get all available names for publishing |
53 | 53 | */ |
54 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
54 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @var portals to be published |
@@ -23,35 +23,35 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * Job has been published |
25 | 25 | */ |
26 | - const RESPONSE_OK = 'ok'; |
|
26 | + const RESPONSE_OK = 'ok'; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Job has been published and has stopped all other publishing |
30 | 30 | */ |
31 | - const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
31 | + const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * publishing has been stopped |
35 | 35 | */ |
36 | - const RESPONSE_STOP = 'publishing terminated'; |
|
36 | + const RESPONSE_STOP = 'publishing terminated'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * publishing has been denied, |
40 | 40 | * this is very likely when a job was not intended to be sended to a portal |
41 | 41 | */ |
42 | - const RESPONSE_DENIED = 'denied'; |
|
42 | + const RESPONSE_DENIED = 'denied'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * a connection to the portal could not be established |
46 | 46 | * or the publishing of the Job has been rejected for other reasons |
47 | 47 | */ |
48 | - const RESPONSE_FAIL = 'fail'; |
|
48 | + const RESPONSE_FAIL = 'fail'; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * This error has nothing to do with wrong inputs, |
52 | 52 | * something just has happend in the programm |
53 | 53 | */ |
54 | - const RESPONSE_ERROR = 'internal Error'; |
|
54 | + const RESPONSE_ERROR = 'internal Error'; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * nothing happens, but that's not a failure |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * nothing happens, and get used to it |
64 | 64 | */ |
65 | - const RESPONSE_DEPRECATED = 'deprecated'; |
|
65 | + const RESPONSE_DEPRECATED = 'deprecated'; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @var string |
@@ -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 |