@@ -215,8 +215,8 @@ |
||
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
218 | - * @param $response |
|
219 | - * @param $uri |
|
218 | + * @param \Zend\Stdlib\ResponseInterface $response |
|
219 | + * @param string $uri |
|
220 | 220 | * |
221 | 221 | * @return mixed |
222 | 222 | */ |
@@ -108,10 +108,10 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | $router = $e->getRouter(); |
111 | - $basePath=$router->getBaseUrl(); |
|
111 | + $basePath = $router->getBaseUrl(); |
|
112 | 112 | |
113 | 113 | |
114 | - if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
114 | + if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
115 | 115 | /* It seems we have already a language in the URI |
116 | 116 | * Now there are two possibilities: |
117 | 117 | * |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $headers = $e->getRequest()->getHeaders(); |
197 | 197 | if ($headers->has('Accept-Language')) { |
198 | 198 | $locales = $headers->get('Accept-Language')->getPrioritized(); |
199 | - $localeFound=false; |
|
199 | + $localeFound = false; |
|
200 | 200 | foreach ($locales as $locale) { |
201 | 201 | if (array_key_exists($locale->type, $this->supportedLanguages)) { |
202 | 202 | $lang = $locale->type; |
@@ -239,8 +239,8 @@ discard block |
||
239 | 239 | setlocale( |
240 | 240 | LC_ALL, |
241 | 241 | array( |
242 | - $locale . ".utf8", |
|
243 | - $locale . ".iso88591", |
|
242 | + $locale.".utf8", |
|
243 | + $locale.".iso88591", |
|
244 | 244 | $locale, |
245 | 245 | substr($locale, 0, 2), |
246 | 246 | 'de_DE.utf8', |
@@ -264,6 +264,6 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public function setSupportedLanguages($supportedLanguages) |
266 | 266 | { |
267 | - $this->supportedLanguages=$supportedLanguages; |
|
267 | + $this->supportedLanguages = $supportedLanguages; |
|
268 | 268 | } |
269 | 269 | } |
@@ -89,23 +89,23 @@ |
||
89 | 89 | $tabId = $containerId . '-' . strtolower($tabElement->getName()); |
90 | 90 | $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>'; |
91 | 91 | $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">' |
92 | - . $formContainer($tabElement, $layout, $parameter) |
|
93 | - . '</div>'; |
|
92 | + . $formContainer($tabElement, $layout, $parameter) |
|
93 | + . '</div>'; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $content .= '<div class="wizard-container" id="' . $containerId . '">' |
97 | - . '<ul>' . $tabsNav . '</ul>' |
|
98 | - . '<div class="tab-content">' . $tabsContent . '</div>' |
|
99 | - . '<ul class="pager wizard">' |
|
100 | - . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
101 | - . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
102 | - . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
103 | - . (false !== $containerParams['finish_label'] |
|
97 | + . '<ul>' . $tabsNav . '</ul>' |
|
98 | + . '<div class="tab-content">' . $tabsContent . '</div>' |
|
99 | + . '<ul class="pager wizard">' |
|
100 | + . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
101 | + . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
102 | + . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
103 | + . (false !== $containerParams['finish_label'] |
|
104 | 104 | ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
105 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
105 | + . $translate($containerParams['finish_label']) . ' •</a>' |
|
106 | 106 | : '' |
107 | 107 | ) |
108 | - . '</li></div>'; |
|
108 | + . '</li></div>'; |
|
109 | 109 | |
110 | 110 | $content .= $container->renderPost($this->getView()); |
111 | 111 |
@@ -82,27 +82,27 @@ |
||
82 | 82 | |
83 | 83 | $containerId = $container->getAttribute('id'); |
84 | 84 | if (!$containerId) { |
85 | - $containerId = 'wizardcontainer-' . strtolower(str_replace('\\', '-', get_class($container))); |
|
85 | + $containerId = 'wizardcontainer-'.strtolower(str_replace('\\', '-', get_class($container))); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | foreach ($container as $tabElement) { |
89 | - $tabId = $containerId . '-' . strtolower($tabElement->getName()); |
|
90 | - $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>'; |
|
91 | - $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">' |
|
89 | + $tabId = $containerId.'-'.strtolower($tabElement->getName()); |
|
90 | + $tabsNav .= '<li><a data-toggle="tab" href="#'.$tabId.'">'.$translate($tabElement->getLabel()).'</a></li>'; |
|
91 | + $tabsContent .= '<div class="tab-pane" id="'.$tabId.'">' |
|
92 | 92 | . $formContainer($tabElement, $layout, $parameter) |
93 | 93 | . '</div>'; |
94 | 94 | } |
95 | 95 | |
96 | - $content .= '<div class="wizard-container" id="' . $containerId . '">' |
|
97 | - . '<ul>' . $tabsNav . '</ul>' |
|
98 | - . '<div class="tab-content">' . $tabsContent . '</div>' |
|
96 | + $content .= '<div class="wizard-container" id="'.$containerId.'">' |
|
97 | + . '<ul>'.$tabsNav.'</ul>' |
|
98 | + . '<div class="tab-content">'.$tabsContent.'</div>' |
|
99 | 99 | . '<ul class="pager wizard">' |
100 | - . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
101 | - . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
102 | - . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
100 | + . '<li class="previous"><a href="javascript:;">← '.$translate('previous').'</a></li>' |
|
101 | + . '<li class="next"><a href="javascript:;">'.$translate('Next').' →</a></li>' |
|
102 | + . '<li class="finish'.($containerParams['finish_enabled'] ? '' : ' disabled').'">' |
|
103 | 103 | . (false !== $containerParams['finish_label'] |
104 | - ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
|
105 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
104 | + ? '<a class="pull-right" href="'.$containerParams['finish_href'].'">' |
|
105 | + . $translate($containerParams['finish_label']).' •</a>' |
|
106 | 106 | : '' |
107 | 107 | ) |
108 | 108 | . '</li></div>'; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $notificationListener = $serviceLocator->getServiceLocator()->get('Core/Listener/Notification'); |
25 | 25 | $translator = $services->get('translator'); |
26 | 26 | |
27 | - $notification = new Notification($flashMessenger); |
|
27 | + $notification = new Notification($flashMessenger); |
|
28 | 28 | $notification->setListener($notificationListener); |
29 | 29 | $notification->setTranslator($translator); |
30 | 30 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $organizations = $organizationReference->getHiringOrganizations()->toArray(); |
42 | 42 | $organization = $organizationReference->getOrganization(); |
43 | 43 | if (!$organization->isDraft()) { |
44 | - array_unshift($organizations, $organization); |
|
44 | + array_unshift($organizations, $organization); |
|
45 | 45 | } |
46 | 46 | $select->setSelectableOrganizations($organizations, /* addEmptyOption */ |
47 | 47 | false |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | [ |
77 | 77 | 'job' => $job, |
78 | 78 | 'user' => $employee->getUser(), |
79 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
79 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
80 | 80 | ] |
81 | 81 | ); |
82 | 82 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | [ |
95 | 95 | 'job' => $this->application->getJob(), |
96 | 96 | 'user' => $recruiter, |
97 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
97 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
98 | 98 | ] |
99 | 99 | ); |
100 | 100 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | [ |
112 | 112 | 'application' => $this->application, |
113 | 113 | 'body' => $ackBody, |
114 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
114 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
115 | 115 | ] |
116 | 116 | ); |
117 | 117 |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * @param ServiceLocatorInterface $formManager |
112 | - * @return AbstractSettingsForm |
|
112 | + * @return DisableElementsCapableFormSettingsFieldset |
|
113 | 113 | */ |
114 | 114 | public static function factory(ServiceLocatorInterface $formManager) |
115 | 115 | { |
@@ -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 |
@@ -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()); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function postDispatch(MvcEvent $e) |
58 | 58 | { |
59 | - // $view = $this->serviceLocator->get('view'); |
|
59 | + // $view = $this->serviceLocator->get('view'); |
|
60 | 60 | |
61 | 61 | } |
62 | 62 |