Passed
Push — master ( a26db6...b381e6 )
by Björn
04:01 queued 11s
created
module/UIComponents/src/UIComponents/View/Helper/Components/Formgroup.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -39,38 +39,38 @@
 block discarded – undo
39 39
     public function __invoke($formoptions = array(), $field = null) {
40 40
         parent::__invoke(array());
41 41
         $form = null; 
42
-        if ( !is_array($formoptions) && ($formoptions instanceof \Zend\Form\Form) && (func_num_args() == 2) ) {
42
+        if (!is_array($formoptions) && ($formoptions instanceof \Zend\Form\Form) && (func_num_args() == 2)) {
43 43
             $form    = $formoptions;
44 44
             $field    = func_get_arg(1);
45
-        } else if ( isset($formoptions["form"]) && isset($formoptions["field"]) && ($formoptions["form"] instanceof \Zend\Form\Form) ) {
45
+        } else if (isset($formoptions["form"]) && isset($formoptions["field"]) && ($formoptions["form"] instanceof \Zend\Form\Form)) {
46 46
             $form    = $formoptions["form"];
47 47
             $field    = $formoptions["field"];
48 48
         } else
49
-        if ( !($form instanceof \Zend\Form\Form) || empty($field) ) {
49
+        if (!($form instanceof \Zend\Form\Form) || empty($field)) {
50 50
             return "";
51 51
         }
52 52
         $this->setForm($form);
53 53
 
54
-        if ( is_string($field) ) {
54
+        if (is_string($field)) {
55 55
             $field = $form->get($field);
56 56
             if (!$field) {
57 57
                 return "";
58 58
             }
59
-        } else if ( !($field instanceof \Zend\Form\Element) ) {
59
+        } else if (!($field instanceof \Zend\Form\Element)) {
60 60
             return "";
61 61
         }
62
-        if ( !empty($this->getView()->formElementErrors($field)) ) {
62
+        if (!empty($this->getView()->formElementErrors($field))) {
63 63
             $this->addClass('has-error');
64 64
         }
65
-        $this->setHeader( $this->getView()->formLabel($field) );
65
+        $this->setHeader($this->getView()->formLabel($field));
66 66
         /** @var \Zend\Form\View\HelperConfig $formPlugins */
67 67
         $formPlugins = $this->getView();
68
-        if ( $field->getAttribute('type') == 'select' ) {
69
-            $this->setContent( $formPlugins->formSelect($field->setAttributes(array('class' => 'form-control'))) );
68
+        if ($field->getAttribute('type') == 'select') {
69
+            $this->setContent($formPlugins->formSelect($field->setAttributes(array('class' => 'form-control'))));
70 70
         } else {
71
-            $this->setContent( $formPlugins->formInput($field->setAttributes(array('class' => 'form-control'))) );
71
+            $this->setContent($formPlugins->formInput($field->setAttributes(array('class' => 'form-control'))));
72 72
         }
73
-        $this->setFooter( $formPlugins->formElementErrors($field) );
73
+        $this->setFooter($formPlugins->formElementErrors($field));
74 74
         
75 75
         $component = clone $this;
76 76
         return $component;
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Components/Breadcrumbs.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -110,24 +110,24 @@  discard block
 block discarded – undo
110 110
         /** @var \Zend\View\Helper\EscapeHtml $escaper */
111 111
         $escaper = $this->view->plugin('escapeHtml');
112 112
         
113
-        $listHtmlOpen = '<ol class="'.$this->getOlClass().'">' . PHP_EOL;
114
-        if ( !empty($this->getHeader()) ) {
115
-            $listHtmlOpen .= '<li class="' . $escaper($this->getHeaderClass()) . '">' . $escaper($this->getHeader()) . '</li>' . PHP_EOL;
113
+        $listHtmlOpen = '<ol class="'.$this->getOlClass().'">'.PHP_EOL;
114
+        if (!empty($this->getHeader())) {
115
+            $listHtmlOpen .= '<li class="'.$escaper($this->getHeaderClass()).'">'.$escaper($this->getHeader()).'</li>'.PHP_EOL;
116 116
         }
117 117
         // put the deepest active page last in breadcrumbs
118 118
         if ($this->getLinkLast()) {
119
-            $html = '<li class="active">' . $this->htmlify($active) . '</li>' . PHP_EOL;
119
+            $html = '<li class="active">'.$this->htmlify($active).'</li>'.PHP_EOL;
120 120
         } else {
121
-            $html    = '<li class="active">' . $escaper(
121
+            $html = '<li class="active">'.$escaper(
122 122
                 $this->translate($active->getLabel()) //, $active->getTextDomain())
123
-            ) . '</li>' . PHP_EOL;
123
+            ).'</li>'.PHP_EOL;
124 124
         }
125 125
 
126 126
         // walk back to root
127 127
         while ($parent = $active->getParent()) {
128 128
             if ($parent instanceof AbstractPage) {
129 129
                 // prepend crumb to html
130
-                $html = '<li>' . $this->htmlify($parent) . '</li>' . PHP_EOL
130
+                $html = '<li>'.$this->htmlify($parent).'</li>'.PHP_EOL
131 131
                     //. $this->getSeparator()
132 132
                     . $html;
133 133
             }
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
             $active = $parent;
141 141
         }
142 142
 
143
-        $listHtmlClose = '</ol>' . PHP_EOL;
143
+        $listHtmlClose = '</ol>'.PHP_EOL;
144 144
         
145
-        return strlen($html) ? $listHtmlOpen . $this->getIndent() . $html . $listHtmlClose : '';
145
+        return strlen($html) ? $listHtmlOpen.$this->getIndent().$html.$listHtmlClose : '';
146 146
     }
147 147
     
148 148
     /**
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Components/Modal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @return string the assemled component rendered to HTML
55 55
      */
56 56
     public function buildComponent() {
57
-        if ( empty($this->getTagname()) ) {
57
+        if (empty($this->getTagname())) {
58 58
             $this->setTagname('div');
59 59
             // return '';
60 60
         }
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
         }
76 76
         
77 77
         $content = (array($header, $body, $footer));
78
-        if ( is_array($body) && !isset($body["tagname"])) {
78
+        if (is_array($body) && !isset($body["tagname"])) {
79 79
             $content = array_merge(array($header), ($body), array($footer));
80 80
         }
81 81
         
82
-        $contentElement = $this->_createElement($this->getTagname(), $this->getClassnamesContent(), (array)$this->getAttributes(), $content);
82
+        $contentElement = $this->_createElement($this->getTagname(), $this->getClassnamesContent(), (array) $this->getAttributes(), $content);
83 83
         $dialogElement = $this->_createElement($this->getTagname(), $this->getClassnamesDialog(), [], $contentElement);
84 84
         $component = $this->_createElement($this->getTagname(), $this->getClassnames(), [], $dialogElement);
85 85
         return $component;
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Components/Button.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
     
33 33
     protected $active = false;
34 34
     
35
-    protected $_tags = array('a','input','button');
35
+    protected $_tags = array('a', 'input', 'button');
36 36
     
37
-    protected $_sizes = array('xs','sm','lg');
37
+    protected $_sizes = array('xs', 'sm', 'lg');
38 38
     protected $_foundations_sizes = array(
39 39
         'xs' => 'tiny', 'xs' => 'small', 'lg' => 'large',
40 40
     );
41 41
 
42
-    protected $_types = array('default','primary','success','info','warning','alert','danger','link');
42
+    protected $_types = array('default', 'primary', 'success', 'info', 'warning', 'alert', 'danger', 'link');
43 43
     
44 44
     /**
45 45
      * View helper entry point:
@@ -57,31 +57,31 @@  discard block
 block discarded – undo
57 57
         $component->setHeader('')->setFooter('');
58 58
         
59 59
         // tag options
60
-        if ( isset($options["tagname"]) && in_array(strtolower($options["tagname"]), $component->getTags()) ) {
60
+        if (isset($options["tagname"]) && in_array(strtolower($options["tagname"]), $component->getTags())) {
61 61
             $component->setTagname(strtolower($options["tagname"]));
62 62
         } else {
63 63
             $component->setTagname('a');
64 64
         }
65
-        if ( isset($options["attributes"]) && is_array($options["attributes"]) ) {
65
+        if (isset($options["attributes"]) && is_array($options["attributes"])) {
66 66
             $component->setAttributes($options["attributes"]);
67 67
         }
68 68
         
69 69
         // bootstrap options
70
-        if ( isset($options["size"]) && in_array(strtolower($options["size"]), $component->getSizes()) ) {
70
+        if (isset($options["size"]) && in_array(strtolower($options["size"]), $component->getSizes())) {
71 71
             $component->addClass('btn-'.strtolower($options["size"]).' '.strtolower($this->_foundations_sizes["size"]));
72 72
         }
73
-        if ( isset($options["type"]) && in_array(strtolower($options["type"]), $component->getTypes()) ) {
73
+        if (isset($options["type"]) && in_array(strtolower($options["type"]), $component->getTypes())) {
74 74
             $component->addClass('btn-'.strtolower($options["type"]).' '.strtolower($options["type"]));
75 75
         } else {
76 76
             $component->addClass('btn-default');
77 77
         }
78
-        if ( isset($options["drop"]) ) {
78
+        if (isset($options["drop"])) {
79 79
             $component->setDrop($options["drop"]);
80 80
         }
81
-        if ( isset($options["block"]) ) {
81
+        if (isset($options["block"])) {
82 82
             $component->setBlock($options["block"]);
83 83
         }
84
-        if ( isset($options["active"]) ) {
84
+        if (isset($options["active"])) {
85 85
             $component->setActive($options["active"]);
86 86
         }
87 87
 
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
             $component->setAttributes(array_merge_recursive($component->getAttributes(), array(
93 93
                 'role' => 'button'
94 94
             )));
95
-            if ( isset($options["disabled"]) ) {
95
+            if (isset($options["disabled"])) {
96 96
                 $component->addClass('disabled');
97 97
             }
98 98
         } else {
99 99
             $component->setAttributes(array_merge_recursive($component->getAttributes(), array(
100 100
                 'type' => 'button'
101 101
             )));
102
-            if ( isset($options["disabled"]) ) {
102
+            if (isset($options["disabled"])) {
103 103
                 $component->setAttributes(array_merge_recursive($component->getAttributes(), array(
104 104
                     'disabled' => 'disabled'
105 105
                 )));
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
         }
108 108
         
109 109
         // tag content
110
-        if ( isset($options["label"]) && !empty($options["label"]) ) {
110
+        if (isset($options["label"]) && !empty($options["label"])) {
111 111
             $component->setContent($options["label"]);
112
-        } else if ( isset($options["content"]) && !empty($options["content"]) ) {
112
+        } else if (isset($options["content"]) && !empty($options["content"])) {
113 113
             $component->setContent($options["content"]);
114 114
         }
115 115
         
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @param string $drop
185 185
      */
186 186
     public function setDrop($drop) {
187
-        if ( in_array(strtolower($drop), array('up','down'))) {
187
+        if (in_array(strtolower($drop), array('up', 'down'))) {
188 188
             $this->drop = $drop;
189 189
         }
190 190
         return $this;
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Components/Toolbar.php 1 patch
Spacing   +18 added lines, -19 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $escaper = $this->view->plugin('escapeHtmlAttr');
98 98
 
99 99
         if ($found) {
100
-            $foundPage    = $found['page'];
100
+            $foundPage = $found['page'];
101 101
             $foundDepth = $found['depth'];
102 102
         } else {
103 103
             $foundPage = null;
@@ -146,28 +146,27 @@  discard block
 block discarded – undo
146 146
 
147 147
             // make sure indentation is correct
148 148
             $depth -= $minDepth;
149
-            $myIndent = $indent . str_repeat('    ', $depth);
149
+            $myIndent = $indent.str_repeat('    ', $depth);
150 150
 
151 151
             if ($depth > $prevDepth) {
152 152
                 // start new ul tag
153
-                $ulClass = '' . 
154
-                    ($depth == 0 ? $this->getUlClass() : 
155
-                            ($depth == 1 ? $this->getSubUlClassLevel1() : $this->getSubUlClass())
156
-                    ) . 
157
-                    ' level_' . $depth . 
153
+                $ulClass = ''. 
154
+                    ($depth == 0 ? $this->getUlClass() : ($depth == 1 ? $this->getSubUlClassLevel1() : $this->getSubUlClass())
155
+                    ). 
156
+                    ' level_'.$depth. 
158 157
                 '';
159
-                if ($ulClass && $depth ==    0) {
160
-                    $ulClass = ' class="' . $escaper($ulClass) . '"';
158
+                if ($ulClass && $depth == 0) {
159
+                    $ulClass = ' class="'.$escaper($ulClass).'"';
161 160
                 } else {
162
-                    $ulClass = ' class="' . $escaper($ulClass) . '"';
161
+                    $ulClass = ' class="'.$escaper($ulClass).'"';
163 162
                 }
164
-                $html .= $myIndent . '<' . $this->getTagname() . $ulClass . '>' . PHP_EOL;
163
+                $html .= $myIndent.'<'.$this->getTagname().$ulClass.'>'.PHP_EOL;
165 164
             } elseif ($prevDepth > $depth) {
166 165
                 // close li/ul tags until we're at current depth
167 166
                 for ($i = $prevDepth; $i > $depth; $i--) {
168
-                    $ind = $indent . str_repeat('        ', $i);
167
+                    $ind = $indent.str_repeat('        ', $i);
169 168
                     //$html .= $ind . '    </li>' . PHP_EOL;
170
-                    $html .= $ind . '</' . $this->getTagname() . '>' . PHP_EOL;
169
+                    $html .= $ind.'</'.$this->getTagname().'>'.PHP_EOL;
171 170
                 }
172 171
                 // close previous li tag
173 172
                 //$html .= $myIndent . '    </li>' . PHP_EOL;
@@ -193,10 +192,10 @@  discard block
 block discarded – undo
193 192
             if ($addClassToListItem && $page->getClass()) {
194 193
                 $liClasses[] = $page->getClass();
195 194
             }
196
-            $liClass = empty($liClasses) ? '' : ' class="' . $escaper(implode(' ', $liClasses)) . '"';
195
+            $liClass = empty($liClasses) ? '' : ' class="'.$escaper(implode(' ', $liClasses)).'"';
197 196
 
198 197
             $html .= /* $myIndent . '    <li' . $liClass . '>' . PHP_EOL
199
-                . */ $myIndent . '        ' . $this->htmlify($page, $escapeLabels, $addClassToListItem) . PHP_EOL;
198
+                . */ $myIndent.'        '.$this->htmlify($page, $escapeLabels, $addClassToListItem).PHP_EOL;
200 199
 
201 200
             // store as previous depth for next iteration
202 201
             $prevDepth = $depth;
@@ -204,10 +203,10 @@  discard block
 block discarded – undo
204 203
 
205 204
         if ($html) {
206 205
             // done iterating container; close open ul/li tags
207
-            for ($i = $prevDepth+1; $i > 0; $i--) {
208
-                $myIndent = $indent . str_repeat('        ', $i-1);
206
+            for ($i = $prevDepth + 1; $i > 0; $i--) {
207
+                $myIndent = $indent.str_repeat('        ', $i - 1);
209 208
                 $html .= /*$myIndent . '    </li>' . PHP_EOL
210
-                    . */ $myIndent . '</' . $this->getTagname() . '>' . PHP_EOL;
209
+                    . */ $myIndent.'</'.$this->getTagname().'>'.PHP_EOL;
211 210
             }
212 211
             $html = rtrim($html, PHP_EOL);
213 212
         }
@@ -230,7 +229,7 @@  discard block
 block discarded – undo
230 229
      * @param string $tagname
231 230
      */
232 231
     public function setTagname($tagname) {
233
-        if ( null !== $tagname ) {
232
+        if (null !== $tagname) {
234 233
             $this->tagname = $tagname;
235 234
         }
236 235
         return $this;
Please login to merge, or discard this patch.
UIComponents/src/UIComponents/View/Helper/Components/Languagemenu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
                 
422 422
         } catch (\Exception $e) {
423 423
              
424
-            $msg = get_class($e) . ': ' . $e->getMessage() . "\n" . $e->getTraceAsString();
424
+            $msg = get_class($e).': '.$e->getMessage()."\n".$e->getTraceAsString();
425 425
             trigger_error($msg, E_USER_ERROR);
426 426
             return '';
427 427
     
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
 
447 447
         $list     = '';
448 448
         $current  = Locale::getDefault();
449
-        foreach($detector->getSupported() as $locale) {
449
+        foreach ($detector->getSupported() as $locale) {
450 450
             if ($this->omitCurrent() && $current === $locale) {
451 451
                 continue;
452 452
             }
@@ -461,22 +461,22 @@  discard block
 block discarded – undo
461 461
             $displayName = $this->getLocaleProperty('displayName', $locale, $labelLocale);
462 462
 
463 463
             $item = sprintf(
464
-                '<li><a href="%s" title="%s"%s>%s</a></li>' . "\n",
464
+                '<li><a href="%s" title="%s"%s>%s</a></li>'."\n",
465 465
                 $url,
466 466
                 $displayName,
467 467
                 ($current === $locale) ? ' class="active"' : '',
468
-                (($iconprefixclass) ? '<span class="' . $iconprefixclass . $primary . '"></span> ' : '') . $label
468
+                (($iconprefixclass) ? '<span class="'.$iconprefixclass.$primary.'"></span> ' : '').$label
469 469
             );
470 470
 
471 471
             $list .= $item;
472 472
         }
473 473
         $attributes = $this->getAttributes();
474
-        $html  = 
474
+        $html = 
475 475
             '<ul'.(($class) ? sprintf(' class="%s"', $class) : '').' '.($this->htmlAttribs($attributes)).'>'.
476 476
                 '<li'.(($liclass) ? sprintf(' class="%s"', $liclass) : '').'>'.
477 477
                     '<a href="" class="'.(($liclass) ? $liclass.'-toggle' : '').'" data-toggle="'.(($liclass) ? $liclass : '').'" role="button" aria-haspopup="true" aria-expanded="false" title="'.Locale::getDisplayName(null).'">'.
478 478
                         '<span class="'.(($iconprefixclass) ? $iconprefixclass : '').Locale::getPrimaryLanguage(null).'"></span> '.
479
-                        ''.Locale::getDisplayLanguage(null). // ' - '.Locale::getDefault().' - '.Locale::getPrimaryLanguage(null).''.
479
+                        ''.Locale::getDisplayLanguage(null).// ' - '.Locale::getDefault().' - '.Locale::getPrimaryLanguage(null).''.
480 480
                         '<span class="caret"></span>'.
481 481
                     '</a>'.
482 482
                        sprintf(
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/AbstractProxyHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,12 +205,12 @@
 block discarded – undo
205 205
             return false;
206 206
         }
207 207
 
208
-        $helper    = $plugins->get($proxy);
208
+        $helper = $plugins->get($proxy);
209 209
 
210 210
         if ($helper && ($helper instanceof \Zend\View\Helper\Navigation\Menu)) {
211 211
             
212 212
             $container = $this->getContainer();
213
-            $hash      = spl_object_hash($container) . spl_object_hash($helper);
213
+            $hash      = spl_object_hash($container).spl_object_hash($helper);
214 214
             if (!isset($this->injected[$hash])) {
215 215
                 $helper->setContainer();
216 216
                 $this->inject($helper);
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/AbstractHelper.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             
152 152
         } catch (\Exception $e) {
153 153
             
154
-            $msg = get_class($e) . ': ' . $e->getMessage() . "\n" . $e->getTraceAsString();
154
+            $msg = get_class($e).': '.$e->getMessage()."\n".$e->getTraceAsString();
155 155
             trigger_error($msg, E_USER_ERROR);
156 156
             return '';
157 157
             
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 
195 195
         /** @var \Zend\View\Helper\EscapeHtml $escaper */
196 196
         $escaper = $this->view->plugin('escapeHtml');
197
-        $label    = $escaper($label);
197
+        $label = $escaper($label);
198 198
 
199
-        return '<a' . $this->htmlAttribs($attribs) . '>' . $label . '</a>';
199
+        return '<a'.$this->htmlAttribs($attribs).'>'.$label.'</a>';
200 200
     }
201 201
 
202 202
     /**
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         $prefix = get_class($this);
213 213
         $prefix = strtolower(trim(substr($prefix, strrpos($prefix, '\\')), '\\'));
214 214
 
215
-        return $prefix . '-' . $value;
215
+        return $prefix.'-'.$value;
216 216
     }
217 217
 
218 218
     //
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     public function buildComponent() {
226 226
         $html = ' '.__CLASS__.' ';
227
-        if ( empty($this->getTagname()) ) {
227
+        if (empty($this->getTagname())) {
228 228
             return '';
229 229
         }
230 230
         
@@ -235,11 +235,11 @@  discard block
 block discarded – undo
235 235
         $body = $this->getContent();
236 236
         
237 237
         $content = (array($header, $body, $footer));
238
-        if ( is_array($body) && !isset($body["tagname"])) {
238
+        if (is_array($body) && !isset($body["tagname"])) {
239 239
             $content = array_merge(array($header), ($body), array($footer));
240 240
         }
241 241
         
242
-        $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array)$this->getAttributes(), $content);
242
+        $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array) $this->getAttributes(), $content);
243 243
 
244 244
         return $component;
245 245
 
@@ -259,29 +259,29 @@  discard block
 block discarded – undo
259 259
         $html = '';
260 260
         $html .= '<'.$tagname.''.((isset($classnames) && !empty($classnames)) ? ' class="'.$classnames.'"' : '').' '.$this->htmlAttribs($attributes).'>';
261 261
         if (!empty($content)) {
262
-            if ( $content instanceof AbstractHelper ) {
262
+            if ($content instanceof AbstractHelper) {
263 263
                 $html .= $content->render();
264
-            } else if ( is_array($content) && isset($content['tagname']) ) {
264
+            } else if (is_array($content) && isset($content['tagname'])) {
265 265
                 $html .= $this->_createElement(
266 266
                     $content['tagname'],
267 267
                     (isset($content['classnames']) && !empty($content['classnames']) ? $content['classnames'] : (isset($content['class']) && !empty($content['class']) ? $content['class'] : '')),
268 268
                     (isset($content['attributes']) && !empty($content['attributes']) ? $content['attributes'] : (isset($content['attr']) && !empty($content['attr']) ? $content['attr'] : '')),
269 269
                     (isset($content['content']) && !empty($content['content']) ? $content['content'] : '')
270 270
                 );
271
-            } else if ( is_array($content) ) {
271
+            } else if (is_array($content)) {
272 272
                 foreach ($content as $key => $item) {
273
-                    if ( $item instanceof AbstractHelper ) {
273
+                    if ($item instanceof AbstractHelper) {
274 274
                         $html .= $item->render();
275
-                    } else if ( is_array($item) && isset($item['tagname']) ) {
275
+                    } else if (is_array($item) && isset($item['tagname'])) {
276 276
                         $html .= $this->_createElement(
277 277
                             $item['tagname'],
278 278
                             (isset($item['classnames']) && !empty($item['classnames']) ? $item['classnames'] : (isset($item['class']) && !empty($item['class']) ? $item['class'] : '')),
279
-                            (array)(isset($item['attributes']) && !empty($item['attributes']) ? $item['attributes'] : (isset($item['attr']) && !empty($item['attr']) ? $item['attr'] : '')),
279
+                            (array) (isset($item['attributes']) && !empty($item['attributes']) ? $item['attributes'] : (isset($item['attr']) && !empty($item['attr']) ? $item['attr'] : '')),
280 280
                             (isset($item['content']) && !empty($item['content']) ? $item['content'] : '')
281 281
                         );
282
-                    } else if ( is_array($item) ) {
282
+                    } else if (is_array($item)) {
283 283
                         foreach ($content as $key => $value) {
284
-                            $html .= (string)$value;
284
+                            $html .= (string) $value;
285 285
                         }
286 286
                     } else {
287 287
                         $html .= $item;
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      * @param string $tagname
317 317
      */
318 318
     public function setTagname($tagname) {
319
-        if ( null !== $tagname ) {
319
+        if (null !== $tagname) {
320 320
             $this->tagname = $tagname;
321 321
         }
322 322
         return $this;
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      * @param mixed $header
338 338
      */
339 339
     public function setHeader($header) {
340
-        if ( null !== $header ) {
340
+        if (null !== $header) {
341 341
             $this->header = $header;
342 342
         }
343 343
         return $this;
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      * @param mixed $footer
359 359
      */
360 360
     public function setFooter($footer = null) {
361
-        if ( null !== $footer ) {
361
+        if (null !== $footer) {
362 362
             $this->footer = $footer;
363 363
         }
364 364
         return $this;
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
      * @return the $_DOMDoc
389 389
      */
390 390
     public function getDOMDoc() {
391
-        if ( ! $this->_DOMDoc instanceof \DOMDocument ) {
391
+        if (!$this->_DOMDoc instanceof \DOMDocument) {
392 392
             $this->_DOMDoc = new \DOMDocument();
393 393
         }
394 394
         return $this->_DOMDoc;
Please login to merge, or discard this patch.
module/UIComponents/src/UIComponents/View/Helper/Utilities/AppLogo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function render($container = null)
43 43
     {
44
-        $config = new \Zend\Config\Config( $this->getServiceLocator()->getServiceLocator()->get('Config') );
44
+        $config = new \Zend\Config\Config($this->getServiceLocator()->getServiceLocator()->get('Config'));
45 45
         return $config->get('app')->get('logo');
46 46
     }
47 47
     
Please login to merge, or discard this patch.