@@ -33,6 +33,6 @@ |
||
33 | 33 | $viewHelper = $container->get('ViewHelperManager'); |
34 | 34 | $translator = $container->get('translator'); |
35 | 35 | |
36 | - return new IndexController($form, $organizationRepository,$translator,$formManager,$viewHelper); |
|
36 | + return new IndexController($form, $organizationRepository, $translator, $formManager, $viewHelper); |
|
37 | 37 | } |
38 | 38 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
28 | 28 | { |
29 | - // @TODO: [ZF3] Check if InvitationHandlerFactory still working properly |
|
29 | + // @TODO: [ZF3] Check if InvitationHandlerFactory still working properly |
|
30 | 30 | |
31 | 31 | /* @var $container \Zend\Mvc\Controller\PluginManager */ |
32 | 32 | $validator = $container->get('ValidatorManager')->get('EmailAddress'); |
@@ -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 |
@@ -30,9 +30,9 @@ |
||
30 | 30 | * @inheritdoc |
31 | 31 | * @return OrganizationsNameFieldset |
32 | 32 | */ |
33 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
33 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
34 | 34 | { |
35 | - $fieldset = new OrganizationsNameFieldset($requestedName,$options); |
|
35 | + $fieldset = new OrganizationsNameFieldset($requestedName, $options); |
|
36 | 36 | |
37 | 37 | $fieldset->setRepositories($container->get('repositories')); |
38 | 38 | return $fieldset; |
@@ -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(); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * @param RepositoryService $repositories |
42 | 42 | */ |
43 | - public function setRepositories( $repositories ) |
|
43 | + public function setRepositories($repositories) |
|
44 | 44 | { |
45 | 45 | $this->repositories = $repositories; |
46 | 46 | } |
@@ -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 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * @return void |
108 | 108 | * @throws \InvalidArgumentException |
109 | 109 | */ |
110 | - public function setCreationOptions(array $options=null) |
|
110 | + public function setCreationOptions(array $options = null) |
|
111 | 111 | { |
112 | 112 | if (!isset($options['user']) || !$options['user'] instanceof UserInterface) { |
113 | 113 | throw new \InvalidArgumentException('An user interface is required!'); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | public function setBirthDay($birthDay) |
140 | 140 | { |
141 | - $this->birthDay=$birthDay; |
|
141 | + $this->birthDay = $birthDay; |
|
142 | 142 | return $this; |
143 | 143 | } |
144 | 144 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function setBirthMonth($birthMonth) |
161 | 161 | { |
162 | - $this->birthMonth=$birthMonth; |
|
162 | + $this->birthMonth = $birthMonth; |
|
163 | 163 | return $this; |
164 | 164 | } |
165 | 165 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function setBirthYear($birthYear) |
182 | 182 | { |
183 | - $this->birthYear=$birthYear; |
|
183 | + $this->birthYear = $birthYear; |
|
184 | 184 | return $this; |
185 | 185 | } |
186 | 186 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | public function setEmail($email) |
203 | 203 | { |
204 | - $this->email = trim((String)$email); |
|
204 | + $this->email = trim((String) $email); |
|
205 | 205 | return $this; |
206 | 206 | } |
207 | 207 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | */ |
245 | 245 | public function setFirstName($firstName) |
246 | 246 | { |
247 | - $this->firstName = trim((String)$firstName); |
|
247 | + $this->firstName = trim((String) $firstName); |
|
248 | 248 | return $this; |
249 | 249 | } |
250 | 250 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | */ |
267 | 267 | public function setGender($gender) |
268 | 268 | { |
269 | - $this->gender = trim((String)$gender); |
|
269 | + $this->gender = trim((String) $gender); |
|
270 | 270 | return $this; |
271 | 271 | } |
272 | 272 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | public function setHouseNumber($houseNumber) |
289 | 289 | { |
290 | - $this->houseNumber=$houseNumber; |
|
290 | + $this->houseNumber = $houseNumber; |
|
291 | 291 | return $this; |
292 | 292 | } |
293 | 293 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | if (!$this->lastName) { |
333 | 333 | return $emailIfEmpty ? $this->email : ''; |
334 | 334 | } |
335 | - return ($this->firstName ? $this->firstName . ' ' : '') . $this->lastName; |
|
335 | + return ($this->firstName ? $this->firstName.' ' : '').$this->lastName; |
|
336 | 336 | } |
337 | 337 | |
338 | 338 | /** |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | */ |
427 | 427 | public function setStreet($street) |
428 | 428 | { |
429 | - $this->street=$street; |
|
429 | + $this->street = $street; |
|
430 | 430 | return $this; |
431 | 431 | } |
432 | 432 | |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | */ |
448 | 448 | public function setCountry($country) |
449 | 449 | { |
450 | - $this->country=$country; |
|
450 | + $this->country = $country; |
|
451 | 451 | return $this; |
452 | 452 | } |
453 | 453 |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function setHouseNumber($houseNumber = "") |
88 | 88 | { |
89 | - $this->houseNumber=$houseNumber; |
|
89 | + $this->houseNumber = $houseNumber; |
|
90 | 90 | return $this; |
91 | 91 | } |
92 | 92 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | public function setStreet($street = "") |
154 | 154 | { |
155 | - $this->street=$street; |
|
155 | + $this->street = $street; |
|
156 | 156 | return $this; |
157 | 157 | } |
158 | 158 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | */ |
175 | 175 | public function setCountry($country = "") |
176 | 176 | { |
177 | - $this->country=$country; |
|
177 | + $this->country = $country; |
|
178 | 178 | return $this; |
179 | 179 | } |
180 | 180 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public function setPhone($phone = "") |
201 | 201 | { |
202 | - $this->phone=$phone; |
|
202 | + $this->phone = $phone; |
|
203 | 203 | return $this; |
204 | 204 | } |
205 | 205 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | public function setFax($fax = "") |
224 | 224 | { |
225 | - $this->fax=$fax; |
|
225 | + $this->fax = $fax; |
|
226 | 226 | return $this; |
227 | 227 | } |
228 | 228 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | $method = 'iSave'.$type; |
73 | 73 | if(method_exists($this,$method)){ |
74 | 74 | call_user_func([$this,$method]); |
75 | - }else{ |
|
75 | + } else{ |
|
76 | 76 | $locator = $this->elementMap[$type].'-buttons-submit'; |
77 | 77 | $this->coreContext->scrollIntoView($locator); |
78 | 78 | $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
@@ -15,112 +15,112 @@ |
||
15 | 15 | |
16 | 16 | class SummaryFormContext implements Context |
17 | 17 | { |
18 | - use CommonContextTrait; |
|
18 | + use CommonContextTrait; |
|
19 | 19 | |
20 | - private $elementMap = array( |
|
21 | - 'name' => '#sf-nameForm', |
|
22 | - 'location' => '#sf-locationForm', |
|
23 | - 'employees' => '#sf-employeesManagement', |
|
24 | - 'workflow' => '#sf-workflowSettings', |
|
25 | - 'jobTitleAndLocation' => '#general-locationForm', |
|
26 | - 'jobClassification' => '#sf-general-classifications', |
|
27 | - 'customerNote' => '#sf-general-customerNote', |
|
28 | - 'personalInformations' => '#sf-contact-contact', |
|
29 | - 'resumePersonalInformations' => '#sf-contact', |
|
30 | - ); |
|
20 | + private $elementMap = array( |
|
21 | + 'name' => '#sf-nameForm', |
|
22 | + 'location' => '#sf-locationForm', |
|
23 | + 'employees' => '#sf-employeesManagement', |
|
24 | + 'workflow' => '#sf-workflowSettings', |
|
25 | + 'jobTitleAndLocation' => '#general-locationForm', |
|
26 | + 'jobClassification' => '#sf-general-classifications', |
|
27 | + 'customerNote' => '#sf-general-customerNote', |
|
28 | + 'personalInformations' => '#sf-contact-contact', |
|
29 | + 'resumePersonalInformations' => '#sf-contact', |
|
30 | + ); |
|
31 | 31 | |
32 | - /** |
|
33 | - * @When I click edit on :name form |
|
34 | - * @TODO: [ZF3] move this method to CoreContext |
|
35 | - */ |
|
36 | - public function iClickEditOnForm($name) |
|
37 | - { |
|
38 | - $this->iClickForm($name); |
|
39 | - $name = Inflector::camelize($name); |
|
40 | - $type = $this->elementMap[$name]; |
|
41 | - $locator = $type.' .sf-summary .sf-controls button'; |
|
42 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
43 | - if(!$element){ |
|
44 | - throw new \Exception('No element found with this locator: "'.$locator.'"'); |
|
45 | - } |
|
46 | - $element->click(); |
|
47 | - } |
|
32 | + /** |
|
33 | + * @When I click edit on :name form |
|
34 | + * @TODO: [ZF3] move this method to CoreContext |
|
35 | + */ |
|
36 | + public function iClickEditOnForm($name) |
|
37 | + { |
|
38 | + $this->iClickForm($name); |
|
39 | + $name = Inflector::camelize($name); |
|
40 | + $type = $this->elementMap[$name]; |
|
41 | + $locator = $type.' .sf-summary .sf-controls button'; |
|
42 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
43 | + if(!$element){ |
|
44 | + throw new \Exception('No element found with this locator: "'.$locator.'"'); |
|
45 | + } |
|
46 | + $element->click(); |
|
47 | + } |
|
48 | 48 | |
49 | - /** |
|
50 | - * @When I click :form form |
|
51 | - */ |
|
52 | - public function iClickForm($name) |
|
53 | - { |
|
54 | - $name = Inflector::camelize($name); |
|
55 | - $type = $this->elementMap[$name]; |
|
56 | - $locator = $type.' .sf-summary'; |
|
57 | - $session = $this->minkContext->getSession(); |
|
58 | - $script = <<<EOC |
|
49 | + /** |
|
50 | + * @When I click :form form |
|
51 | + */ |
|
52 | + public function iClickForm($name) |
|
53 | + { |
|
54 | + $name = Inflector::camelize($name); |
|
55 | + $type = $this->elementMap[$name]; |
|
56 | + $locator = $type.' .sf-summary'; |
|
57 | + $session = $this->minkContext->getSession(); |
|
58 | + $script = <<<EOC |
|
59 | 59 | var tElement = jQuery("$locator .sf-controls"); |
60 | 60 | tElement.css('display','block'); |
61 | 61 | tElement.css('visibility','visible'); |
62 | 62 | EOC; |
63 | - $session->executeScript($script); |
|
64 | - } |
|
63 | + $session->executeScript($script); |
|
64 | + } |
|
65 | 65 | |
66 | - /** |
|
67 | - * @When I save :type form |
|
68 | - */ |
|
69 | - public function iSaveForm($type) |
|
70 | - { |
|
71 | - $type = Inflector::camelize($type); |
|
72 | - $method = 'iSave'.$type; |
|
73 | - if(method_exists($this,$method)){ |
|
74 | - call_user_func([$this,$method]); |
|
75 | - }else{ |
|
76 | - $locator = $this->elementMap[$type].'-buttons-submit'; |
|
77 | - $this->coreContext->scrollIntoView($locator); |
|
78 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
79 | - $element->click(); |
|
80 | - } |
|
81 | - } |
|
66 | + /** |
|
67 | + * @When I save :type form |
|
68 | + */ |
|
69 | + public function iSaveForm($type) |
|
70 | + { |
|
71 | + $type = Inflector::camelize($type); |
|
72 | + $method = 'iSave'.$type; |
|
73 | + if(method_exists($this,$method)){ |
|
74 | + call_user_func([$this,$method]); |
|
75 | + }else{ |
|
76 | + $locator = $this->elementMap[$type].'-buttons-submit'; |
|
77 | + $this->coreContext->scrollIntoView($locator); |
|
78 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
79 | + $element->click(); |
|
80 | + } |
|
81 | + } |
|
82 | 82 | |
83 | - public function iSaveOrganizationName() |
|
84 | - { |
|
85 | - $locator = '#nameForm-buttons-submit'; |
|
86 | - $this->coreContext->scrollIntoView($locator); |
|
87 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
88 | - $element->click(); |
|
89 | - } |
|
83 | + public function iSaveOrganizationName() |
|
84 | + { |
|
85 | + $locator = '#nameForm-buttons-submit'; |
|
86 | + $this->coreContext->scrollIntoView($locator); |
|
87 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
88 | + $element->click(); |
|
89 | + } |
|
90 | 90 | |
91 | - /** |
|
92 | - * Saving organization workflow |
|
93 | - */ |
|
94 | - public function iSaveWorkflow() |
|
95 | - { |
|
96 | - $locator = '#workflowSettings-buttons-submit'; |
|
97 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
98 | - $element->click(); |
|
99 | - } |
|
91 | + /** |
|
92 | + * Saving organization workflow |
|
93 | + */ |
|
94 | + public function iSaveWorkflow() |
|
95 | + { |
|
96 | + $locator = '#workflowSettings-buttons-submit'; |
|
97 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
98 | + $element->click(); |
|
99 | + } |
|
100 | 100 | |
101 | - public function iSaveOrganizationLocation() |
|
102 | - { |
|
103 | - $locator = '#locationForm-buttons-submit'; |
|
104 | - $this->coreContext->scrollIntoView($locator); |
|
105 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
106 | - $element->click(); |
|
107 | - } |
|
101 | + public function iSaveOrganizationLocation() |
|
102 | + { |
|
103 | + $locator = '#locationForm-buttons-submit'; |
|
104 | + $this->coreContext->scrollIntoView($locator); |
|
105 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
106 | + $element->click(); |
|
107 | + } |
|
108 | 108 | |
109 | 109 | |
110 | - public function iSaveJobClassification() |
|
111 | - { |
|
112 | - $locator = '#general-classifications-buttons-submit'; |
|
113 | - $this->coreContext->scrollIntoView($locator); |
|
114 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
115 | - $element->click(); |
|
116 | - } |
|
110 | + public function iSaveJobClassification() |
|
111 | + { |
|
112 | + $locator = '#general-classifications-buttons-submit'; |
|
113 | + $this->coreContext->scrollIntoView($locator); |
|
114 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
115 | + $element->click(); |
|
116 | + } |
|
117 | 117 | |
118 | - public function iSaveCustomerNote() |
|
119 | - { |
|
120 | - $locator = '#general-customerNote-buttons-submit'; |
|
121 | - $this->coreContext->scrollIntoView('#sf-general-customerNote'); |
|
122 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
123 | - $element->click(); |
|
124 | - } |
|
118 | + public function iSaveCustomerNote() |
|
119 | + { |
|
120 | + $locator = '#general-customerNote-buttons-submit'; |
|
121 | + $this->coreContext->scrollIntoView('#sf-general-customerNote'); |
|
122 | + $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
123 | + $element->click(); |
|
124 | + } |
|
125 | 125 | |
126 | 126 | } |
127 | 127 | \ No newline at end of file |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | $name = Inflector::camelize($name); |
40 | 40 | $type = $this->elementMap[$name]; |
41 | 41 | $locator = $type.' .sf-summary .sf-controls button'; |
42 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
43 | - if(!$element){ |
|
42 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
43 | + if (!$element) { |
|
44 | 44 | throw new \Exception('No element found with this locator: "'.$locator.'"'); |
45 | 45 | } |
46 | 46 | $element->click(); |
@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | { |
71 | 71 | $type = Inflector::camelize($type); |
72 | 72 | $method = 'iSave'.$type; |
73 | - if(method_exists($this,$method)){ |
|
74 | - call_user_func([$this,$method]); |
|
75 | - }else{ |
|
73 | + if (method_exists($this, $method)) { |
|
74 | + call_user_func([$this, $method]); |
|
75 | + } else { |
|
76 | 76 | $locator = $this->elementMap[$type].'-buttons-submit'; |
77 | 77 | $this->coreContext->scrollIntoView($locator); |
78 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
78 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
79 | 79 | $element->click(); |
80 | 80 | } |
81 | 81 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | $locator = '#nameForm-buttons-submit'; |
86 | 86 | $this->coreContext->scrollIntoView($locator); |
87 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
87 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
88 | 88 | $element->click(); |
89 | 89 | } |
90 | 90 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | public function iSaveWorkflow() |
95 | 95 | { |
96 | 96 | $locator = '#workflowSettings-buttons-submit'; |
97 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
97 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
98 | 98 | $element->click(); |
99 | 99 | } |
100 | 100 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | $locator = '#locationForm-buttons-submit'; |
104 | 104 | $this->coreContext->scrollIntoView($locator); |
105 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
105 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
106 | 106 | $element->click(); |
107 | 107 | } |
108 | 108 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $locator = '#general-classifications-buttons-submit'; |
113 | 113 | $this->coreContext->scrollIntoView($locator); |
114 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
114 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
115 | 115 | $element->click(); |
116 | 116 | } |
117 | 117 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | { |
120 | 120 | $locator = '#general-customerNote-buttons-submit'; |
121 | 121 | $this->coreContext->scrollIntoView('#sf-general-customerNote'); |
122 | - $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
|
122 | + $element = $this->minkContext->getSession()->getPage()->find('css', $locator); |
|
123 | 123 | $element->click(); |
124 | 124 | } |
125 | 125 |
@@ -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' => [ |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * for multiple paths. |
22 | 22 | * example https://github.com/doctrine/DoctrineORMModule |
23 | 23 | */ |
24 | - 'paths' => [ __DIR__ . '/../src/Jobs/Entity'], |
|
24 | + 'paths' => [__DIR__.'/../src/Jobs/Entity'], |
|
25 | 25 | ], |
26 | 26 | ], |
27 | 27 | 'eventmanager' => [ |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | ], |
35 | 35 | |
36 | 36 | 'options' => [ |
37 | - 'Jobs/JobboardSearchOptions' => [ 'class' => '\Jobs\Options\JobboardSearchOptions' ], |
|
38 | - 'Jobs/BaseFieldsetOptions' => [ 'class' => '\Jobs\Options\BaseFieldsetOptions' ], |
|
37 | + 'Jobs/JobboardSearchOptions' => ['class' => '\Jobs\Options\JobboardSearchOptions'], |
|
38 | + 'Jobs/BaseFieldsetOptions' => ['class' => '\Jobs\Options\BaseFieldsetOptions'], |
|
39 | 39 | ], |
40 | 40 | |
41 | 41 | 'Jobs' => [ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | 'translation_file_patterns' => [ |
58 | 58 | [ |
59 | 59 | 'type' => 'gettext', |
60 | - 'base_dir' => __DIR__ . '/../language', |
|
60 | + 'base_dir' => __DIR__.'/../language', |
|
61 | 61 | 'pattern' => '%s.mo', |
62 | 62 | ], |
63 | 63 | ], |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'Jobboard', |
98 | 98 | 'Jobs/Jobboard', |
99 | 99 | 'Jobs/ApiJobListByChannel', |
100 | - 'Jobs/Template' => [ 'view', 'edittemplate' ], |
|
100 | + 'Jobs/Template' => ['view', 'edittemplate'], |
|
101 | 101 | 'Jobs/Manage' => [ |
102 | 102 | 'template', |
103 | 103 | ], |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | 'Jobs/Listener/AdminWidgetProvider' => 'Jobs\Factory\Listener\AdminWidgetProviderFactory', |
223 | 223 | 'Jobs/ViewModelTemplateFilter' => 'Jobs\Factory\Filter\ViewModelTemplateFilterFactory', |
224 | 224 | 'Jobs\Model\ApiJobDehydrator' => 'Jobs\Factory\Model\ApiJobDehydratorFactory', |
225 | - 'Jobs/Listener/Publisher' => [Publisher::class,'factory'], |
|
225 | + 'Jobs/Listener/Publisher' => [Publisher::class, 'factory'], |
|
226 | 226 | 'Jobs/PreviewLinkHydrator' => 'Jobs\Form\Hydrator\PreviewLinkHydrator::factory', |
227 | 227 | 'Jobs\Auth\Dependency\ListListener' => 'Jobs\Factory\Auth\Dependency\ListListenerFactory', |
228 | 228 | 'Jobs/DefaultCategoriesBuilder' => 'Jobs\Factory\Repository\DefaultCategoriesBuilderFactory', |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | |
240 | 240 | |
241 | 241 | 'event_manager' => [ |
242 | - 'Core/AdminController/Events' => [ 'listeners' => [ |
|
242 | + 'Core/AdminController/Events' => ['listeners' => [ |
|
243 | 243 | 'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD, |
244 | 244 | ]], |
245 | 245 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | 'Core/Ajax/Events' => ['listeners' => [ |
262 | 262 | \Jobs\Listener\DeleteJob::class => ['jobs.delete', true], |
263 | 263 | \Jobs\Listener\GetOrganizationManagers::class => ['jobs.manager-select', true], |
264 | - \Jobs\Listener\LoadActiveOrganizations::class => [ 'jobs.admin.activeorganizations', true], |
|
264 | + \Jobs\Listener\LoadActiveOrganizations::class => ['jobs.admin.activeorganizations', true], |
|
265 | 265 | |
266 | 266 | ]], |
267 | 267 | ], |
@@ -273,10 +273,10 @@ discard block |
||
273 | 273 | 'Jobs/ApiJobListByChannel' => 'Jobs\Controller\ApiJobListByChannelController', |
274 | 274 | ], |
275 | 275 | 'factories' => [ |
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'], |
|
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'], |
|
280 | 280 | 'Jobs/Template' => 'Jobs\Factory\Controller\TemplateControllerFactory', |
281 | 281 | 'Jobs/Index' => 'Jobs\Factory\Controller\IndexControllerFactory', |
282 | 282 | 'Jobs/Approval' => 'Jobs\Factory\Controller\ApprovalControllerFactory', |
@@ -309,41 +309,41 @@ discard block |
||
309 | 309 | 'view_manager' => [ |
310 | 310 | // Map template to files. Speeds up the lookup through the template stack. |
311 | 311 | 'template_map' => [ |
312 | - 'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml', |
|
313 | - 'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml', |
|
314 | - 'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml', |
|
315 | - 'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml', |
|
316 | - 'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml', |
|
317 | - 'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml', |
|
318 | - 'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml', |
|
319 | - 'jobs/form/company-name-fieldset' => __DIR__ . '/../view/form/company-name-fieldset.phtml', |
|
320 | - 'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml', |
|
321 | - 'jobs/form/customer-note' => __DIR__ . '/../view/form/customer-note.phtml', |
|
322 | - 'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml', |
|
323 | - 'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml', |
|
324 | - 'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml', |
|
325 | - 'jobs/history' => __DIR__ . '/../view/partials/history.phtml', |
|
326 | - 'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml', |
|
327 | - 'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml', |
|
328 | - 'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml', |
|
329 | - 'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml', |
|
330 | - 'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml', |
|
331 | - 'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml', |
|
332 | - 'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml', |
|
333 | - 'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml', |
|
334 | - 'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml', |
|
335 | - 'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml', |
|
336 | - 'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml', |
|
337 | - 'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml', |
|
338 | - 'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml', |
|
339 | - 'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml', |
|
340 | - 'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
341 | - 'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml', |
|
312 | + 'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml', |
|
313 | + 'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml', |
|
314 | + 'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml', |
|
315 | + 'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml', |
|
316 | + 'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml', |
|
317 | + 'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml', |
|
318 | + 'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml', |
|
319 | + 'jobs/form/company-name-fieldset' => __DIR__.'/../view/form/company-name-fieldset.phtml', |
|
320 | + 'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml', |
|
321 | + 'jobs/form/customer-note' => __DIR__.'/../view/form/customer-note.phtml', |
|
322 | + 'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml', |
|
323 | + 'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml', |
|
324 | + 'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml', |
|
325 | + 'jobs/history' => __DIR__.'/../view/partials/history.phtml', |
|
326 | + 'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml', |
|
327 | + 'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml', |
|
328 | + 'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml', |
|
329 | + 'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml', |
|
330 | + 'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml', |
|
331 | + 'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml', |
|
332 | + 'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml', |
|
333 | + 'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml', |
|
334 | + 'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml', |
|
335 | + 'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml', |
|
336 | + 'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml', |
|
337 | + 'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml', |
|
338 | + 'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml', |
|
339 | + 'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml', |
|
340 | + 'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
341 | + 'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml', |
|
342 | 342 | ], |
343 | 343 | |
344 | 344 | // Where to look for view templates not mapped above |
345 | 345 | 'template_path_stack' => [ |
346 | - __DIR__ . '/../view', |
|
346 | + __DIR__.'/../view', |
|
347 | 347 | ], |
348 | 348 | ], |
349 | 349 |