@@ -45,8 +45,8 @@ |
||
| 45 | 45 | $params = $container->get('params'); |
| 46 | 46 | $serverUrl = $container->get('serverUrl'); |
| 47 | 47 | $helper->setUrlHelper($url) |
| 48 | - ->setParamsHelper($params) |
|
| 49 | - ->setServerUrlHelper($serverUrl); |
|
| 48 | + ->setParamsHelper($params) |
|
| 49 | + ->setServerUrlHelper($serverUrl); |
|
| 50 | 50 | return $helper; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -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 | } |
@@ -55,7 +55,6 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * {@inheritDoc} |
| 57 | 57 | * |
| 58 | - * @param ServiceLocatorInterface $serviceLocator |
|
| 59 | 58 | * @return ModuleOptions |
| 60 | 59 | */ |
| 61 | 60 | public function createService(ServiceLocatorInterface $services) |
@@ -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 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * @param string $requestedName |
| 28 | 28 | * @param null|array $options |
| 29 | 29 | * |
| 30 | - * @return object |
|
| 30 | + * @return Acl |
|
| 31 | 31 | * @throws ServiceNotFoundException if unable to resolve the service. |
| 32 | 32 | * @throws ServiceNotCreatedException if an exception is raised when |
| 33 | 33 | * creating a service. |
@@ -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 | */ |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * @param string $requestedName |
| 36 | 36 | * @param null|array $options |
| 37 | 37 | * |
| 38 | - * @return object |
|
| 38 | + * @return SocialProfilesFieldset |
|
| 39 | 39 | * @throws ServiceNotFoundException if unable to resolve the service. |
| 40 | 40 | * @throws ServiceNotCreatedException if an exception is raised when |
| 41 | 41 | * creating a service. |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * @param string $requestedName |
| 16 | 16 | * @param null|array $options |
| 17 | 17 | * |
| 18 | - * @return CollectionContainer |
|
| 18 | + * @return \Core\Form\CollectionContainer |
|
| 19 | 19 | * @throws ServiceNotFoundException if unable to resolve the service. |
| 20 | 20 | * @throws ServiceNotCreatedException if an exception is raised when |
| 21 | 21 | * creating a service. |