@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $this->prepareCheckboxes($box, $prefix); |
196 | 196 | } else { |
197 | 197 | /* @var $box Checkbox */ |
198 | - $box->setName($prefix . $box->getName()); |
|
198 | + $box->setName($prefix.$box->getName()); |
|
199 | 199 | } |
200 | 200 | } |
201 | 201 | } |
@@ -232,10 +232,10 @@ discard block |
||
232 | 232 | foreach ($form as $element) { |
233 | 233 | /* @var $element \Zend\Form\ElementInterface|DisableElementsCapableInterface|DisableCapableInterface */ |
234 | 234 | $name = $element->getName(); |
235 | - $elementName = $prefix . '[' . $element->getName() . ']'; |
|
235 | + $elementName = $prefix.'['.$element->getName().']'; |
|
236 | 236 | $options = $element->getOption('disable_capable'); |
237 | 237 | $boxOptions = array( |
238 | - 'long_label' => isset($options['label']) ? $options['label'] : ($element->getLabel() ? : $name), |
|
238 | + 'long_label' => isset($options['label']) ? $options['label'] : ($element->getLabel() ?: $name), |
|
239 | 239 | 'description' => isset($options['description']) ? $options['description'] |
240 | 240 | : 'Toggle availability of this element in the form.', |
241 | 241 | ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $return[$name] = $this->buildCheckboxes($element, $elementName); |
246 | 246 | } |
247 | 247 | if ($element->isDisableCapable()) { |
248 | - $box = $this->createCheckbox($elementName . '[__all__]', $boxOptions); |
|
248 | + $box = $this->createCheckbox($elementName.'[__all__]', $boxOptions); |
|
249 | 249 | $box->setAttribute('checked', true); |
250 | 250 | $return[$name]['__all__'] = $box; |
251 | 251 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | $this->setAttribute('method', 'post'); |
58 | 58 | $object = $this->getObject(); |
59 | - $fieldsetName = $object->getModuleName() . '/SettingsFieldset'; |
|
59 | + $fieldsetName = $object->getModuleName().'/SettingsFieldset'; |
|
60 | 60 | |
61 | 61 | if ($this->forms->has($fieldsetName)) { |
62 | 62 | $fieldset = $this->forms->get($fieldsetName); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $this->add($fieldset); |
73 | 73 | |
74 | 74 | $this->add($this->forms->get('DefaultButtonsFieldset')); |
75 | - $this->isBuild=true; |
|
75 | + $this->isBuild = true; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | public function setName($name) |
92 | 92 | { |
93 | - parent::setName(strtolower($name) . '-settings'); |
|
93 | + parent::setName(strtolower($name).'-settings'); |
|
94 | 94 | $urlHelper = $this->forms->getServiceLocator() |
95 | 95 | ->get('ViewHelperManager') |
96 | 96 | ->get('url'); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $mvcEvent->setParam('__settings_active_module', $moduleName); |
54 | 54 | |
55 | 55 | $formManager = $this->getServiceLocator()->get('FormElementManager'); |
56 | - $formName = $moduleName . '/SettingsForm'; |
|
56 | + $formName = $moduleName.'/SettingsForm'; |
|
57 | 57 | if (!$formManager->has($formName)) { |
58 | 58 | $formName = "Settings/Form"; |
59 | 59 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $valid = $form->isValid(); |
76 | 76 | $partial = $services->get('viewhelpermanager')->get('partial'); |
77 | 77 | $text = $valid |
78 | - ? /*@translate*/'Changes successfully saved' |
|
78 | + ? /*@translate*/'Changes successfully saved' |
|
79 | 79 | : /*@translate*/'Changes could not be saved'; |
80 | 80 | |
81 | 81 | $vars = array(); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | return new JsonModel($vars); |
96 | 96 | } |
97 | 97 | |
98 | - $vars['form']=$form; |
|
98 | + $vars['form'] = $form; |
|
99 | 99 | return $vars; |
100 | 100 | } |
101 | 101 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getConfig() |
46 | 46 | { |
47 | - return include __DIR__ . '/config/module.config.php'; |
|
47 | + return include __DIR__.'/config/module.config.php'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return array( |
58 | 58 | 'Zend\Loader\StandardAutoloader' => array( |
59 | 59 | 'namespaces' => array( |
60 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
60 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
61 | 61 | ), |
62 | 62 | ), |
63 | 63 | ); |
@@ -13,14 +13,14 @@ discard block |
||
13 | 13 | |
14 | 14 | if (php_sapi_name() == 'cli-server') { |
15 | 15 | $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"]; |
16 | - if (is_file(__DIR__ . '/' . $route)) { |
|
17 | - if(substr($route, -4) == ".php"){ |
|
18 | - require __DIR__ . '/' . $route; // Include requested script files |
|
16 | + if (is_file(__DIR__.'/'.$route)) { |
|
17 | + if (substr($route, -4) == ".php") { |
|
18 | + require __DIR__.'/'.$route; // Include requested script files |
|
19 | 19 | exit; |
20 | 20 | } |
21 | - return false; // Serve file as is |
|
21 | + return false; // Serve file as is |
|
22 | 22 | } else { // Fallback to index.php |
23 | - $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
23 | + $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | } else { |
41 | 41 | echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>'; |
42 | 42 | echo '<p>Please try to install the dependencies via: </p>'; |
43 | - echo '<code>cd '. realpath('.') .'<br>./install.sh</code>'; |
|
44 | - echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>'; |
|
43 | + echo '<code>cd '.realpath('.').'<br>./install.sh</code>'; |
|
44 | + echo '<p>exit at '.__FILE__.' in line '.__LINE__.'</p>'; |
|
45 | 45 | exit; |
46 | 46 | } |
47 | 47 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function getConfig() |
46 | 46 | { |
47 | - return include __DIR__ . '/config/module.config.php'; |
|
47 | + return include __DIR__.'/config/module.config.php'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return array( |
58 | 58 | 'Zend\Loader\StandardAutoloader' => array( |
59 | 59 | 'namespaces' => array( |
60 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
60 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
61 | 61 | ), |
62 | 62 | ), |
63 | 63 | ); |
@@ -73,15 +73,15 @@ |
||
73 | 73 | if ('yawik' == $channelKey) { |
74 | 74 | $absoluteDiscount = 100; |
75 | 75 | } |
76 | - if ($channel instanceof ChannelOptions && $channel->getPrice('base')>0) { |
|
76 | + if ($channel instanceof ChannelOptions && $channel->getPrice('base') > 0) { |
|
77 | 77 | $sum += $channel->getPrice('base'); |
78 | 78 | $amount++; |
79 | 79 | } |
80 | 80 | } |
81 | - $discount=1-($amount-1)*13.5/100; |
|
82 | - if ($discount>0) { |
|
83 | - $sum= round($sum * $discount, 2); |
|
81 | + $discount = 1 - ($amount - 1) * 13.5 / 100; |
|
82 | + if ($discount > 0) { |
|
83 | + $sum = round($sum * $discount, 2); |
|
84 | 84 | } |
85 | - return $sum-$absoluteDiscount; |
|
85 | + return $sum - $absoluteDiscount; |
|
86 | 86 | } |
87 | 87 | } |
@@ -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 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * for multiple paths. |
24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
25 | 25 | */ |
26 | - 'paths' => array( __DIR__ . '/../src/Entity'), |
|
26 | + 'paths' => array(__DIR__.'/../src/Entity'), |
|
27 | 27 | ), |
28 | 28 | ], |
29 | 29 | ], |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | 'translation_file_patterns' => array( |
34 | 34 | array( |
35 | 35 | 'type' => 'gettext', |
36 | - 'base_dir' => __DIR__ . '/../language', |
|
36 | + 'base_dir' => __DIR__.'/../language', |
|
37 | 37 | 'pattern' => '%s.mo', |
38 | 38 | ), |
39 | 39 | ), |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | |
43 | 43 | 'event_manager' => [ |
44 | 44 | |
45 | - 'Jobs/Events' => [ 'listeners' => [ |
|
46 | - 'Orders/Listener/CreateJobOrder' => [ \Jobs\Listener\Events\JobEvent::EVENT_JOB_CREATED, true ], |
|
45 | + 'Jobs/Events' => ['listeners' => [ |
|
46 | + 'Orders/Listener/CreateJobOrder' => [\Jobs\Listener\Events\JobEvent::EVENT_JOB_CREATED, true], |
|
47 | 47 | ]], |
48 | 48 | |
49 | - 'Jobs/JobContainer/Events' => [ 'listeners' => [ |
|
49 | + 'Jobs/JobContainer/Events' => ['listeners' => [ |
|
50 | 50 | '\Orders\Form\Listener\DisableJobInvoiceAddress' => 'DisableElements', |
51 | 51 | 'Orders\Form\Listener\InjectInvoiceAddressInJobContainer' => \Core\Form\Event\FormEvent::EVENT_INIT, |
52 | 52 | '\Orders\Form\Listener\ValidateJobInvoiceAddress' => 'ValidateJob', |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ], |
60 | 60 | ], |
61 | 61 | |
62 | - 'Core/AdminController/Events' => [ 'listeners' => [ |
|
62 | + 'Core/AdminController/Events' => ['listeners' => [ |
|
63 | 63 | 'Orders/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD, |
64 | 64 | ]], |
65 | 65 | ], |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | 'view_helper_config' => [ |
83 | 83 | 'headscript' => [ |
84 | 84 | 'lang/orders' => [ |
85 | - [ \Zend\View\Helper\HeadScript::FILE, 'Orders/js/list.index.js', 'PREPEND' ], |
|
85 | + [\Zend\View\Helper\HeadScript::FILE, 'Orders/js/list.index.js', 'PREPEND'], |
|
86 | 86 | 'js/bootstrap-dialog.min.js' |
87 | 87 | ], |
88 | 88 | ], |