@@ -82,29 +82,29 @@ |
||
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 .= '<style type="text/css">.tab-content > div > div:first-child { margin-top: 10px; }</style><div class="wizard-container" id="' . $containerId . '">' |
|
97 | - . '<ul>' . $tabsNav . '</ul>' |
|
98 | - . '<div class="tab-content">' . $tabsContent . '</div>'; |
|
96 | + $content .= '<style type="text/css">.tab-content > div > div:first-child { margin-top: 10px; }</style><div class="wizard-container" id="'.$containerId.'">' |
|
97 | + . '<ul>'.$tabsNav.'</ul>' |
|
98 | + . '<div class="tab-content">'.$tabsContent.'</div>'; |
|
99 | 99 | if ($containerParams['pager']) { |
100 | - $content .='<ul class="pager wizard">' |
|
101 | - . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
102 | - . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
103 | - . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
100 | + $content .= '<ul class="pager wizard">' |
|
101 | + . '<li class="previous"><a href="javascript:;">← '.$translate('previous').'</a></li>' |
|
102 | + . '<li class="next"><a href="javascript:;">'.$translate('Next').' →</a></li>' |
|
103 | + . '<li class="finish'.($containerParams['finish_enabled'] ? '' : ' disabled').'">' |
|
104 | 104 | . ( |
105 | 105 | false !== $containerParams['finish_label'] |
106 | - ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
|
107 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
106 | + ? '<a class="pull-right" href="'.$containerParams['finish_href'].'">' |
|
107 | + . $translate($containerParams['finish_label']).' •</a>' |
|
108 | 108 | : '' |
109 | 109 | ) |
110 | 110 | . '</li></ul>'; |
@@ -368,9 +368,9 @@ |
||
368 | 368 | if (!$inputExists && $required) { |
369 | 369 | $fieldsetName = ''; |
370 | 370 | if ($fieldset->hasAttribute('name')) { |
371 | - $fieldsetName = 'in Fieldset "' . $fieldset->getAttribute('name') . '" '; |
|
371 | + $fieldsetName = 'in Fieldset "'.$fieldset->getAttribute('name').'" '; |
|
372 | 372 | } |
373 | - throw new \RuntimeException('input for "' . $name . '" ' . $fieldsetName . 'is required but a input-field with this name is not defined'); |
|
373 | + throw new \RuntimeException('input for "'.$name.'" '.$fieldsetName.'is required but a input-field with this name is not defined'); |
|
374 | 374 | } |
375 | 375 | } |
376 | 376 | } |
@@ -49,11 +49,11 @@ |
||
49 | 49 | $properties = $refl->getProperties(); |
50 | 50 | |
51 | 51 | foreach ($properties as $property) { |
52 | - $name = $property->getName(); |
|
52 | + $name = $property->getName(); |
|
53 | 53 | if ('_' == $name{0}) { |
54 | 54 | continue; |
55 | 55 | } |
56 | - $value = $rating->{'get' . $name}(); |
|
56 | + $value = $rating->{'get'.$name}(); |
|
57 | 57 | $input = array( |
58 | 58 | 'type' => 'Core/Rating', |
59 | 59 | 'name' => $name, |
@@ -103,10 +103,10 @@ |
||
103 | 103 | */ |
104 | 104 | public function setFormId($formId) |
105 | 105 | { |
106 | - $this->formId = $formId . '-'; |
|
106 | + $this->formId = $formId.'-'; |
|
107 | 107 | |
108 | 108 | foreach ($this as $button) { |
109 | - $button->setAttribute('id', $this->formId . $button->getAttribute('id')); |
|
109 | + $button->setAttribute('id', $this->formId.$button->getAttribute('id')); |
|
110 | 110 | } |
111 | 111 | return $this; |
112 | 112 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ) |
47 | 47 | ); |
48 | 48 | |
49 | - $timezones=array_merge( |
|
49 | + $timezones = array_merge( |
|
50 | 50 | \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA), |
51 | 51 | \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA), |
52 | 52 | \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA), |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public function init() |
37 | 37 | { |
38 | 38 | if (empty($this->baseFieldset)) { |
39 | - throw new \InvalidArgumentException('For the Form ' . get_class($this) . ' there is no Basefieldset'); |
|
39 | + throw new \InvalidArgumentException('For the Form '.get_class($this).' there is no Basefieldset'); |
|
40 | 40 | } |
41 | 41 | $this->addBaseFieldset(); |
42 | 42 | $this->addButtonsFieldset(); |
@@ -222,7 +222,7 @@ |
||
222 | 222 | */ |
223 | 223 | private function findLeaf(NodeInterface $leaf, $value) |
224 | 224 | { |
225 | - $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ': '-', $value); |
|
225 | + $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ' : '-', $value); |
|
226 | 226 | $value = array_shift($parts); |
227 | 227 | |
228 | 228 | /* @var NodeInterface $item */ |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $data = []; |
54 | 54 | $this->flattenTree($object, $data); |
55 | 55 | |
56 | - return ['items' => $data ]; |
|
56 | + return ['items' => $data]; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | if ($tree->hasChildren()) { |
79 | 79 | foreach ($tree->getChildren() as $i => $child) { |
80 | - $this->flattenTree($child, $data, $curId . '-' . ($i + 1)); |
|
80 | + $this->flattenTree($child, $data, $curId.'-'.($i + 1)); |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * unflatten tree |
115 | 115 | */ |
116 | 116 | $items = $data['items']; |
117 | - $tree = [ '__root__' => array_shift($items) ]; |
|
117 | + $tree = ['__root__' => array_shift($items)]; |
|
118 | 118 | |
119 | 119 | foreach ($items as $item) { |
120 | 120 | $parent = substr($item['current'], 0, strrpos($item['current'], '-')); |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | // assets-install info |
62 | 62 | 'assets-install [--symlink] [--relative] <target>' => 'Install assets in the given target', |
63 | 63 | 'The assets-install command will install assets in the given <target> directory. If no option given this command will copy assets into the target.', |
64 | - ['--symlink','This option will install assets using absolute symlink directory'], |
|
65 | - ['--relative','This option will install assets using relative symlink'], |
|
64 | + ['--symlink', 'This option will install assets using absolute symlink directory'], |
|
65 | + ['--relative', 'This option will install assets using relative symlink'], |
|
66 | 66 | "" |
67 | 67 | ]; |
68 | 68 | |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | 'subsplit [--heads] [--tags] [--skip-update] [--dry-run] [--verbose|v]' => 'Subsplit development repository', |
73 | 73 | 'The subsplit command will automatically subsplit all changes in the develop into github yawik/* repository'.PHP_EOL |
74 | 74 | .'This command will available only in the Yawik main development repository', |
75 | - ['--heads','If defined then will subsplit that branch.'], |
|
76 | - ['--tags','Subsplit given tags only'], |
|
77 | - ['--skip-update','Directly subsplit repository without pull remote branch'], |
|
78 | - ['--dry-run','Only show the list of git command that will be executed.'], |
|
75 | + ['--heads', 'If defined then will subsplit that branch.'], |
|
76 | + ['--tags', 'Subsplit given tags only'], |
|
77 | + ['--skip-update', 'Directly subsplit repository without pull remote branch'], |
|
78 | + ['--dry-run', 'Only show the list of git command that will be executed.'], |
|
79 | 79 | ['--verbose | -v', 'Show debug output.'], |
80 | 80 | ]); |
81 | 81 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $eventManager->attach( |
145 | 145 | MvcEvent::EVENT_DISPATCH_ERROR, |
146 | - function ($event) { |
|
146 | + function($event) { |
|
147 | 147 | if ($event instanceof MvcEvent) { |
148 | 148 | $application = $event->getApplication(); |
149 | 149 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | ); |
160 | 160 | $eventManager->attach( |
161 | 161 | MvcEvent::EVENT_DISPATCH, |
162 | - function ($event) use ($eventManager) { |
|
162 | + function($event) use ($eventManager) { |
|
163 | 163 | $eventManager->trigger('postDispatch', $event); |
164 | 164 | }, |
165 | 165 | -150 |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function getConfig() |
177 | 177 | { |
178 | - $config = include __DIR__ . '/../config/module.config.php'; |
|
178 | + $config = include __DIR__.'/../config/module.config.php'; |
|
179 | 179 | return $config; |
180 | 180 | } |
181 | 181 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | public function init(ModuleManager $manager) |
186 | 186 | { |
187 | 187 | $events = $manager->getEventManager(); |
188 | - $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this,'onMergeConfig']); |
|
188 | + $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this, 'onMergeConfig']); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |