Completed
Push — development ( 0937b7...1a7c5e )
by Thomas
21s
created
htdocs/src/Oc/Menu/Renderer/MainRenderer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $options = array_merge($this->defaultOptions, $options);
54 54
 
55
-        $childrenClass = (array) $item->getChildrenAttribute('class');
55
+        $childrenClass = (array)$item->getChildrenAttribute('class');
56 56
 
57 57
         if ($options['listClass']) {
58 58
             $childrenClass[] = $options['listClass'];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             return '';
87 87
         }
88 88
 
89
-        $html = $this->format('<ul'.$this->renderHtmlAttributes($attributes).'>', 'ul', $item->getLevel(), $options);
89
+        $html = $this->format('<ul' . $this->renderHtmlAttributes($attributes) . '>', 'ul', $item->getLevel(), $options);
90 90
         $html .= $this->renderChildren($item, $options);
91 91
         $html .= $this->format('</ul>', 'ul', $item->getLevel(), $options);
92 92
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         // create an array than can be imploded as a class list
147
-        $class = (array) $item->getAttribute('class');
147
+        $class = (array)$item->getAttribute('class');
148 148
 
149 149
         if ($options['itemClass']) {
150 150
             $class[] = $options['itemClass'];
@@ -178,14 +178,14 @@  discard block
 block discarded – undo
178 178
         }
179 179
 
180 180
         // opening li tag
181
-        $html = $this->format('<li'.$this->renderHtmlAttributes($attributes).'>', 'li', $item->getLevel(), $options);
181
+        $html = $this->format('<li' . $this->renderHtmlAttributes($attributes) . '>', 'li', $item->getLevel(), $options);
182 182
 
183 183
         // render the text/link inside the li tag
184 184
         //$html .= $this->format($item->getUri() ? $item->renderLink() : $item->renderLabel(), 'link', $item->getLevel());
185 185
         $html .= $this->renderLink($item, $options);
186 186
 
187 187
         // renders the embedded ul
188
-        $childrenClass = (array) $item->getChildrenAttribute('class');
188
+        $childrenClass = (array)$item->getChildrenAttribute('class');
189 189
         if ($options['listClass']) {
190 190
             $childrenClass[] = $options['listClass'];
191 191
         }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
     protected function renderLinkElement(ItemInterface $item, array $options)
233 233
     {
234
-        $childrenClass = (array) $item->getChildrenAttribute('class');
234
+        $childrenClass = (array)$item->getChildrenAttribute('class');
235 235
 
236 236
         if ($options['linkClass']) {
237 237
             $childrenClass[] = $options['linkClass'];
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
     protected function renderSpanElement(ItemInterface $item, array $options)
247 247
     {
248
-        $childrenClass = (array) $item->getChildrenAttribute('class');
248
+        $childrenClass = (array)$item->getChildrenAttribute('class');
249 249
 
250 250
         if ($options['textClass']) {
251 251
             $childrenClass[] = $options['textClass'];
@@ -295,6 +295,6 @@  discard block
 block discarded – undo
295 295
                 break;
296 296
         }
297 297
 
298
-        return str_repeat(' ', $spacing).$html."\n";
298
+        return str_repeat(' ', $spacing) . $html . "\n";
299 299
     }
300 300
 }
Please login to merge, or discard this patch.