@@ -34,10 +34,10 @@ |
||
34 | 34 | */ |
35 | 35 | public function filter($value) |
36 | 36 | { |
37 | - if (!$value instanceof Job){ |
|
37 | + if (!$value instanceof Job) { |
|
38 | 38 | |
39 | 39 | } |
40 | - $reciptients=[]; |
|
40 | + $reciptients = []; |
|
41 | 41 | |
42 | 42 | return $reciptients; |
43 | 43 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * map label of fieldset. You can set the order by using an array [<label>,<priority>] |
25 | 25 | */ |
26 | 26 | protected $labelMap = [ |
27 | - 'name' => [ /*@translate*/ 'Contact Person', -20], |
|
27 | + 'name' => [/*@translate*/ 'Contact Person', -20], |
|
28 | 28 | 'company' => /*@translate*/ 'Company', |
29 | 29 | 'street' => /*@translate*/ 'Street', |
30 | 30 | 'zipCode' => /*@translate*/ 'Postalcode', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'attributes' => [ |
55 | 55 | 'data-placeholder' => /*@translate*/ 'please select', |
56 | 56 | 'data-allowclear' => 'false', |
57 | - 'data-searchbox' => -1, // hide the search box |
|
57 | + 'data-searchbox' => -1, // hide the search box |
|
58 | 58 | 'required' => true, // mark label as required |
59 | 59 | ], |
60 | 60 | ], |
@@ -61,14 +61,14 @@ |
||
61 | 61 | return $this->useDefaultValidation ? \Zend\Form\Form::isValid() : parent::isValid(); |
62 | 62 | } |
63 | 63 | |
64 | - /** |
|
65 | - * @param bool $bool |
|
66 | - * @return SocialProfiles |
|
67 | - */ |
|
68 | - public function setUseDefaultValidation($bool) |
|
69 | - { |
|
70 | - $this->useDefaultValidation = (bool)$bool; |
|
64 | + /** |
|
65 | + * @param bool $bool |
|
66 | + * @return SocialProfiles |
|
67 | + */ |
|
68 | + public function setUseDefaultValidation($bool) |
|
69 | + { |
|
70 | + $this->useDefaultValidation = (bool)$bool; |
|
71 | 71 | |
72 | - return $this; |
|
73 | - } |
|
72 | + return $this; |
|
73 | + } |
|
74 | 74 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function setUseDefaultValidation($bool) |
69 | 69 | { |
70 | - $this->useDefaultValidation = (bool)$bool; |
|
70 | + $this->useDefaultValidation = (bool) $bool; |
|
71 | 71 | |
72 | 72 | return $this; |
73 | 73 | } |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | $forms = $serviceLocator->get('forms'); |
44 | 44 | $container = $forms->get('Auth/userprofilecontainer'); |
45 | 45 | $user = $serviceLocator->get('AuthenticationService')->getUser(); /* @var $user \Auth\Entity\User */ |
46 | - $postProfiles = (array)$this->params()->fromPost('social_profiles'); |
|
46 | + $postProfiles = (array) $this->params()->fromPost('social_profiles'); |
|
47 | 47 | $userProfiles = $user->getProfile(); |
48 | 48 | $formSocialProfiles = $forms->get('Auth/SocialProfiles') |
49 | 49 | ->setUseDefaultValidation(true) |
50 | - ->setData(['social_profiles' => array_map(function ($array) |
|
50 | + ->setData(['social_profiles' => array_map(function($array) |
|
51 | 51 | { |
52 | 52 | return $array['data']; |
53 | 53 | }, $userProfiles)]); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | )); |
127 | 127 | } else { |
128 | 128 | $profile = [ |
129 | - 'auth' => (array)$authProfile, |
|
129 | + 'auth' => (array) $authProfile, |
|
130 | 130 | 'data' => \Zend\Json\Json::decode($dataProfiles[$network]) |
131 | 131 | ]; |
132 | 132 | $user->addProfile($network, $profile); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | |
138 | 138 | // keep data in sync & properly decoded |
139 | - $formSocialProfiles->setData(['social_profiles' => array_map(function ($array) |
|
139 | + $formSocialProfiles->setData(['social_profiles' => array_map(function($array) |
|
140 | 140 | { |
141 | 141 | return \Zend\Json\Json::decode($array) ?: ''; |
142 | 142 | }, $dataProfiles)]); |
@@ -96,8 +96,7 @@ |
||
96 | 96 | 'content' => $content, |
97 | 97 | ) |
98 | 98 | ); |
99 | - } |
|
100 | - elseif ($postProfiles) { |
|
99 | + } elseif ($postProfiles) { |
|
101 | 100 | $formSocialProfiles->setData($this->params()->fromPost()); |
102 | 101 | |
103 | 102 | if ($formSocialProfiles->isValid()) { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | /** |
99 | 99 | * Gets an iterator to iterate over the enabled formulars. |
100 | 100 | * |
101 | - * @return \ArrayIterator |
|
101 | + * @return PriorityList |
|
102 | 102 | * @see IteratorAggregate::getIterator() |
103 | 103 | */ |
104 | 104 | public function getIterator() |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | $formAction = $formInstance->getAttribute('action'); |
322 | 322 | |
323 | 323 | if (empty($formAction)) { |
324 | - $formInstance->setAttribute('action', '?form=' . $formName); |
|
324 | + $formInstance->setAttribute('action', '?form='.$formName); |
|
325 | 325 | } |
326 | 326 | |
327 | 327 | if (isset($form['label'])) { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | $spec->setParent($this); |
387 | 387 | } |
388 | 388 | |
389 | - $spec = [ '__instance__' => $spec, 'name' => $key, 'entity' => '*' ]; |
|
389 | + $spec = ['__instance__' => $spec, 'name' => $key, 'entity' => '*']; |
|
390 | 390 | } |
391 | 391 | |
392 | 392 | if (!is_array($spec)) { |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | } |
506 | 506 | $this->activeForms = array_filter( |
507 | 507 | $this->activeForms, |
508 | - function ($item) use ($key) { |
|
508 | + function($item) use ($key) { |
|
509 | 509 | return !in_array($item, $key); |
510 | 510 | } |
511 | 511 | ); |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | * @throws \InvalidArgumentException |
520 | 520 | * @return Container |
521 | 521 | */ |
522 | - public function setEntity($entity, $key='*') |
|
522 | + public function setEntity($entity, $key = '*') |
|
523 | 523 | { |
524 | 524 | if (!$entity instanceof EntityInterface) |
525 | 525 | { |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | * |
543 | 543 | * @return \Core\Entity\EntityInterface |
544 | 544 | */ |
545 | - public function getEntity($key='*') |
|
545 | + public function getEntity($key = '*') |
|
546 | 546 | { |
547 | 547 | return isset($this->entities[$key]) ? $this->entities[$key] : null; |
548 | 548 | } |
@@ -745,10 +745,10 @@ discard block |
||
745 | 745 | $actualKey = $this->getActiveFormActual(); |
746 | 746 | if (isset($actualKey)) { |
747 | 747 | $forms = array_keys($this->forms); |
748 | - $formsFlip = array_flip($forms); |
|
748 | + $formsFlip = array_flip($forms); |
|
749 | 749 | $index = $formsFlip[$actualKey]; |
750 | 750 | if (0 < $index) { |
751 | - $key = $forms[$index-1]; |
|
751 | + $key = $forms[$index - 1]; |
|
752 | 752 | } |
753 | 753 | } |
754 | 754 | return $key; |
@@ -765,10 +765,10 @@ discard block |
||
765 | 765 | $actualKey = $this->getActiveFormActual(); |
766 | 766 | if (isset($actualKey)) { |
767 | 767 | $forms = array_keys($this->forms); |
768 | - $formsFlip = array_flip($forms); |
|
768 | + $formsFlip = array_flip($forms); |
|
769 | 769 | $index = $formsFlip[$actualKey]; |
770 | 770 | if ($index < count($forms) - 1) { |
771 | - $key = $forms[$index+1]; |
|
771 | + $key = $forms[$index + 1]; |
|
772 | 772 | } |
773 | 773 | } |
774 | 774 | return $key; |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | */ |
783 | 783 | public function formatAction($name) |
784 | 784 | { |
785 | - return sprintf('%s%s', $this->hasParent() ? $this->getName() . '.' : '', $name); |
|
785 | + return sprintf('%s%s', $this->hasParent() ? $this->getName().'.' : '', $name); |
|
786 | 786 | } |
787 | 787 | |
788 | 788 | /** |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | public function getActionFor($key) |
793 | 793 | { |
794 | 794 | if (isset($this->forms[$key])) { |
795 | - return '?form=' . $this->formatAction($this->forms[$key]['name']); |
|
795 | + return '?form='.$this->formatAction($this->forms[$key]['name']); |
|
796 | 796 | } |
797 | 797 | } |
798 | 798 | } |
799 | 799 | \ No newline at end of file |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function getConsoleBanner(Console $console) |
37 | 37 | { |
38 | 38 | $version = `git describe 2>/dev/null`; |
39 | - $name = 'YAWIK ' . trim($version); |
|
39 | + $name = 'YAWIK '.trim($version); |
|
40 | 40 | $width = $console->getWidth(); |
41 | 41 | return sprintf( |
42 | 42 | "==%1\$s==\n%2\$s%3\$s\n**%1\$s**\n", |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | $sharedManager = $eventManager->getSharedManager(); |
73 | 73 | |
74 | 74 | if (!\Zend\Console\Console::isConsole()) { |
75 | - $redirectCallback = function () use ($e) { |
|
75 | + $redirectCallback = function() use ($e) { |
|
76 | 76 | $routeMatch = $e->getRouteMatch(); |
77 | 77 | $lang = $routeMatch ? $routeMatch->getParam('lang', 'en') : 'en'; |
78 | - $uri = $e->getRouter()->getBaseUrl() . '/' . $lang . '/error'; |
|
78 | + $uri = $e->getRouter()->getBaseUrl().'/'.$lang.'/error'; |
|
79 | 79 | |
80 | - header('Location: ' . $uri); |
|
80 | + header('Location: '.$uri); |
|
81 | 81 | }; |
82 | 82 | |
83 | 83 | $errorHandlerListener = new ErrorHandlerListener($sm->get('ErrorLogger'), $redirectCallback); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $eventManager->attach( |
111 | 111 | MvcEvent::EVENT_DISPATCH_ERROR, |
112 | - function ($event) { |
|
112 | + function($event) { |
|
113 | 113 | $application = $event->getApplication(); |
114 | 114 | if ($application::ERROR_EXCEPTION == $event->getError()) { |
115 | 115 | $ex = $event->getParam('exception'); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | ); |
124 | 124 | $eventManager->attach( |
125 | 125 | MvcEvent::EVENT_DISPATCH, |
126 | - function ($event) use ($eventManager) { |
|
126 | + function($event) use ($eventManager) { |
|
127 | 127 | $eventManager->trigger('postDispatch', $event); |
128 | 128 | }, |
129 | 129 | -150 |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | public function getConfig() |
140 | 140 | { |
141 | - $config = include __DIR__ . '/config/module.config.php'; |
|
141 | + $config = include __DIR__.'/config/module.config.php'; |
|
142 | 142 | return $config; |
143 | 143 | if (\Zend\Console\Console::isConsole()) { |
144 | 144 | $config['doctrine']['configuration']['odm_default']['generate_proxies'] = false; |
@@ -158,9 +158,9 @@ discard block |
||
158 | 158 | return array( |
159 | 159 | 'Zend\Loader\StandardAutoloader' => array( |
160 | 160 | 'namespaces' => array( |
161 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
162 | - 'CoreTest' => __DIR__ . '/test/' . 'CoreTest', |
|
163 | - 'CoreTestUtils' => __DIR__ . '/test/CoreTestUtils', |
|
161 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
162 | + 'CoreTest' => __DIR__.'/test/'.'CoreTest', |
|
163 | + 'CoreTestUtils' => __DIR__.'/test/CoreTestUtils', |
|
164 | 164 | ), |
165 | 165 | ), |
166 | 166 | ); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * |
28 | 28 | * @param ServiceLocatorInterface $serviceLocator |
29 | 29 | * |
30 | - * @return mixed |
|
30 | + * @return StatusChange |
|
31 | 31 | */ |
32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
33 | 33 | { |
@@ -157,7 +157,7 @@ |
||
157 | 157 | |
158 | 158 | /** |
159 | 159 | * @param Application $application |
160 | - * @param $status |
|
160 | + * @param string $status |
|
161 | 161 | * |
162 | 162 | * @return AddressList |
163 | 163 | */ |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param ApplicationEvent $e |
70 | 70 | */ |
71 | - public function prepareFormData(ApplicationEvent $e){ |
|
71 | + public function prepareFormData(ApplicationEvent $e) { |
|
72 | 72 | if ($e->isPostRequest()) { |
73 | 73 | return; |
74 | 74 | } |
@@ -95,13 +95,13 @@ discard block |
||
95 | 95 | $key = 'mailRejectionText'; |
96 | 96 | break; |
97 | 97 | default: |
98 | - throw new \InvalidArgumentException('Unknown status value: ' .$status); |
|
98 | + throw new \InvalidArgumentException('Unknown status value: '.$status); |
|
99 | 99 | } |
100 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
100 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
101 | 101 | $mail->setBody($mailText); |
102 | 102 | $mail->setApplication($this->application); |
103 | 103 | $mailText = $mail->getBodyText(); |
104 | - $mailSubject = sprintf( |
|
104 | + $mailSubject = sprintf( |
|
105 | 105 | $this->translator->translate('Your application dated %s'), |
106 | 106 | strftime('%x', $this->application->getDateCreated()->getTimestamp()) |
107 | 107 | ); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @param ApplicationEvent $event |
123 | 123 | */ |
124 | - public function sendMail(ApplicationEvent $event){ |
|
124 | + public function sendMail(ApplicationEvent $event) { |
|
125 | 125 | if (!$event->isPostRequest()) { |
126 | 126 | return; |
127 | 127 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $this->mailService->send($mail); |
168 | 168 | |
169 | 169 | |
170 | - $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0] ); |
|
170 | + $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0]); |
|
171 | 171 | $this->application->changeStatus($status, $historyText); |
172 | 172 | $event->setNotification($historyText); |
173 | 173 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @return AddressList |
180 | 180 | */ |
181 | - protected function getRecipient( Application $application, $status) { |
|
181 | + protected function getRecipient(Application $application, $status) { |
|
182 | 182 | |
183 | 183 | $recipient = Status::ACCEPTED == $status |
184 | 184 | ? $application->getJob()->getUser()->getInfo() |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $email = $recipient->getEmail(); |
188 | 188 | $name = $recipient->getDisplayName(false); |
189 | 189 | |
190 | - return $name ? [ $email => $name ] : [ $email ]; |
|
190 | + return $name ? [$email => $name] : [$email]; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | } |
194 | 194 | \ No newline at end of file |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | 'view_manager' => array( |
65 | 65 | // Map template to files. Speeds up the lookup through the template stack. |
66 | 66 | 'template_map' => array( |
67 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
68 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
69 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
70 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
71 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
72 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
73 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
67 | + 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
68 | + 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
69 | + 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
70 | + 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
71 | + 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
72 | + 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
73 | + 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
74 | 74 | 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
75 | 75 | ), |
76 | 76 | // Where to look for view templates not mapped above |
@@ -80,20 +80,20 @@ discard block |
||
80 | 80 | ), |
81 | 81 | 'form_elements' => array( |
82 | 82 | 'invokables' => array( |
83 | - 'Organizations/form' => 'Organizations\Form\Organizations', |
|
84 | - 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
85 | - 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
86 | - 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
87 | - 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
88 | - 'Organizations/OrganizationsNameFieldset' => 'Organizations\Form\OrganizationsNameFieldset', |
|
89 | - 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
90 | - //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
91 | - 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
92 | - 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
93 | - 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
94 | - 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
95 | - 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
96 | - 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
83 | + 'Organizations/form' => 'Organizations\Form\Organizations', |
|
84 | + 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
85 | + 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
86 | + 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
87 | + 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
88 | + 'Organizations/OrganizationsNameFieldset' => 'Organizations\Form\OrganizationsNameFieldset', |
|
89 | + 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
90 | + //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
91 | + 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
92 | + 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
93 | + 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
94 | + 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
95 | + 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
96 | + 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
97 | 97 | |
98 | 98 | ), |
99 | 99 | 'factories' => array( |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | ), |
14 | 14 | ), |
15 | 15 | 'annotation' => array( |
16 | - 'paths' => array( __DIR__ . '/../src/Organizations/Entity') |
|
16 | + 'paths' => array(__DIR__.'/../src/Organizations/Entity') |
|
17 | 17 | ), |
18 | 18 | ), |
19 | 19 | 'eventmanager' => array( |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'translation_file_patterns' => array( |
40 | 40 | array( |
41 | 41 | 'type' => 'gettext', |
42 | - 'base_dir' => __DIR__ . '/../language', |
|
42 | + 'base_dir' => __DIR__.'/../language', |
|
43 | 43 | 'pattern' => '%s.mo', |
44 | 44 | ), |
45 | 45 | ), |
@@ -67,18 +67,18 @@ discard block |
||
67 | 67 | 'view_manager' => array( |
68 | 68 | // Map template to files. Speeds up the lookup through the template stack. |
69 | 69 | 'template_map' => array( |
70 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
71 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
72 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
73 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
74 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
75 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
76 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
77 | - 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
70 | + 'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml', |
|
71 | + 'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml', |
|
72 | + 'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml', |
|
73 | + 'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml', |
|
74 | + 'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
75 | + 'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml', |
|
76 | + 'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml', |
|
77 | + 'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml', |
|
78 | 78 | ), |
79 | 79 | // Where to look for view templates not mapped above |
80 | 80 | 'template_path_stack' => array( |
81 | - __DIR__ . '/../view', |
|
81 | + __DIR__.'/../view', |
|
82 | 82 | ), |
83 | 83 | ), |
84 | 84 | 'form_elements' => array( |
@@ -139,11 +139,11 @@ discard block |
||
139 | 139 | 'allow' => array( |
140 | 140 | 'Entity/OrganizationImage', |
141 | 141 | 'route/lang/organizations/invite', |
142 | - 'Organizations/InviteEmployee' => [ 'accept' ], |
|
142 | + 'Organizations/InviteEmployee' => ['accept'], |
|
143 | 143 | ), |
144 | 144 | 'deny' => array( |
145 | 145 | 'route/lang/organizations', |
146 | - 'Organizations/InviteEmployee' => [ 'invite' ], |
|
146 | + 'Organizations/InviteEmployee' => ['invite'], |
|
147 | 147 | ), |
148 | 148 | ), |
149 | 149 | // recruiters are allowed to view their companies |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | 'allow' => array( |
152 | 152 | 'route/lang/organizations', |
153 | 153 | 'Organizations/InviteEmployee', |
154 | - 'Entity/Organization' => [ 'edit' => 'Organizations/Write' ], |
|
154 | + 'Entity/Organization' => ['edit' => 'Organizations/Write'], |
|
155 | 155 | ), |
156 | 156 | ), |
157 | 157 | ), |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | 'organizations' => array( |
168 | 168 | 'label' => 'Organizations', |
169 | 169 | 'route' => 'lang/organizations', |
170 | - 'order' => 65, // allows to order the menu items |
|
171 | - 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
170 | + 'order' => 65, // allows to order the menu items |
|
171 | + 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
172 | 172 | |
173 | 173 | 'pages' => array( |
174 | 174 | 'list' => array( |