@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | class InviteEmployeeController extends AbstractActionController |
31 | 31 | { |
32 | - protected $repositories; |
|
32 | + protected $repositories; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Invitation first step: Create or find user and send mail. |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | $result = $this->forward()->dispatch('Auth\Controller\Password', array('action' => 'index')); |
104 | 104 | $model = new ViewModel( |
105 | 105 | array( |
106 | - 'organization' => $organization->getOrganizationName()->getName() |
|
107 | - ) |
|
106 | + 'organization' => $organization->getOrganizationName()->getName() |
|
107 | + ) |
|
108 | 108 | ); |
109 | 109 | |
110 | 110 | if (!$result->getVariable('valid', false)) { |
@@ -144,8 +144,8 @@ discard block |
||
144 | 144 | |
145 | 145 | return new ViewModel( |
146 | 146 | array( |
147 | - 'organization' => $organization->getOrganizationName()->getName() |
|
148 | - ) |
|
147 | + 'organization' => $organization->getOrganizationName()->getName() |
|
148 | + ) |
|
149 | 149 | ); |
150 | 150 | } |
151 | 151 | |
@@ -170,20 +170,20 @@ discard block |
||
170 | 170 | return $model; |
171 | 171 | } |
172 | 172 | |
173 | - /** |
|
174 | - * Initialize required used service for this container |
|
175 | - * |
|
176 | - * @param ContainerInterface $container |
|
177 | - */ |
|
173 | + /** |
|
174 | + * Initialize required used service for this container |
|
175 | + * |
|
176 | + * @param ContainerInterface $container |
|
177 | + */ |
|
178 | 178 | public function initContainer(ContainerInterface $container) |
179 | 179 | { |
180 | - $this->repositories = $container->get('repositories'); |
|
180 | + $this->repositories = $container->get('repositories'); |
|
181 | 181 | } |
182 | 182 | |
183 | - static public function factory(ContainerInterface $container) |
|
184 | - { |
|
185 | - $ob = new static(); |
|
186 | - $ob->initContainer($container); |
|
187 | - return $ob; |
|
188 | - } |
|
183 | + static public function factory(ContainerInterface $container) |
|
184 | + { |
|
185 | + $ob = new static(); |
|
186 | + $ob->initContainer($container); |
|
187 | + return $ob; |
|
188 | + } |
|
189 | 189 | } |
@@ -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(); |
@@ -50,9 +50,9 @@ |
||
50 | 50 | 'property' => 'images', |
51 | 51 | 'use_files_array' => true, |
52 | 52 | |
53 | - 'options' => [ |
|
53 | + 'options' => [ |
|
54 | 54 | |
55 | - ] |
|
55 | + ] |
|
56 | 56 | ), |
57 | 57 | |
58 | 58 | 'descriptionForm' => array( |
@@ -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))) { |
@@ -188,12 +188,12 @@ |
||
188 | 188 | public function findLatest($sourceId, $isDraft = false) |
189 | 189 | { |
190 | 190 | return $this->createQueryBuilder() |
191 | - ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
192 | - ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
193 | - ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
194 | - ->limit(1) |
|
195 | - ->getQuery() |
|
196 | - ->getSingleResult(); |
|
191 | + ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
192 | + ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
193 | + ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
194 | + ->limit(1) |
|
195 | + ->getQuery() |
|
196 | + ->getSingleResult(); |
|
197 | 197 | |
198 | 198 | } |
199 | 199 |
@@ -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' => [ |