@@ -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'); |
@@ -26,15 +26,15 @@ |
||
26 | 26 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { |
27 | 27 | |
28 | 28 | /* @var \Jobs\Options\JobboardSearchOptions $options */ |
29 | - $options = $container->get( 'Jobs/JobboardSearchOptions' ); |
|
29 | + $options = $container->get('Jobs/JobboardSearchOptions'); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @var $jobRepository Repository\Job |
33 | 33 | */ |
34 | - $jobRepository = $container->get( 'repositories' )->get( 'Jobs/Job' ); |
|
35 | - $defaultListener = $container->get( 'DefaultListeners' ); |
|
36 | - $imageFileCacheManager = $container->get( 'Organizations\ImageFileCache\Manager' ); |
|
34 | + $jobRepository = $container->get('repositories')->get('Jobs/Job'); |
|
35 | + $defaultListener = $container->get('DefaultListeners'); |
|
36 | + $imageFileCacheManager = $container->get('Organizations\ImageFileCache\Manager'); |
|
37 | 37 | |
38 | - return new JobboardController( $defaultListener, $jobRepository, $imageFileCacheManager, [ 'count' => $options->getPerPage() ] ); |
|
38 | + return new JobboardController($defaultListener, $jobRepository, $imageFileCacheManager, ['count' => $options->getPerPage()]); |
|
39 | 39 | } |
40 | 40 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
67 | 67 | { |
68 | 68 | $factory = $this->getParentFactory(); |
69 | - $select = $factory($container,$requestedName); |
|
69 | + $select = $factory($container, $requestedName); |
|
70 | 70 | $select->setViewPartial('jobs/form/multiposting-checkboxes'); |
71 | 71 | $select->setHeadscripts(array('Jobs/js/form.multiposting-checkboxes.js')); |
72 | 72 | return $select; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function attachDefaultListeners() |
69 | 69 | { |
70 | 70 | parent::attachDefaultListeners(); |
71 | - $events = $this->getEventManager(); |
|
71 | + $events = $this->getEventManager(); |
|
72 | 72 | $this->defaultListener->attach($events); |
73 | 73 | return $this; |
74 | 74 | } |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | $request = $this->getRequest(); |
92 | 92 | $getParams = $request->getQuery(); |
93 | 93 | $routeParams = $this->params()->fromRoute(); |
94 | - if (isset($routeParams['q']) && !isset($getParams['q'])){ |
|
95 | - $getParams['q']=$routeParams['q']; |
|
94 | + if (isset($routeParams['q']) && !isset($getParams['q'])) { |
|
95 | + $getParams['q'] = $routeParams['q']; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | $result = $this->pagination([ |
@@ -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('/Core/js/core.forms.js'); |
|
151 | + $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
152 | 152 | $javaScript = <<<JS |
153 | 153 | $(document).ready(function() { |
154 | 154 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | class UniqueApplyIdFactory implements FactoryInterface |
17 | 17 | { |
18 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
18 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
19 | 19 | { |
20 | 20 | $repositories = $container->get('repositories'); |
21 | 21 | $jobs = $repositories->get('Jobs/Job'); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function extract($value) |
18 | 18 | { |
19 | 19 | $result = null; |
20 | - if (method_exists($value,'getTemplateValues')) { |
|
20 | + if (method_exists($value, 'getTemplateValues')) { |
|
21 | 21 | $result = $value->getTemplateValues()->getTitle(); |
22 | 22 | } |
23 | 23 | return $result; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public function init() |
30 | 30 | { |
31 | - $this->setAttribute('id','customerNoteFieldset'); |
|
31 | + $this->setAttribute('id', 'customerNoteFieldset'); |
|
32 | 32 | $this->setName('customerNote'); |
33 | 33 | $this->add([ |
34 | 34 | 'type' => 'Textarea', |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * for multiple paths. |
32 | 32 | * example https://github.com/doctrine/DoctrineORMModule |
33 | 33 | */ |
34 | - 'paths' => [ __DIR__ . '/../src/Applications/Entity'] |
|
34 | + 'paths' => [__DIR__.'/../src/Applications/Entity'] |
|
35 | 35 | ], |
36 | 36 | ], |
37 | 37 | 'eventmanager' => [ |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | 'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController', |
92 | 92 | ], |
93 | 93 | 'factories' => [ |
94 | - 'Applications/Controller/Manage' => [ManageController::class,'factory'], |
|
95 | - 'Applications\Controller\Apply' => [ApplyController::class,'factory'], |
|
96 | - 'Applications/CommentController' => [CommentController::class,'factory'], |
|
97 | - 'Applications/Console' => [ConsoleController::class,'factory'], |
|
94 | + 'Applications/Controller/Manage' => [ManageController::class, 'factory'], |
|
95 | + 'Applications\Controller\Apply' => [ApplyController::class, 'factory'], |
|
96 | + 'Applications/CommentController' => [CommentController::class, 'factory'], |
|
97 | + 'Applications/Console' => [ConsoleController::class, 'factory'], |
|
98 | 98 | ] |
99 | 99 | ], |
100 | 100 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'translation_file_patterns' => [ |
154 | 154 | [ |
155 | 155 | 'type' => 'gettext', |
156 | - 'base_dir' => __DIR__ . '/../language', |
|
156 | + 'base_dir' => __DIR__.'/../language', |
|
157 | 157 | 'pattern' => '%s.mo', |
158 | 158 | ], |
159 | 159 | ], |
@@ -161,16 +161,16 @@ discard block |
||
161 | 161 | // Configure the view service manager |
162 | 162 | 'view_manager' => [ |
163 | 163 | 'template_path_stack' => [ |
164 | - 'Applications' => __DIR__ . '/../view', |
|
164 | + 'Applications' => __DIR__.'/../view', |
|
165 | 165 | ], |
166 | 166 | 'template_map' => [ |
167 | - 'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml', |
|
168 | - 'layout/apply' => __DIR__ . '/../view/layout/layout.phtml', |
|
169 | - 'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml', |
|
170 | - 'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml', |
|
171 | - 'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml', |
|
172 | - 'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
173 | - 'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
167 | + 'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml', |
|
168 | + 'layout/apply' => __DIR__.'/../view/layout/layout.phtml', |
|
169 | + 'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml', |
|
170 | + 'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml', |
|
171 | + 'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml', |
|
172 | + 'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
173 | + 'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
174 | 174 | ] |
175 | 175 | ], |
176 | 176 | 'view_helpers' => [ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | 'factories' => [ |
241 | 241 | 'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory', |
242 | 242 | Mail\Confirmation::class => Factory\Mail\ConfirmationFactory::class, |
243 | - 'Applications/Forward' => [Forward::class,'factory'], |
|
243 | + 'Applications/Forward' => [Forward::class, 'factory'], |
|
244 | 244 | ], |
245 | 245 | 'aliases' => [ |
246 | 246 | 'Applications/Confirmation' => Mail\Confirmation::class, |