From a94700177243aacd34d34879804dc692f824ebd1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 23 Apr 2023 20:14:04 +0100 Subject: [PATCH] fix(phpcs): duplicate Drupal rule --- templates/php/phpcs.xml.twig | 60 +++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/templates/php/phpcs.xml.twig b/templates/php/phpcs.xml.twig index e79e175..656cab6 100644 --- a/templates/php/phpcs.xml.twig +++ b/templates/php/phpcs.xml.twig @@ -2,37 +2,39 @@ - PHPCS configuration file for {{ name }}. + PHPCS configuration file for {{ name }}. - {% for path in php.phpcs.paths|default('[]') %} - {{ path }} - {% endfor %} + {% for path in php.phpcs.paths|default('[]') %} + {{ path }} + {% endfor %} - + - {% for standard in php.phpcs.standards|default(['Drupal', 'DrupalPractice']) %} - - {% endfor %} + {% for standard in php.phpcs.standards|default(['Drupal', 'DrupalPractice']) %} + {% if not standard is same as "Drupal" %} + + {% endif %} + {% endfor %} - {% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %} - - - - - - - - - - - - - - - - - - - - {% endif %} + {% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %} + + + + + + + + + + + + + + + + + + + + {% endif %}