From 246955c59a5add5046aa86a6109f9f7ade8eb311 Mon Sep 17 00:00:00 2001 From: QWp6t Date: Mon, 28 Dec 2015 15:28:21 -0800 Subject: [PATCH] Use phpcs.xml for all rules --- .travis.yml | 1 - phpcs-templates.xml | 43 ----------------------------------------- phpcs.xml | 47 ++++++++++++++++++++++++++++++++++++++++++--- src/filters.php | 2 +- 4 files changed, 45 insertions(+), 48 deletions(-) delete mode 100644 phpcs-templates.xml diff --git a/.travis.yml b/.travis.yml index 5d2ecc03c3..6b8492a235 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,5 +44,4 @@ install: script: - npm run build - phpcs --report=summary - - phpcs --report=summary --standard=phpcs-templates.xml -n - phpmd src text cleancode,codesize,controversial,design,naming,unusedcode diff --git a/phpcs-templates.xml b/phpcs-templates.xml deleted file mode 100644 index ce1fba4be7..0000000000 --- a/phpcs-templates.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - Roots Templates Coding Standards - - - templates - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpcs.xml b/phpcs.xml index 7dd833312a..a6e629bb2a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -3,8 +3,9 @@ Roots Coding Standards - functions.php - src + templates + functions.php + src @@ -14,7 +15,47 @@ - + + + + + templates + + + + + templates + + + + + templates + + + + + templates + + + + + templates + + + + + templates + + + + + templates + + + + + templates + diff --git a/src/filters.php b/src/filters.php index 90a95ec27c..4e1fe334e1 100644 --- a/src/filters.php +++ b/src/filters.php @@ -8,7 +8,7 @@ * @link https://codex.wordpress.org/Conditional_Tags */ add_filter('sage/display_sidebar', function ($display) { - // The sidebar will NOT be displayed if ANY of the following return true + // The sidebar will NOT be displayed if ANY of the following return true return $display ? !in_array(true, [ is_404(), is_front_page(),