Completed
Push — develop ( 62f68e...872778 )
by Carsten
13s
created
module/Core/src/Form/View/Helper/FormEditorColor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     protected function additionalOptions()
21 21
     {
22
-        return 'toolbar: "undo redo | styleselect forecolor | bold italic | alignleft aligncenter alignright alignjustify | ' .
22
+        return 'toolbar: "undo redo | styleselect forecolor | bold italic | alignleft aligncenter alignright alignjustify | '.
23 23
         'bullist numlist outdent indent ", ';
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FilterForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
39 39
                     $element->setLabel('');
40 40
                     $element->setAttribute('placeholder', $label);
41 41
                 }
42
-                $formContent .= $this->getView()->formRow($element, null, null, Form::LAYOUT_BARE) . ' ';
42
+                $formContent .= $this->getView()->formRow($element, null, null, Form::LAYOUT_BARE).' ';
43 43
             }
44 44
         }
45 45
         
46 46
         
47
-        return $this->openTag($form) . $formContent . $this->closeTag();
47
+        return $this->openTag($form).$formContent.$this->closeTag();
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormSimple.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
         $formContent = '';
37 37
         foreach ($form as $element) {
38 38
             if ($element instanceof FieldsetInterface) {
39
-                $formContent.= $this->getView()->formCollection($element);
39
+                $formContent .= $this->getView()->formCollection($element);
40 40
             } else {
41
-                $formContent.= $this->getView()->formRowSimple($element);
41
+                $formContent .= $this->getView()->formRowSimple($element);
42 42
             }
43 43
         }
44 44
 
45
-        return $this->openTag($form) . $formContent . $this->closeTag();
45
+        return $this->openTag($form).$formContent.$this->closeTag();
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormSimpleRow.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
 
45 45
         // Does this element have errors ?
46 46
         if (count($element->getMessages()) > 0 && !empty($inputErrorClass)) {
47
-            $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class') . ' ' : '');
48
-            $classAttributes = $classAttributes . $inputErrorClass;
47
+            $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class').' ' : '');
48
+            $classAttributes = $classAttributes.$inputErrorClass;
49 49
 
50 50
             $element->setAttribute('class', $classAttributes);
51 51
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                 }
97 97
 
98 98
                 if ($label !== '' && !$element->hasAttribute('id')) {
99
-                    $label = '<span>' . $label . '</span>';
99
+                    $label = '<span>'.$label.'</span>';
100 100
                 }
101 101
 
102 102
                 // Button element is a special case, because label is always rendered inside it
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
 
107 107
                 switch ($this->labelPosition) {
108 108
                     case self::LABEL_PREPEND:
109
-                        $markup = $labelOpen . $label . $elementString . $labelClose;
109
+                        $markup = $labelOpen.$label.$elementString.$labelClose;
110 110
                         break;
111 111
                     case self::LABEL_APPEND:
112 112
                     default:
113
-                        $markup = $labelOpen . $elementString . $label . $labelClose;
113
+                        $markup = $labelOpen.$elementString.$label.$labelClose;
114 114
                         break;
115 115
                 }
116 116
             }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             }
121 121
         } else {
122 122
             if (!empty($this->renderErrors)) {
123
-                $markup = $elementString . $elementErrors;
123
+                $markup = $elementString.$elementErrors;
124 124
             } else {
125 125
                 $markup = $elementString;
126 126
             }
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormDatePicker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @var string
28 28
      */
29
-    protected $language="de";
29
+    protected $language = "de";
30 30
 
31 31
     public function __invoke(ElementInterface $element = null)
32 32
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         /*
61 61
          *
62 62
          */
63
-        $markup = '<div class="input-group date">%s<div data-toggle="description" data-target="%s" class="input-group-addon" onClick="$(this).parent().find(\':input\').datepicker(\'show\')">' .
63
+        $markup = '<div class="input-group date">%s<div data-toggle="description" data-target="%s" class="input-group-addon" onClick="$(this).parent().find(\':input\').datepicker(\'show\')">'.
64 64
             '<i class="fa fa-calendar"></i></div></div><div class="checkbox"></div>';
65 65
         
66 66
         $markup = sprintf(
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormContainer.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
         if ($element instanceof ViewPartialProviderInterface) {
85 85
             $parameterPartial = array_merge(array('element' => $element, 'layout' => $layout), $parameterPartial);
86 86
             $content .= $this->getView()->partial(
87
-                             $element->getViewPartial(),
88
-                             $parameterPartial
87
+                                $element->getViewPartial(),
88
+                                $parameterPartial
89 89
             );
90 90
         } elseif ($element instanceof ViewHelperProviderInterface) {
91 91
             $helper = $element->getViewHelper();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         if (isset($parameter['render_label']) && $parameter['render_label'] && ($label = $container->getLabel())) {
67
-            $content .= '<div class="container-headline"><h3>' . $this->getView()->translate($label) . '</h3></div>';
67
+            $content .= '<div class="container-headline"><h3>'.$this->getView()->translate($label).'</h3></div>';
68 68
         }
69 69
         foreach ($container as $element) {
70 70
             $content .= $this->renderElement($element, $layout, $parameter);
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
         } elseif ($element instanceof CoreSummaryForm) {
100 100
             $content .= $this->getView()->summaryForm($element);
101 101
         } elseif ($element instanceof Container) {
102
-            $content.= $this->render($element, $layout, $parameter);
102
+            $content .= $this->render($element, $layout, $parameter);
103 103
         } else {
104
-            $content.= $this->getView()->form($element, $layout, $parameter);
104
+            $content .= $this->getView()->form($element, $layout, $parameter);
105 105
         }
106 106
 
107 107
         return $content;
Please login to merge, or discard this patch.
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/FormElement.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-
4 3
  */
5 4
 
6 5
 namespace Core\Form\View\Helper;
Please login to merge, or discard this patch.