@@ -22,20 +22,20 @@ |
||
22 | 22 | */ |
23 | 23 | class OrganizationsNameFieldsetFactory implements FactoryInterface |
24 | 24 | { |
25 | - /** |
|
26 | - * @param ContainerInterface $container |
|
27 | - * @param string $requestedName |
|
28 | - * @param array|null $options |
|
29 | - * |
|
30 | - * @inheritdoc |
|
31 | - * @return OrganizationsNameFieldset |
|
32 | - */ |
|
33 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
34 | - { |
|
35 | - $fieldset = new OrganizationsNameFieldset($requestedName,$options); |
|
25 | + /** |
|
26 | + * @param ContainerInterface $container |
|
27 | + * @param string $requestedName |
|
28 | + * @param array|null $options |
|
29 | + * |
|
30 | + * @inheritdoc |
|
31 | + * @return OrganizationsNameFieldset |
|
32 | + */ |
|
33 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
34 | + { |
|
35 | + $fieldset = new OrganizationsNameFieldset($requestedName,$options); |
|
36 | 36 | |
37 | - $fieldset->setRepositories($container->get('repositories')); |
|
38 | - return $fieldset; |
|
39 | - } |
|
37 | + $fieldset->setRepositories($container->get('repositories')); |
|
38 | + return $fieldset; |
|
39 | + } |
|
40 | 40 | |
41 | 41 | } |
42 | 42 | \ No newline at end of file |
@@ -56,33 +56,33 @@ |
||
56 | 56 | */ |
57 | 57 | private $repository; |
58 | 58 | |
59 | - /** |
|
60 | - * @var FormElementManagerV3Polyfill |
|
61 | - */ |
|
59 | + /** |
|
60 | + * @var FormElementManagerV3Polyfill |
|
61 | + */ |
|
62 | 62 | private $formManager; |
63 | 63 | |
64 | 64 | private $viewHelper; |
65 | 65 | |
66 | - /** |
|
67 | - * @var TranslatorInterface |
|
68 | - */ |
|
66 | + /** |
|
67 | + * @var TranslatorInterface |
|
68 | + */ |
|
69 | 69 | private $translator; |
70 | 70 | |
71 | - /** |
|
72 | - * Create new controller instance |
|
73 | - * |
|
74 | - * @param Form\Organizations $form |
|
75 | - * @param Repository\Organization $repository |
|
76 | - * @param TranslatorInterface $translator |
|
77 | - * @param $formManager |
|
78 | - * @param $viewHelper |
|
79 | - */ |
|
71 | + /** |
|
72 | + * Create new controller instance |
|
73 | + * |
|
74 | + * @param Form\Organizations $form |
|
75 | + * @param Repository\Organization $repository |
|
76 | + * @param TranslatorInterface $translator |
|
77 | + * @param $formManager |
|
78 | + * @param $viewHelper |
|
79 | + */ |
|
80 | 80 | public function __construct( |
81 | - Form\Organizations $form, |
|
82 | - Repository\Organization $repository, |
|
83 | - TranslatorInterface $translator, |
|
84 | - $formManager, |
|
85 | - $viewHelper |
|
81 | + Form\Organizations $form, |
|
82 | + Repository\Organization $repository, |
|
83 | + TranslatorInterface $translator, |
|
84 | + $formManager, |
|
85 | + $viewHelper |
|
86 | 86 | ) |
87 | 87 | { |
88 | 88 | $this->repository = $repository; |
@@ -24,31 +24,31 @@ |
||
24 | 24 | class OrganizationsNameFieldset extends Fieldset |
25 | 25 | { |
26 | 26 | |
27 | - /** |
|
28 | - * @var RepositoryService |
|
29 | - */ |
|
30 | - private $repositories; |
|
27 | + /** |
|
28 | + * @var RepositoryService |
|
29 | + */ |
|
30 | + private $repositories; |
|
31 | 31 | |
32 | - /** |
|
33 | - * @return RepositoryService |
|
34 | - */ |
|
35 | - public function getRepositories() |
|
36 | - { |
|
37 | - return $this->repositories; |
|
38 | - } |
|
32 | + /** |
|
33 | + * @return RepositoryService |
|
34 | + */ |
|
35 | + public function getRepositories() |
|
36 | + { |
|
37 | + return $this->repositories; |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * @param RepositoryService $repositories |
|
42 | - */ |
|
43 | - public function setRepositories( $repositories ) |
|
44 | - { |
|
45 | - $this->repositories = $repositories; |
|
46 | - } |
|
40 | + /** |
|
41 | + * @param RepositoryService $repositories |
|
42 | + */ |
|
43 | + public function setRepositories( $repositories ) |
|
44 | + { |
|
45 | + $this->repositories = $repositories; |
|
46 | + } |
|
47 | 47 | |
48 | - public function getHydrator() |
|
48 | + public function getHydrator() |
|
49 | 49 | { |
50 | 50 | if (!$this->hydrator) { |
51 | - /* @var $formElementManager FormElementManagerV3Polyfill */ |
|
51 | + /* @var $formElementManager FormElementManagerV3Polyfill */ |
|
52 | 52 | $hydrator = new EntityHydrator(); |
53 | 53 | $formFactory = $this->getFormFactory(); |
54 | 54 | $formElementManager = $formFactory->getFormElementManager(); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | /* @var $serviceLocator \Core\Mail\MailService */ |
49 | 49 | /* @var $owner \Auth\Entity\UserInterface */ |
50 | 50 | /* @var $user \Auth\Entity\UserInterface */ |
51 | - $this->setCreationOptions($options); |
|
51 | + $this->setCreationOptions($options); |
|
52 | 52 | $auth = $container->get('AuthenticationService'); |
53 | 53 | $router = $container->get('Router'); |
54 | 54 |
@@ -62,10 +62,10 @@ |
||
62 | 62 | |
63 | 63 | public function query($term, array $params = []) |
64 | 64 | { |
65 | - /* @TODO: [ZF3] overriding $term value because it always returns null */ |
|
66 | - if(is_null($term)){ |
|
67 | - $term = $_REQUEST['q']; |
|
68 | - } |
|
65 | + /* @TODO: [ZF3] overriding $term value because it always returns null */ |
|
66 | + if(is_null($term)){ |
|
67 | + $term = $_REQUEST['q']; |
|
68 | + } |
|
69 | 69 | $cacheId = md5($term); |
70 | 70 | |
71 | 71 | if ($this->cache && ($result = $this->cache->getItem($cacheId))) { |
@@ -138,14 +138,14 @@ |
||
138 | 138 | if (!$this->test($resource, $privilege)) { |
139 | 139 | $msg = null === $privilege |
140 | 140 | ? sprintf( |
141 | - 'You are not allowed to access resource "%s"', |
|
142 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | - ) |
|
141 | + 'You are not allowed to access resource "%s"', |
|
142 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | + ) |
|
144 | 144 | : sprintf( |
145 | - 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | - $privilege, |
|
147 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | - ); |
|
145 | + 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | + $privilege, |
|
147 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | + ); |
|
149 | 149 | |
150 | 150 | if ($resource instanceof FileInterface && 0 == strpos($resource->getType(), 'image/')) { |
151 | 151 | throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg)); |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | ], |
275 | 275 | 'factories' => [ |
276 | 276 | 'Jobs/Import' => [ Controller\ImportController::class, 'factory'], |
277 | - 'Jobs/Console' => [ConsoleController::class,'factory'], |
|
278 | - 'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'], |
|
279 | - 'Jobs/Admin' => [AdminController::class,'factory'], |
|
277 | + 'Jobs/Console' => [ConsoleController::class,'factory'], |
|
278 | + 'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'], |
|
279 | + 'Jobs/Admin' => [AdminController::class,'factory'], |
|
280 | 280 | 'Jobs/Template' => 'Jobs\Factory\Controller\TemplateControllerFactory', |
281 | 281 | 'Jobs/Index' => 'Jobs\Factory\Controller\IndexControllerFactory', |
282 | 282 | 'Jobs/Approval' => 'Jobs\Factory\Controller\ApprovalControllerFactory', |
@@ -428,15 +428,15 @@ discard block |
||
428 | 428 | 'invokables' => [ |
429 | 429 | 'Jobs/Location/New' => 'Jobs\Form\InputFilter\JobLocationNew', |
430 | 430 | //'Jobs/Location/Edit' => 'Jobs\Form\InputFilter\JobLocationEdit', |
431 | - JobLocationEdit::class => JobLocationEdit::class, |
|
431 | + JobLocationEdit::class => JobLocationEdit::class, |
|
432 | 432 | 'Jobs/Company' => 'Jobs\Form\InputFilter\CompanyName', |
433 | 433 | ], |
434 | 434 | 'factories' => [ |
435 | 435 | 'Jobs/AtsMode' => 'Jobs\Factory\Form\InputFilter\AtsModeFactory', |
436 | 436 | ], |
437 | - 'aliases' => [ |
|
438 | - 'Jobs/Location/Edit' => JobLocationEdit::class |
|
439 | - ] |
|
437 | + 'aliases' => [ |
|
438 | + 'Jobs/Location/Edit' => JobLocationEdit::class |
|
439 | + ] |
|
440 | 440 | ], |
441 | 441 | |
442 | 442 | 'filters' => [ |
@@ -191,9 +191,9 @@ |
||
191 | 191 | $location = new Location(); |
192 | 192 | $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']); |
193 | 193 | $location->setCountry($locData['country']) |
194 | - ->setRegion($locData['region']) |
|
195 | - ->setCity($locData['city']) |
|
196 | - ->setCoordinates(new Point($coords)); |
|
194 | + ->setRegion($locData['region']) |
|
195 | + ->setCity($locData['city']) |
|
196 | + ->setCoordinates(new Point($coords)); |
|
197 | 197 | |
198 | 198 | $jobLocations->add($location); |
199 | 199 | } |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | $content = $this->renderElements($form, $colMap, $buttonsSpan); |
68 | 68 | |
69 | 69 | return $this->openTag($form) |
70 | - . '<div class="row" style="padding: 0 15px;">' |
|
71 | - . $content . '</div>' . $this->closeTag(); |
|
70 | + . '<div class="row" style="padding: 0 15px;">' |
|
71 | + . $content . '</div>' . $this->closeTag(); |
|
72 | 72 | |
73 | 73 | } |
74 | 74 | |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | $attrs = $helper->createAttributesString($button->getAttributes()); |
83 | 83 | |
84 | 84 | $content.= '<button ' . $attrs . '>' |
85 | - . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
86 | - . '</button>'; |
|
85 | + . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
86 | + . '</button>'; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | return $content; |
@@ -120,15 +120,15 @@ discard block |
||
120 | 120 | |
121 | 121 | if ($element->getName() == $form->getButtonElement()) { |
122 | 122 | $content.='<div class="input-group col-md-' . $cols . '">' |
123 | - . $formElement($element) |
|
124 | - . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
125 | - . $this->renderButtons($form->getButtons()) . '</div>' |
|
126 | - . '</div>'; |
|
123 | + . $formElement($element) |
|
124 | + . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
125 | + . $this->renderButtons($form->getButtons()) . '</div>' |
|
126 | + . '</div>'; |
|
127 | 127 | $buttonsRendered = true; |
128 | 128 | } else { |
129 | 129 | $content .= '<div class="input-group col-md-' . $cols . '">' |
130 | - . $formElement($element) |
|
131 | - . '</div>'; |
|
130 | + . $formElement($element) |
|
131 | + . '</div>'; |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | $i += 1; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $buttonsSpan = $form->getOption('buttons_span') ?: 12; |
140 | 140 | } |
141 | 141 | $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
142 | - . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
142 | + . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | return $content; |