@@ -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 |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | 'organizations' => array( |
165 | 165 | 'label' => 'Organizations', |
166 | 166 | 'route' => 'lang/organizations', |
167 | - 'order' => 65, // allows to order the menu items |
|
168 | - 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
167 | + 'order' => 65, // allows to order the menu items |
|
168 | + 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
169 | 169 | |
170 | 170 | 'pages' => array( |
171 | 171 | 'list' => array( |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | $config = new MailServiceConfig($configArray); |
41 | 41 | |
42 | - $service = new MailService($serviceLocator, $config); |
|
42 | + $service = new MailService($serviceLocator, $config); |
|
43 | 43 | |
44 | 44 | return $service; |
45 | 45 |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $self = $this; |
88 | 88 | |
89 | 89 | $this->addInitializer( |
90 | - function ($instance) use ($self) { |
|
90 | + function($instance) use ($self) { |
|
91 | 91 | if ($instance instanceof TranslatorAwareInterface) { |
92 | 92 | $translator = $self->getServiceLocator()->get('translator'); |
93 | 93 | $instance->setTranslator($translator); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | false |
101 | 101 | ); |
102 | 102 | $this->addInitializer( |
103 | - function ($instance) { |
|
103 | + function($instance) { |
|
104 | 104 | if (method_exists($instance, 'setServiceLocator')) { |
105 | 105 | $instance->setServiceLocator($this); |
106 | 106 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | false |
109 | 109 | ); |
110 | 110 | $this->addInitializer( |
111 | - function ($instance) { |
|
111 | + function($instance) { |
|
112 | 112 | if (method_exists($instance, 'init')) { |
113 | 113 | $instance->init(); |
114 | 114 | } |
@@ -199,11 +199,11 @@ discard block |
||
199 | 199 | if ($this->overrideRecipient instanceof AddressList) { |
200 | 200 | $originalRecipient = $headers->get('to')->toString(); |
201 | 201 | if ($headers->has('cc')) { |
202 | - $originalRecipient .= '; ' . $headers->get('cc')->toString(); |
|
202 | + $originalRecipient .= '; '.$headers->get('cc')->toString(); |
|
203 | 203 | $headers->removeHeader('cc'); |
204 | 204 | } |
205 | 205 | if ($headers->has('bcc')) { |
206 | - $originalRecipient .= '; ' . $headers->get('bcc')->toString(); |
|
206 | + $originalRecipient .= '; '.$headers->get('bcc')->toString(); |
|
207 | 207 | $headers->removeHeader('bcc'); |
208 | 208 | } |
209 | 209 | $headers->addHeaderLine('X-Original-Recipients', $originalRecipient); |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | } |
230 | 230 | |
231 | 231 | /* @var \Zend\Mvc\View\Http\ViewManager $viewManager */ |
232 | - $viewManager = $this->serviceManager->get('viewManager'); |
|
232 | + $viewManager = $this->serviceManager->get('viewManager'); |
|
233 | 233 | $resolver = $this->serviceManager->get('viewResolver'); |
234 | 234 | |
235 | 235 | /* @var \Zend\Mvc\MvcEvent $event */ |
@@ -237,13 +237,13 @@ discard block |
||
237 | 237 | $lang = $event->getRouteMatch()->getParam('lang'); |
238 | 238 | |
239 | 239 | |
240 | - if ($resolver->resolve($this->getTemplate() . '.' . $lang)) { |
|
241 | - $viewModel->setTemplate($this->getTemplate() . '.' . $lang); |
|
242 | - }else{ |
|
240 | + if ($resolver->resolve($this->getTemplate().'.'.$lang)) { |
|
241 | + $viewModel->setTemplate($this->getTemplate().'.'.$lang); |
|
242 | + } else { |
|
243 | 243 | $viewModel->setTemplate($this->getTemplate()); |
244 | 244 | } |
245 | 245 | |
246 | - $view = $viewManager->getView(); |
|
246 | + $view = $viewManager->getView(); |
|
247 | 247 | |
248 | 248 | $viewModel->setVariables($this->getVariables()); |
249 | 249 | $view->setResponse($response); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $response = $this->getResponse(); |
51 | 51 | |
52 | 52 | try { |
53 | - $repository = $this->serviceLocator->get('repositories')->get($module . '/' . $entityName); |
|
53 | + $repository = $this->serviceLocator->get('repositories')->get($module.'/'.$entityName); |
|
54 | 54 | } catch (\Exception $e) { |
55 | 55 | $response->setStatusCode(404); |
56 | 56 | $this->getEvent()->setParam('exception', $e); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | $this->acl($file); |
86 | 86 | |
87 | - $headers=$response->getHeaders(); |
|
87 | + $headers = $response->getHeaders(); |
|
88 | 88 | |
89 | 89 | $headers->addHeaderline('Content-Type', $file->getType()) |
90 | 90 | ->addHeaderline('Content-Length', $file->getLength()); |
@@ -61,11 +61,11 @@ |
||
61 | 61 | $paginatorManager = $this->serviceManager->get('Core/PaginatorService'); |
62 | 62 | $paginator = $paginatorManager->get($paginatorName); |
63 | 63 | if (!isset($paginator) || !$paginator instanceof ZendPaginator) { |
64 | - throw new \RuntimeException('Could not create paginator ' . $paginatorName); |
|
64 | + throw new \RuntimeException('Could not create paginator '.$paginatorName); |
|
65 | 65 | } |
66 | 66 | $adapter = $paginator->getAdapter(); |
67 | 67 | if (!isset($adapter) || !$adapter instanceof AdapterInterface) { |
68 | - throw new \RuntimeException('Paginator ' . $paginatorName . ' has no Adapter'); |
|
68 | + throw new \RuntimeException('Paginator '.$paginatorName.' has no Adapter'); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | $params = $usePostParams |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | public function __call($method, $args) |
215 | 215 | { |
216 | 216 | if (0 !== strpos($method, 'do')) { |
217 | - throw new \BadMethodCallException('Unknown method "' . $method . '"'); |
|
217 | + throw new \BadMethodCallException('Unknown method "'.$method.'"'); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | $name = substr($method, 2); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | } |
249 | 249 | |
250 | 250 | if ($method && method_exists($listener, $method)) { |
251 | - return call_user_func_array([ $listener, $method ], $args); |
|
251 | + return call_user_func_array([$listener, $method], $args); |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | if (is_callable($listener)) { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | |
258 | 258 | throw new \UnexpectedValueException(sprintf( |
259 | 259 | 'Deferred listener %s%s is not callable.', |
260 | - get_class($listener), $method ? ' has no method "' . $method . '" and ' : '' |
|
260 | + get_class($listener), $method ? ' has no method "'.$method.'" and ' : '' |
|
261 | 261 | )); |
262 | 262 | } |
263 | 263 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
33 | 33 | $config = new PaginatorServiceConfig($configArray); |
34 | 34 | |
35 | - $service = new PaginatorService($serviceLocator, $config); |
|
35 | + $service = new PaginatorService($serviceLocator, $config); |
|
36 | 36 | |
37 | 37 | return $service; |
38 | 38 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function __construct(LoginFilterService $loginFilter) |
33 | 33 | { |
34 | - $this->loginFilter = $loginFilter;; |
|
34 | + $this->loginFilter = $loginFilter; ; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |