Completed
Push — master ( d49909...0d57e9 )
by Mathias
13:57
created
module/Core/src/Form/View/Helper/ToggleButton.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             if (null === $buttonContent) {
27 27
                 throw new Exception\DomainException(
28 28
                     sprintf(
29
-                        '%s expects either button content as the second argument, ' .
29
+                        '%s expects either button content as the second argument, '.
30 30
                         'or that the element provided has a label value; neither found',
31 31
                         __METHOD__
32 32
                     )
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $checkedBoole   = ($value == 1 || $value == 'on');
47 47
         
48 48
 
49
-        $checkedClass   = $checkedBoole?'active"':'';
49
+        $checkedClass   = $checkedBoole ? 'active"' : '';
50 50
 
51 51
         $hiddenElement = '';
52 52
         if ($element->useHiddenElement()) {
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
             $element->setUseHiddenElement(false);
64 64
         }
65 65
 
66
-        $buttonContent = $hiddenElement . PHP_EOL
67
-                . '<div class="btn-group" data-toggle="buttons">' . PHP_EOL
68
-                . '<label class="btn btn-default ' . $checkedClass . '">' . PHP_EOL
69
-                . parent::render($element) . $buttonContent . PHP_EOL . '</label>' . PHP_EOL
70
-                . '</div>' . PHP_EOL;
66
+        $buttonContent = $hiddenElement.PHP_EOL
67
+                . '<div class="btn-group" data-toggle="buttons">'.PHP_EOL
68
+                . '<label class="btn btn-default '.$checkedClass.'">'.PHP_EOL
69
+                . parent::render($element).$buttonContent.PHP_EOL.'</label>'.PHP_EOL
70
+                . '</div>'.PHP_EOL;
71 71
 
72 72
         return $buttonContent;
73 73
     }
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormCheckbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         }
35 35
 
36 36
         if ($headline) {
37
-            $headline = '<h6>' . $translator->translate($headline, $textDomain) . '</h6>';
37
+            $headline = '<h6>'.$translator->translate($headline, $textDomain).'</h6>';
38 38
         }
39 39
 
40 40
         $markup = '<div class="checkbox"><label for="%s">%s %s</label></div>';
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $label
47 47
         );
48 48
         
49
-        return $headline . $markup;
49
+        return $headline.$markup;
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormWizardContainer.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -82,29 +82,29 @@
 block discarded – undo
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:;">&larr; ' . $translate('previous') . '</a></li>'
102
-                  . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' &rarr;</a></li>'
103
-                  . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">'
100
+            $content .= '<ul class="pager wizard">'
101
+                  . '<li class="previous"><a href="javascript:;">&larr; '.$translate('previous').'</a></li>'
102
+                  . '<li class="next"><a href="javascript:;">'.$translate('Next').' &rarr;</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']) . ' &bull;</a>'
106
+                     ? '<a class="pull-right" href="'.$containerParams['finish_href'].'">'
107
+                       . $translate($containerParams['finish_label']).' &bull;</a>'
108 108
                      : ''
109 109
                     )
110 110
                   . '</li></ul>';
Please login to merge, or discard this patch.
module/Core/src/Form/Form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -368,9 +368,9 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
module/Core/src/Form/RatingFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
module/Core/src/Form/SummaryFormButtonsFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
module/Core/src/Form/LocalizationSettingsFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
module/Core/src/Form/BaseForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
module/Core/src/Form/Hydrator/Strategy/TreeSelectStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.