From 0da3cfa0baf2750f5f150009596bd942f1465140 Mon Sep 17 00:00:00 2001 From: Bartek Jaskulski <bartek.jaskulski@wpdesk.net> Date: Mon, 12 Jul 2021 12:43:49 +0000 Subject: [PATCH] fix: remove requiring bracket operator with inline if statements --- CHANGELOG.md | 4 ++++ WPDeskPlugin/ruleset.xml | 3 --- composer.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd6a911..e30095a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.2.3] - 2021-07-07 +### Changed +- Removed demanding brackets with inline if statement + ## [1.2.2] - 2021-06-16 ### Changed - Add phpcs.xml.dist and .editorconfig to package distribution as configuration examples to copy diff --git a/WPDeskPlugin/ruleset.xml b/WPDeskPlugin/ruleset.xml index cf634cc..a779dbd 100644 --- a/WPDeskPlugin/ruleset.xml +++ b/WPDeskPlugin/ruleset.xml @@ -96,9 +96,6 @@ These may make it into WPCS at some point. If so, they can be removed here. ############################################################################# --> - <!-- Error prevention: Make sure the condition in a inline if declaration is bracketed. --> - <rule ref="Squiz.ControlStructures.InlineIfDeclaration"/> - <!-- CS: no blank line between the content of a function and a function close brace.--> <rule ref="PSR2.Methods.FunctionClosingBrace"/> diff --git a/composer.json b/composer.json index 2666e1f..a01d5a2 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "homepage": "https://gitlab.com/wpdesk/wp-code-sniffer", "type": "phpcodesniffer-standard", "prefer-stable": true, - "version": "1.2.2", + "version": "1.2.3", "authors": [ { "name": "grola", -- GitLab