Skip to content
Snippets Groups Projects
Commit 0da3cfa0 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: remove requiring bracket operator with inline if statements

parent 387e2f2a
No related branches found
No related tags found
1 merge request!9fix: remove requiring bracket operator with inline if statements
# Changelog # Changelog
## [1.2.3] - 2021-07-07
### Changed
- Removed demanding brackets with inline if statement
## [1.2.2] - 2021-06-16 ## [1.2.2] - 2021-06-16
### Changed ### Changed
- Add phpcs.xml.dist and .editorconfig to package distribution as configuration examples to copy - Add phpcs.xml.dist and .editorconfig to package distribution as configuration examples to copy
......
...@@ -96,9 +96,6 @@ ...@@ -96,9 +96,6 @@
These may make it into WPCS at some point. If so, they can be removed here. 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.--> <!-- CS: no blank line between the content of a function and a function close brace.-->
<rule ref="PSR2.Methods.FunctionClosingBrace"/> <rule ref="PSR2.Methods.FunctionClosingBrace"/>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"homepage": "https://gitlab.com/wpdesk/wp-code-sniffer", "homepage": "https://gitlab.com/wpdesk/wp-code-sniffer",
"type": "phpcodesniffer-standard", "type": "phpcodesniffer-standard",
"prefer-stable": true, "prefer-stable": true,
"version": "1.2.2", "version": "1.2.3",
"authors": [ "authors": [
{ {
"name": "grola", "name": "grola",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment