From 01efe81008b5421d487beba282a68c7e66c2817b Mon Sep 17 00:00:00 2001
From: Michael Fanini <michael.fanini@gmail.com>
Date: Thu, 13 Feb 2025 14:11:56 +0100
Subject: [PATCH] Issue #3506437 by g4mbini: [4.0.0-beta2] Lint templates
 folder

---
 templates/menu/menu--account.html.twig        |  2 +-
 templates/menu/menu--main.html.twig           |  4 ++--
 templates/system/breadcrumb.html.twig         |  4 ++--
 templates/system/menu-local-task.html.twig    |  4 ++--
 templates/system/menu-local-tasks.html.twig   |  8 ++++----
 templates/system/page.html.twig               | 20 +++++++++----------
 templates/system/pager.html.twig              |  4 ++--
 templates/system/status-messages.html.twig    |  4 ++--
 .../ui-patterns-overview-page.html.twig       |  8 ++++----
 .../ui-patterns-stories-full.html.twig        |  2 +-
 templates/views/views-mini-pager.html.twig    |  4 ++--
 11 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/templates/menu/menu--account.html.twig b/templates/menu/menu--account.html.twig
index 5b6bd82..3db6dae 100644
--- a/templates/menu/menu--account.html.twig
+++ b/templates/menu/menu--account.html.twig
@@ -25,5 +25,5 @@
   {{ include('ui_suite_daisyui:button', {
   url: item.url.toString(),
   label: item.title,
-  }, with_context = false) }}
+  }, with_context: false) }}
 {% endfor %}
diff --git a/templates/menu/menu--main.html.twig b/templates/menu/menu--main.html.twig
index fc15852..ef7652e 100644
--- a/templates/menu/menu--main.html.twig
+++ b/templates/menu/menu--main.html.twig
@@ -25,6 +25,6 @@
   {{ include('ui_suite_daisyui:menu', {
   items: items,
   variant: 'horizontal__md',
-  collapsible: 'closed'
-  }, with_context = false) }}  
+  collapsible: 'closed',
+  }, with_context: false) }}
 {% endif %}
diff --git a/templates/system/breadcrumb.html.twig b/templates/system/breadcrumb.html.twig
index 8112b05..9a68cb2 100644
--- a/templates/system/breadcrumb.html.twig
+++ b/templates/system/breadcrumb.html.twig
@@ -11,6 +11,6 @@
 #}
 {% if breadcrumb %}
   {{ include('ui_suite_daisyui:breadcrumbs', {
-  items: breadcrumb
-  }, with_context = false) }}  
+  items: breadcrumb,
+  }, with_context: false) }}
 {% endif %}
diff --git a/templates/system/menu-local-task.html.twig b/templates/system/menu-local-task.html.twig
index 6e8fe95..345fb79 100644
--- a/templates/system/menu-local-task.html.twig
+++ b/templates/system/menu-local-task.html.twig
@@ -20,5 +20,5 @@
 {{ include('ui_suite_daisyui:tab', {
   attributes: attributes,
   active: is_active|default(false),
-  link: link
-}, with_context = false) }}  
+  link: link,
+}, with_context: false) }}
diff --git a/templates/system/menu-local-tasks.html.twig b/templates/system/menu-local-tasks.html.twig
index 4c00a4d..d569320 100644
--- a/templates/system/menu-local-tasks.html.twig
+++ b/templates/system/menu-local-tasks.html.twig
@@ -18,14 +18,14 @@
   {{ include('ui_suite_daisyui:tabs', {
   variant: 'lifted',
   items: primary,
-  attributes: attributes.addClass('pb-3')
-  }, with_context = false) }}  
+  attributes: attributes.addClass('pb-3'),
+  }, with_context: false) }}
 {% endif %}
 {% if secondary %}
   <h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
   {{ include('ui_suite_daisyui:tabs', {
   variant: 'bordered',
   items: secondary,
-  attributes: attributes.addClass('pb-3')
-  }, with_context = false) }}  
+  attributes: attributes.addClass('pb-3'),
+  }, with_context: false) }}
 {% endif %}
diff --git a/templates/system/page.html.twig b/templates/system/page.html.twig
index 20d6c4d..5533f9d 100644
--- a/templates/system/page.html.twig
+++ b/templates/system/page.html.twig
@@ -50,8 +50,8 @@
   {{ include('ui_suite_daisyui:navbar', {
   start: page.navbar_start,
   center: page.navbar_center,
-  end: page.navbar_end
-  }, with_context = false) }}  
+  end: page.navbar_end,
+  }, with_context: false) }}
 
   <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
   <main role="main">
