@@ -195,7 +195,7 @@ |
||
195 | 195 | return $this->proxy('__isset', $property); |
196 | 196 | } |
197 | 197 | |
198 | - public function notEmpty($property, array $args=[]) |
|
198 | + public function notEmpty($property, array $args = []) |
|
199 | 199 | { |
200 | 200 | return $this->proxy('notEmpty', $args); |
201 | 201 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @license MIT |
7 | 7 | * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
8 | 8 | */ |
9 | -return [ 'router' => [ 'routes' => [ 'lang' => [ 'child_routes' => [ |
|
9 | +return ['router' => ['routes' => ['lang' => ['child_routes' => [ |
|
10 | 10 | |
11 | 11 | 'orders' => [ |
12 | 12 | 'type' => 'Segment', |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
8 | 8 | */ |
9 | 9 | |
10 | -return [ 'acl' => [ |
|
10 | +return ['acl' => [ |
|
11 | 11 | |
12 | 12 | 'rules' => [ |
13 | 13 | 'admin' => [ |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | */ |
237 | 237 | public function setPrice($amount) |
238 | 238 | { |
239 | - $tax = $this->getTaxRate() / 100; |
|
239 | + $tax = $this->getTaxRate() / 100; |
|
240 | 240 | $taxAmount = $amount * $tax; |
241 | 241 | |
242 | 242 | $this->prices = [ |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | return $this; |
249 | 249 | } |
250 | 250 | |
251 | - public function getPrice($type="net") |
|
251 | + public function getPrice($type = "net") |
|
252 | 252 | { |
253 | 253 | if (!$this->prices || !array_key_exists($type, $this->prices)) { |
254 | 254 | return 0; |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * |
265 | 265 | * @return array |
266 | 266 | */ |
267 | - public function getPrices($calculate=false) |
|
267 | + public function getPrices($calculate = false) |
|
268 | 268 | { |
269 | 269 | /*if (!$this->prices || $calculate) { |
270 | 270 | $this->calculatePrices(); |
@@ -22,14 +22,14 @@ |
||
22 | 22 | */ |
23 | 23 | class Orders extends AbstractRepository |
24 | 24 | { |
25 | - public function createJobOrder(array $data=[]) |
|
25 | + public function createJobOrder(array $data = []) |
|
26 | 26 | { |
27 | 27 | $data['type'] = OrderInterface::TYPE_JOB; |
28 | 28 | |
29 | 29 | return $this->create($data); |
30 | 30 | } |
31 | 31 | |
32 | - public function create(array $data=[], $counterName = null, $counterFormat = null) |
|
32 | + public function create(array $data = [], $counterName = null, $counterFormat = null) |
|
33 | 33 | { |
34 | 34 | if (isset($data['counter'])) { |
35 | 35 | $counterName = $data['counter']; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | array('type' => 'Zend\Form\Element\Textarea', |
69 | 69 | 'name' => 'mailConfirmationText', |
70 | 70 | 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
71 | - 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>' )) |
|
71 | + 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>')) |
|
72 | 72 | ); |
73 | 73 | |
74 | 74 | $this->add( |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @var string |
58 | 58 | */ |
59 | - protected $options="Applications/Options"; |
|
59 | + protected $options = "Applications/Options"; |
|
60 | 60 | |
61 | 61 | |
62 | 62 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->setIsDescriptionsEnabled(true) |
78 | 78 | ->setDescription( |
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
81 | 81 | ) |
82 | 82 | ->setParam('return', 'file-uri') |
83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | |
42 | 42 | public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) |
43 | 43 | { |
44 | - $this->repositoryService=$repositoryService; |
|
45 | - $this->auth=$auth; |
|
46 | - $this->acl=$acl; |
|
44 | + $this->repositoryService = $repositoryService; |
|
45 | + $this->auth = $auth; |
|
46 | + $this->acl = $acl; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | public function __invoke() |
@@ -61,12 +61,12 @@ discard block |
||
61 | 61 | public function get(Params $params, $allowDraft = false) |
62 | 62 | { |
63 | 63 | /* @var \Jobs\Repository\Job $jobRepository */ |
64 | - $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
64 | + $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
65 | 65 | $idFromRoute = $params('id', 0); |
66 | 66 | $idFromQuery = $params->fromQuery('id', 0); |
67 | 67 | $idFromSubForm = $params->fromPost('job', 0); |
68 | 68 | |
69 | - $id = empty($idFromRoute)? (empty($idFromQuery)?$idFromSubForm:$idFromQuery) : $idFromRoute; |
|
69 | + $id = empty($idFromRoute) ? (empty($idFromQuery) ? $idFromSubForm : $idFromQuery) : $idFromRoute; |
|
70 | 70 | |
71 | 71 | if (empty($id) && $allowDraft) { |
72 | 72 | $this->acl->__invoke('Jobs/Manage', 'new'); |
@@ -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 |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param string $portal |
84 | 84 | * @param string $status |
85 | 85 | */ |
86 | - public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') |
|
86 | + public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') |
|
87 | 87 | { |
88 | 88 | $this->portal = $portal; |
89 | 89 | $this->status = $status; |