Completed
Push — develop ( 06c328...a78ff6 )
by Carsten
17:00 queued 08:38
created
module/Core/src/Core/Decorator/Decorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function checkObjectType($object)
58 58
     {
59 59
         if (!$object instanceof $this->objectType) {
60
-            throw new \InvalidArgumentException('Wrapped entity must be of type ' . $this->objectType);
60
+            throw new \InvalidArgumentException('Wrapped entity must be of type '.$this->objectType);
61 61
         }
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
module/Core/src/Core/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/Core/Form/View/Helper/FormRow.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
         
77 77
         // Does this element have errors ?
78 78
         if (!empty($elementErrors) && !empty($inputErrorClass) && $this->layout != Form::LAYOUT_BARE) {
79
-            $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class') . ' ' : '');
80
-            $classAttributes = $classAttributes . $inputErrorClass;
79
+            $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class').' ' : '');
80
+            $classAttributes = $classAttributes.$inputErrorClass;
81 81
     
82 82
             $element->setAttribute('class', $classAttributes);
83 83
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         if (!$element->hasAttribute('id')) {
86 86
             $elementId = preg_replace(
87 87
                 array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
88
-                array('-'             , '-',     ''),
88
+                array('-', '-', ''),
89 89
                 $element->getName()
90 90
             );
91 91
             $element->setAttribute('id', $elementId);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         }
132 132
         
133 133
         // moved label here so we can change it in the ElementViewHelper
134
-        $label           = $element->getLabel();
134
+        $label = $element->getLabel();
135 135
         if (isset($label) && '' !== $label && !$element instanceof \Zend\Form\Element\Button) {
136 136
             // Translate the label
137 137
             if (null !== ($translator = $this->getTranslator())) {
@@ -173,11 +173,11 @@  discard block
 block discarded – undo
173 173
                     }
174 174
                     $element->setLabelAttributes($labelAttributes);
175 175
 
176
-                    $label = $labelHelper($element,$label);
176
+                    $label = $labelHelper($element, $label);
177 177
                     if ($this->shouldWrap) {
178 178
                         $spanWidth = 12 - $labelWidth;
179 179
                         $elementString = sprintf(
180
-                            '<div class="col-md-%d%s" id="' . $elementId . '-span">%s</div>',
180
+                            '<div class="col-md-%d%s" id="'.$elementId.'-span">%s</div>',
181 181
                             $spanWidth,
182 182
                             $elementErrors ? " $inputErrorClass" : '',
183 183
                             $elementString
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                         );
190 190
 
191 191
                     }
192
-                        $markup = $label . $elementString;
192
+                        $markup = $label.$elementString;
193 193
                 }
194 194
             }
195 195
         } else {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             && !$element instanceof \Zend\Form\Element\Button
211 211
             && $this->layout != Form::LAYOUT_BARE
212 212
             ) {
213
-            $markup = sprintf('<div class="controls controls-row ' . $form_row_class . '">%s</div>', $markup);
213
+            $markup = sprintf('<div class="controls controls-row '.$form_row_class.'">%s</div>', $markup);
214 214
         }
215 215
     
216 216
         return $markup;
Please login to merge, or discard this patch.
module/Core/src/Core/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/Core/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/Core/Form/View/Helper/FormInfoCheckbox.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,26 +44,26 @@  discard block
 block discarded – undo
44 44
                     $href = $this->getView()->url($route, $params, true);
45 45
                 } else {
46 46
                     /*@todo add more options like providing url... */
47
-                    $href="";
47
+                    $href = "";
48 48
                 }
49 49
                 $linktext = $translator->translate($linktext);
50
-                $link = '<a data-toggle="modal" href="' . $href . '" '
51
-                      . 'data-target="#modal-' . $element->getAttribute('id') . '">'
52
-                      . $linktext . '</a>';
50
+                $link = '<a data-toggle="modal" href="'.$href.'" '
51
+                      . 'data-target="#modal-'.$element->getAttribute('id').'">'
52
+                      . $linktext.'</a>';
53 53
                 
54 54
                 $label = sprintf($label, $link);
55 55
             }
56 56
         }
57 57
 
58 58
         if ($headline) {
59
-            $headline = '<h6>' . $translator->translate($headline, $textDomain) . '</h6>';
59
+            $headline = '<h6>'.$translator->translate($headline, $textDomain).'</h6>';
60 60
         }
61 61
         
62 62
         $markup = '
63 63
         <div class="checkbox">
64 64
             <label for="%s">%s %s</label>
65 65
         </div>
66
-        <div class="modal fade modal-scrollable" id="modal-' . $element->getAttribute('id') . '" tabindex="-1" role="dialog" aria-labelledby="label-search-user" aria-hidden="true">
66
+        <div class="modal fade modal-scrollable" id="modal-' . $element->getAttribute('id').'" tabindex="-1" role="dialog" aria-labelledby="label-search-user" aria-hidden="true">
67 67
             <div class="modal-dialog modal-lg">
68 68
                 <div class="modal-content">
69 69
                 </div>
@@ -77,6 +77,6 @@  discard block
 block discarded – undo
77 77
             $label
78 78
         );
79 79
         
80
-        return $headline . $markup;
80
+        return $headline.$markup;
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/RequiredMarkInFormLabel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 use Zend\Form\ElementInterface;
16 16
 use Zend\Form\Exception;
17 17
 
18
-class RequiredMarkInFormLabel extends FormLabel{
18
+class RequiredMarkInFormLabel extends FormLabel {
19 19
     public function __invoke(ElementInterface $element = null, $labelContent = null, $position = null)
20 20
     {
21 21
         // Set $required to a default of true | existing elements required-value
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
             );
29 29
         }
30 30
 
31
-        return $this->openTag($element) . $labelContent . $this->closeTag();
31
+        return $this->openTag($element).$labelContent.$this->closeTag();
32 32
     }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormRowCombined.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         
63 63
         
64 64
         return sprintf(
65
-            '<div class="controls controls-row ' . $form_row_class . '">%s%s</div>',
65
+            '<div class="controls controls-row '.$form_row_class.'">%s%s</div>',
66 66
             $labelMarkup,
67 67
             $markups
68 68
         );
Please login to merge, or discard this patch.
module/Core/src/Core/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.