@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function getConfig() |
30 | 30 | { |
31 | - return include __DIR__ . '/config/module.config.php'; |
|
31 | + return include __DIR__.'/config/module.config.php'; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | |
42 | 42 | return array( |
43 | 43 | 'Zend\Loader\ClassMapAutoloader' => [ |
44 | - __DIR__ . '/src/autoload_classmap.php' |
|
44 | + __DIR__.'/src/autoload_classmap.php' |
|
45 | 45 | ], |
46 | 46 | 'Zend\Loader\StandardAutoloader' => array( |
47 | 47 | 'namespaces' => array( |
48 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
48 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | ); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @param string $requestedName |
114 | 114 | * @param null|array $options |
115 | 115 | * |
116 | - * @return object |
|
116 | + * @return \Zend\EventManager\EventManagerInterface |
|
117 | 117 | * @throws ServiceNotFoundException if unable to resolve the service. |
118 | 118 | * @throws ServiceNotCreatedException if an exception is raised when |
119 | 119 | * creating a service. |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | * @param string|array $options String is either event name or aggregate name (when name is int). |
334 | 334 | * Array are the options from config. [ [event,..], method, priority, lazy] |
335 | 335 | * |
336 | - * @return array |
|
336 | + * @return \Zend\EventManager\EventManagerInterface |
|
337 | 337 | */ |
338 | 338 | protected function normalizeListenerOptions($name, $options) |
339 | 339 | { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
166 | 166 | { |
167 | - return $this($serviceLocator,$requestedName); |
|
167 | + return $this($serviceLocator, $requestedName); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $defaults = [ |
184 | 184 | 'service' => 'EventManager', |
185 | 185 | 'configure' => true, |
186 | - 'identifiers' => [ $name ], |
|
186 | + 'identifiers' => [$name], |
|
187 | 187 | 'event' => '\Zend\EventManager\Event', |
188 | 188 | 'listeners' => [], |
189 | 189 | ]; |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | foreach ($listeners as $name => $options) { |
275 | 275 | $options = $this->normalizeListenerOptions($name, $options); |
276 | 276 | |
277 | - if ($options['lazy'] && null !== $options['attach'] ) { |
|
277 | + if ($options['lazy'] && null !== $options['attach']) { |
|
278 | 278 | foreach ($options['attach'] as $spec) { |
279 | 279 | $lazyListeners[] = [ |
280 | 280 | 'service' => $options['service'], |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | } |
305 | 305 | |
306 | 306 | foreach ($options['attach'] as $spec) { |
307 | - $callback = $spec['method'] ? [ $listener, $spec['method'] ] : $listener; |
|
307 | + $callback = $spec['method'] ? [$listener, $spec['method']] : $listener; |
|
308 | 308 | $eventManager->attach($spec['event'], $callback, $spec['priority']); |
309 | 309 | } |
310 | 310 | } |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | |
376 | 376 | if (is_string($options)) { |
377 | 377 | /* Only an event name is provided in config */ |
378 | - $normalized['attach'] = [ [ 'event' => $options, 'method' => null, 'priority' => 1 ] ]; |
|
378 | + $normalized['attach'] = [['event' => $options, 'method' => null, 'priority' => 1]]; |
|
379 | 379 | return $normalized; |
380 | 380 | |
381 | 381 | } |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | } else if (is_string($opt)) { |
405 | 405 | if (null === $event) { |
406 | 406 | /* first string found is assumed to be the event name */ |
407 | - $event = [ $opt ]; |
|
407 | + $event = [$opt]; |
|
408 | 408 | } else { |
409 | 409 | /* second string found must be a method name. */ |
410 | 410 | $method = $opt; |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | } |
422 | 422 | |
423 | 423 | foreach ($event as &$eventSpec) { |
424 | - $eventSpec = [ 'event' => $eventSpec, 'method' => $method, 'priority' => $priority ]; |
|
424 | + $eventSpec = ['event' => $eventSpec, 'method' => $method, 'priority' => $priority]; |
|
425 | 425 | } |
426 | 426 | |
427 | 427 | $normalized['attach'] = $event; |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | protected function normalizeEventsSpec($options) |
434 | 434 | { |
435 | 435 | $listenerPriority = isset($options['priority']) ? $options['priority'] : 1; |
436 | - $listenerMethod = isset($options['method']) ? $options['method'] : '__none__'; |
|
436 | + $listenerMethod = isset($options['method']) ? $options['method'] : '__none__'; |
|
437 | 437 | $events = []; |
438 | 438 | |
439 | 439 | foreach ($options['events'] as $event => $spec) { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | } else if (is_array($spec)) { |
454 | 454 | if (isset($spec['method'])) { |
455 | 455 | if (!is_array($spec['method'])) { |
456 | - $spec['method'] = [ $spec['method'] ]; |
|
456 | + $spec['method'] = [$spec['method']]; |
|
457 | 457 | } |
458 | 458 | |
459 | 459 | foreach ($spec['method'] as $method => $methodPriority) { |
@@ -239,9 +239,9 @@ discard block |
||
239 | 239 | |
240 | 240 | $events->setIdentifiers($config['identifiers']); |
241 | 241 | |
242 | - /* @var \Zend\EventManager\EventInterface $event */ |
|
243 | - $event = $services->has($config['event']) ? $services->get($config['event']) : new $config['event'](); |
|
244 | - $events->setEventPrototype($event); |
|
242 | + /* @var \Zend\EventManager\EventInterface $event */ |
|
243 | + $event = $services->has($config['event']) ? $services->get($config['event']) : new $config['event'](); |
|
244 | + $events->setEventPrototype($event); |
|
245 | 245 | |
246 | 246 | if ('EventManager' != $config['service'] && method_exists($events, 'setSharedManager') && $services->has('SharedEventManager')) { |
247 | 247 | /* @var \Zend\EventManager\SharedEventManagerInterface $sharedEvents */ |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | /* @var \Core\Listener\DeferredListenerAggregate $aggregate */ |
308 | 308 | $aggregate = $services->get('Core/Listener/DeferredListenerAggregate'); |
309 | 309 | $aggregate->setListeners($lazyListeners) |
310 | - ->attach($eventManager); |
|
310 | + ->attach($eventManager); |
|
311 | 311 | } |
312 | 312 | } |
313 | 313 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * @param string $requestedName |
31 | 31 | * @param null|array $options |
32 | 32 | * |
33 | - * @return object |
|
33 | + * @return MultipostingSelect |
|
34 | 34 | * @throws ServiceNotFoundException if unable to resolve the service. |
35 | 35 | * @throws ServiceNotCreatedException if an exception is raised when |
36 | 36 | * creating a service. |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $router = $container->get('Router'); |
47 | 47 | $select = new MultipostingSelect(); |
48 | 48 | $helpers = $container->get('ViewHelperManager'); |
49 | - $currencyFormat = $helpers->get('currencyFormat'); |
|
49 | + $currencyFormat = $helpers->get('currencyFormat'); |
|
50 | 50 | |
51 | 51 | $channels = $container->get('Jobs/Options/Provider'); |
52 | 52 | |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | |
68 | 68 | $link = $router->assemble($channel->getParams(), array('name' => $channel->getRoute())); |
69 | 69 | $groups[$category]['options'][$channel->getKey()] = |
70 | - $channel->getLabel() . '|' |
|
71 | - . $channel->getHeadLine() . '|' |
|
72 | - . $channel->getDescription() . '|' |
|
73 | - . $channel->getLinkText() . '|' |
|
74 | - . $link . '|' . $channel->getPublishDuration() . '|' |
|
70 | + $channel->getLabel().'|' |
|
71 | + . $channel->getHeadLine().'|' |
|
72 | + . $channel->getDescription().'|' |
|
73 | + . $channel->getLinkText().'|' |
|
74 | + . $link.'|'.$channel->getPublishDuration().'|' |
|
75 | 75 | . $channel->getLogo(); |
76 | 76 | } |
77 | 77 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @param string $requestedName |
26 | 26 | * @param null|array $options |
27 | 27 | * |
28 | - * @return object |
|
28 | + * @return PaginationAdminQuery |
|
29 | 29 | * @throws ServiceNotFoundException if unable to resolve the service. |
30 | 30 | * @throws ServiceNotCreatedException if an exception is raised when |
31 | 31 | * creating a service. |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $core = $container->get("Core/Options"); |
39 | 39 | |
40 | 40 | if ('' == $channel->getCurrency()) { |
41 | - $currency=$core->getDefaultCurrencyCode(); |
|
41 | + $currency = $core->getDefaultCurrencyCode(); |
|
42 | 42 | $channel->setCurrency($currency); |
43 | 43 | } |
44 | 44 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array(); |
45 | 45 | |
46 | - if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) { |
|
46 | + if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) { |
|
47 | 47 | $coreOptions = $container->get('Core/Options'); |
48 | 48 | $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail(); |
49 | 49 | } |
@@ -88,14 +88,14 @@ discard block |
||
88 | 88 | |
89 | 89 | $class = $form->getAttribute('class'); |
90 | 90 | $class = preg_replace('~\bform-[^ ]+\b~', '', $class); |
91 | - $class .= ' ' . $layout; |
|
91 | + $class .= ' '.$layout; |
|
92 | 92 | |
93 | 93 | $form->setAttribute('class', $class); |
94 | 94 | |
95 | 95 | $formId = $form->getAttribute('id') ?: $form->getName(); |
96 | 96 | $formId = preg_replace( |
97 | 97 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
98 | - array('-' , '-' , '' ), |
|
98 | + array('-', '-', ''), |
|
99 | 99 | $formId |
100 | 100 | ); |
101 | 101 | $form->setAttribute( |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | if (!$elementId) { |
121 | 121 | $elementId = preg_replace( |
122 | 122 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
123 | - array('-' , '-', ''), |
|
123 | + array('-', '-', ''), |
|
124 | 124 | $element->getName() |
125 | 125 | ); |
126 | 126 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
162 | - return $this->openTag($form) . $formContent . $this->closeTag(); |
|
162 | + return $this->openTag($form).$formContent.$this->closeTag(); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | ); |
188 | 188 | |
189 | 189 | if ($desc = $form->getOption('description', '')) { |
190 | - $descriptionParams=$form->getOption('description_params'); |
|
190 | + $descriptionParams = $form->getOption('description_params'); |
|
191 | 191 | $translator = $this->getTranslator(); |
192 | 192 | $textDomain = $this->getTranslatorTextDomain(); |
193 | 193 | $desc = $translator->translate($desc, $textDomain); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $desc |
209 | 209 | ); |
210 | 210 | } else { |
211 | - $formContent = '<div class="form-content">' . $formContent . '</div>'; |
|
211 | + $formContent = '<div class="form-content">'.$formContent.'</div>'; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | $markup = '<div id="form-%s" class="form-container">' |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | . '</div>'; |
218 | 218 | |
219 | 219 | if ($label = $form->getLabel()) { |
220 | - $label = '<div class="form-headline"><h3>' . $renderer->translate($label) . '</h3></div>'; |
|
220 | + $label = '<div class="form-headline"><h3>'.$renderer->translate($label).'</h3></div>'; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | return sprintf( |
@@ -71,8 +71,8 @@ |
||
71 | 71 | $basepath = $renderer->plugin('basepath'); |
72 | 72 | |
73 | 73 | $headscript->appendFile($basepath('/Core/js/core.spinnerbutton.js')) |
74 | - ->appendFile($basepath('/assets/select2/js/select2.min.js')) |
|
75 | - ->appendFile($basepath('/Core/js/core.forms.js')); |
|
74 | + ->appendFile($basepath('/assets/select2/js/select2.min.js')) |
|
75 | + ->appendFile($basepath('/Core/js/core.forms.js')); |
|
76 | 76 | |
77 | 77 | /* @noinspection PhpParamsInspection */ |
78 | 78 | $renderer->headLink()->appendStylesheet($basepath('/assets/select2/css/select2.css')); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | if (!$elementId) { |
70 | 70 | $elementId = preg_replace( |
71 | 71 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
72 | - array('-' , '-' , '' ), |
|
72 | + array('-', '-', ''), |
|
73 | 73 | $element->getName() |
74 | 74 | ); |
75 | 75 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | if (!$elementOrFieldsetId) { |
105 | 105 | $elementOrFieldsetId = preg_replace( |
106 | 106 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
107 | - array('-' , '-' , '' ), |
|
107 | + array('-', '-', ''), |
|
108 | 108 | $elementOrFieldset->getName() |
109 | 109 | ); |
110 | 110 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param string $requestedName |
26 | 26 | * @param null|array $options |
27 | 27 | * |
28 | - * @return object |
|
28 | + * @return CheckPermissionsListener |
|
29 | 29 | * @throws ServiceNotFoundException if unable to resolve the service. |
30 | 30 | * @throws ServiceNotCreatedException if an exception is raised when |
31 | 31 | * creating a service. |
@@ -47,7 +47,6 @@ discard block |
||
47 | 47 | * |
48 | 48 | * - Injects the AuthenticationService |
49 | 49 | * |
50 | - * @param ServiceLocatorInterface $helpers |
|
51 | 50 | * @return \Auth\View\Helper\Auth |
52 | 51 | * @see \Zend\ServiceManager\FactoryInterface::createService() |
53 | 52 | */ |