@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | |
53 | 53 | public function __construct($status = self::CREATED) |
54 | 54 | { |
55 | - $constant = 'self::' . strtoupper($status); |
|
55 | + $constant = 'self::'.strtoupper($status); |
|
56 | 56 | if (!defined($constant)) { |
57 | - throw new \DomainException('Unknown status: ' . $status); |
|
57 | + throw new \DomainException('Unknown status: '.$status); |
|
58 | 58 | } |
59 | - $this->name=constant($constant); |
|
60 | - $this->order=$this->getOrder(); |
|
59 | + $this->name = constant($constant); |
|
60 | + $this->order = $this->getOrder(); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function getName() |
68 | 68 | { |
69 | - return isset($this->name)?$this->name:''; |
|
69 | + return isset($this->name) ? $this->name : ''; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -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'); |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | $router = $services->get('Router'); |
35 | 35 | $select = new MultipostingSelect(); |
36 | 36 | $helpers = $services->get('ViewHelperManager'); |
37 | - // $headScript = $helpers->get('headScript'); |
|
38 | - /// $basePath = $helpers->get('basePath'); |
|
37 | + // $headScript = $helpers->get('headScript'); |
|
38 | + /// $basePath = $helpers->get('basePath'); |
|
39 | 39 | $currencyFormat = $helpers->get('currencyFormat'); |
40 | 40 | |
41 | 41 | $channels = $services->get('Jobs/Options/Provider'); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $link = $router->assemble($channel->getParams(), array('name' => $channel->getRoute())); |
57 | 57 | $groups[$category]['options'][$channel->getKey()] = |
58 | - $channel->getLabel() . '|' |
|
58 | + $channel->getLabel() . '|' |
|
59 | 59 | . $channel->getHeadLine() . '|' |
60 | 60 | . $channel->getDescription() . '|' |
61 | 61 | . $channel->getLinkText() . '|' |
@@ -36,7 +36,7 @@ discard block |
||
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 | |
@@ -55,11 +55,11 @@ discard block |
||
55 | 55 | |
56 | 56 | $link = $router->assemble($channel->getParams(), array('name' => $channel->getRoute())); |
57 | 57 | $groups[$category]['options'][$channel->getKey()] = |
58 | - $channel->getLabel() . '|' |
|
59 | - . $channel->getHeadLine() . '|' |
|
60 | - . $channel->getDescription() . '|' |
|
61 | - . $channel->getLinkText() . '|' |
|
62 | - . $link . '|' . $channel->getPublishDuration() . '|' |
|
58 | + $channel->getLabel().'|' |
|
59 | + . $channel->getHeadLine().'|' |
|
60 | + . $channel->getDescription().'|' |
|
61 | + . $channel->getLinkText().'|' |
|
62 | + . $link.'|'.$channel->getPublishDuration().'|' |
|
63 | 63 | . $channel->getLogo(); |
64 | 64 | } |
65 | 65 |