@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | 'description' => [ |
118 | 118 | 'priority' => '80', |
119 | - 'options' => [ 'label' => /*@translate*/ 'Create job opening' ], |
|
119 | + 'options' => ['label' => /*@translate*/ 'Create job opening'], |
|
120 | 120 | 'property' => true, |
121 | 121 | 'forms' => [ |
122 | 122 | 'descriptionForm' => array( |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | 'preview' => [ |
130 | 130 | 'priority' => 60, |
131 | - 'options' => [ 'label' => /*@translate*/ 'Preview' ], |
|
131 | + 'options' => ['label' => /*@translate*/ 'Preview'], |
|
132 | 132 | 'property' => true, |
133 | 133 | 'forms' => [ |
134 | 134 | 'previewForm' => array( |
@@ -142,13 +142,13 @@ discard block |
||
142 | 142 | |
143 | 143 | $this->setForms($elements); |
144 | 144 | |
145 | - $events = $this->getEventManager(); |
|
145 | + $events = $this->getEventManager(); |
|
146 | 146 | $events->trigger(FormEvent::EVENT_INIT, $this); |
147 | 147 | } |
148 | 148 | |
149 | 149 | public function renderPost(Renderer $renderer) |
150 | 150 | { |
151 | - $coreformsjs = $renderer->basepath('modules/Core/js/core.forms.js'); |
|
151 | + $coreformsjs = $renderer->basepath('modules/Core/js/core.forms.js'); |
|
152 | 152 | $javaScript = <<<JS |
153 | 153 | $(document).ready(function() { |
154 | 154 |
@@ -24,19 +24,19 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->add( |
27 | - array( |
|
28 | - 'type' => 'Core/Spinner-Submit', |
|
29 | - 'name' => 'calculate', |
|
30 | - 'options' => array( |
|
31 | - 'label' => /*@translate*/ 'Calculate price', |
|
32 | - ), |
|
33 | - 'attributes' => array( |
|
34 | - 'id' => 'calculate', |
|
35 | - 'type' => 'button', |
|
36 | - 'value' => 'calculate', |
|
37 | - 'class' => 'mps-calculate btn btn-success btn-xs' |
|
38 | - ), |
|
39 | - ) |
|
27 | + array( |
|
28 | + 'type' => 'Core/Spinner-Submit', |
|
29 | + 'name' => 'calculate', |
|
30 | + 'options' => array( |
|
31 | + 'label' => /*@translate*/ 'Calculate price', |
|
32 | + ), |
|
33 | + 'attributes' => array( |
|
34 | + 'id' => 'calculate', |
|
35 | + 'type' => 'button', |
|
36 | + 'value' => 'calculate', |
|
37 | + 'class' => 'mps-calculate btn btn-success btn-xs' |
|
38 | + ), |
|
39 | + ) |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | parent::init(); |
@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -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 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | $statusStrategy = new ClosureStrategy( |
58 | 58 | /* extract */ |
59 | - function ($object) { |
|
59 | + function($object) { |
|
60 | 60 | return $object->getName(); |
61 | 61 | } |
62 | 62 | ); |
@@ -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; |
@@ -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 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | $object = parent::hydrate($data, $object); |
44 | 44 | /* @var \Organizations\Entity\Template $template */ |
45 | - $template=$object->getOrganization()->getTemplate(); |
|
45 | + $template = $object->getOrganization()->getTemplate(); |
|
46 | 46 | if (isset($data['description-label-requirements'])) { |
47 | 47 | $template->setLabelRequirements($data['description-label-requirements']); |
48 | 48 | } |
@@ -25,8 +25,8 @@ |
||
25 | 25 | class CreateAssertion extends AbstractEventManagerAwareAssertion |
26 | 26 | { |
27 | 27 | protected $identifiers = array( |
28 | - 'Jobs/Acl/Assertions', |
|
29 | - 'Jobs/Acl/Assertion/Create', |
|
28 | + 'Jobs/Acl/Assertions', |
|
29 | + 'Jobs/Acl/Assertion/Create', |
|
30 | 30 | ); |
31 | 31 | |
32 | 32 | protected function preAssert( |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function getConfig() |
40 | 40 | { |
41 | - return ModuleConfigLoader::load(__DIR__ . '/../config'); |
|
41 | + return ModuleConfigLoader::load(__DIR__.'/../config'); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function onBootstrap(MvcEvent $e) |