@@ -59,17 +59,17 @@
       {{ include('ui_suite_daisyui:grid_2_regions', {
       col_first: page.sidebar,
       col_second: page.content,
-      col_span: ["col-span-3", "col-span-9"],
-      col_span_lg: ["lg:col-span-3", "lg:col-span-9"],
-      col_span_md: ["md:col-span-4", "md:col-span-8"],
-      col_span_sm: ["sm:col-span-12", "sm:col-span-12"],
-      }, with_context = false) }}  
+      col_span: ['col-span-3', 'col-span-9'],
+      col_span_lg: ['lg:col-span-3', 'lg:col-span-9'],
+      col_span_md: ['md:col-span-4', 'md:col-span-8'],
+      col_span_sm: ['sm:col-span-12', 'sm:col-span-12'],
+      }, with_context: false) }}
     {% else %}
       {{ include('ui_suite_daisyui:grid_1_region', {
       col_first: page.content,
-      grid_cols: "grid-cols-12",
-      col_span: "col-span-12",
-      }, with_context = false) }}  
+      grid_cols: 'grid-cols-12',
+      col_span: 'col-span-12',
+      }, with_context: false) }}
     {% endif %}
   </main>
 
diff --git a/templates/system/pager.html.twig b/templates/system/pager.html.twig
index 3256e53..a1fca5e 100644
--- a/templates/system/pager.html.twig
+++ b/templates/system/pager.html.twig
@@ -35,6 +35,6 @@
 #}
 {% if items %}
   {{ include('ui_suite_daisyui:pagination', {
-  items: items
-  }, with_context = false) }} 
+  items: items,
+  }, with_context: false) }}
 {% endif %}
diff --git a/templates/system/status-messages.html.twig b/templates/system/status-messages.html.twig
index de1c1ff..30b13c2 100644
--- a/templates/system/status-messages.html.twig
+++ b/templates/system/status-messages.html.twig
@@ -37,8 +37,8 @@
       #}
       {{ include('ui_suite_daisyui:alert', {
       variant: variant,
-      message: message
-      }, with_context = false) }} 
+      message: message,
+      }, with_context: false) }}
     {% endfor %}
   {% endfor %}
 </div>
diff --git a/templates/ui_patterns_library/ui-patterns-overview-page.html.twig b/templates/ui_patterns_library/ui-patterns-overview-page.html.twig
index 0c11587..942aee4 100644
--- a/templates/ui_patterns_library/ui-patterns-overview-page.html.twig
+++ b/templates/ui_patterns_library/ui-patterns-overview-page.html.twig
@@ -7,7 +7,7 @@
 {% if groups is not empty %}
   <div class="grid grid-cols-12">
   <div class="col-span-3">
-  {{ include('ui-patterns-overview-quicklinks.html.twig', {groups: groups}, with_context = false) }}
+  {{ include('ui-patterns-overview-quicklinks.html.twig', {groups: groups}, with_context: false) }}
   </div>
   <div class="col-span-9">
   {% for components in groups %}
@@ -17,11 +17,11 @@
           <a href="{{ url('ui_patterns_library.single', {provider: component.provider, machineName: component.machineName}) }}"
              class="component__link link">{{ component.name }}</a>
         </h2>
-        {{ include('ui-patterns-component-metadata.html.twig', {component: component}, with_context = false) }}
-        {{ include('ui-patterns-component-table.html.twig', {component: component}, with_context = false) }}
+        {{ include('ui-patterns-component-metadata.html.twig', {component: component}, with_context: false) }}
+        {{ include('ui-patterns-component-table.html.twig', {component: component}, with_context: false) }}
         {% if component.stories %}
           <div>
-          {{ include('ui-patterns-stories-compact.html.twig', {component: component}, with_context = false) }}
+          {{ include('ui-patterns-stories-compact.html.twig', {component: component}, with_context: false) }}
           </div>
         {% endif %}
       {% endfor %}
diff --git a/templates/ui_patterns_library/ui-patterns-stories-full.html.twig b/templates/ui_patterns_library/ui-patterns-stories-full.html.twig
index 2dd77a1..ec5b815 100644
--- a/templates/ui_patterns_library/ui-patterns-stories-full.html.twig
+++ b/templates/ui_patterns_library/ui-patterns-stories-full.html.twig
@@ -26,4 +26,4 @@
     {% if variant.description %}<p class="ui_patterns_variant__description my-4">{{ variant.description }}</p>{% endif %}
     {{ component_story(component_id, story_id, {}, {variant: variant_id}, true) }}
   </div>
-{% endmacro %}
\ No newline at end of file
+{% endmacro %}
diff --git a/templates/views/views-mini-pager.html.twig b/templates/views/views-mini-pager.html.twig
index 98991c4..f55cff8 100644
--- a/templates/views/views-mini-pager.html.twig
+++ b/templates/views/views-mini-pager.html.twig
@@ -15,6 +15,6 @@
 #}
 {% if items %}
   {{ include('ui_suite_daisyui:pagination', {
-  items: items
-  }, with_context = false) }} 
+  items: items,
+  }, with_context: false) }}
 {% endif %}
-- 
GitLab