commit 613199bc680eec3975c2466a24c517729066062a Author: Joel Pittet Date: Tue Jul 8 01:41:15 2014 -0700 coding standards indent 2 spaces, and no need to init attributes because it's an array. diff --git a/core/modules/system/templates/menu-tree.html.twig b/core/modules/system/templates/menu-tree.html.twig index 1d47cd9..5560086 100644 --- a/core/modules/system/templates/menu-tree.html.twig +++ b/core/modules/system/templates/menu-tree.html.twig @@ -27,14 +27,14 @@ */ #} {% if tree -%} - {%- if heading -%} - {%- if heading.level -%} - <{{ heading.level }}{{ heading.attributes }}>{{ heading.text }} - {%- else -%} - {{ heading.text }} - {%- endif -%} + {%- if heading -%} + {%- if heading.level -%} + <{{ heading.level }}{{ heading.attributes }}>{{ heading.text }} + {%- else -%} + {{ heading.text }} {%- endif -%} - - {{ tree }} - + {%- endif -%} + + {{ tree }} + {%- endif %} diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme index 2431c66..47805fc 100644 --- a/core/themes/bartik/bartik.theme +++ b/core/themes/bartik/bartik.theme @@ -140,9 +140,6 @@ function bartik_preprocess_block(&$variables) { * @see template_preprocess_menu_tree() */ function bartik_preprocess_menu_tree(&$variables) { - if (!isset($variables['attributes']['class'])) { - $variables['attributes']['class'] = array(); - } $variables['attributes']['class'][] = 'clearfix'; }