diff --git a/templates/php/phpcs.xml.twig b/templates/php/phpcs.xml.twig index 185bb76..e79e175 100644 --- a/templates/php/phpcs.xml.twig +++ b/templates/php/phpcs.xml.twig @@ -3,9 +3,36 @@ PHPCS configuration file for {{ name }}. - src + + {% for path in php.phpcs.paths|default('[]') %} + {{ path }} + {% endfor %} + + {% for standard in php.phpcs.standards|default(['Drupal', 'DrupalPractice']) %} {% endfor %} + + {% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards %} + + + + + + + + + + + + + + + + + + + + {% endif %}