Skip to content

Commit

Permalink
[TASK] disable php-cs-fixer yoda conditions (#794)
Browse files Browse the repository at this point in the history
[TASK] Disable php-cs-fixer Yoda conditions

Regarding: #791, #778 (comment)
  • Loading branch information
SignpostMarv authored and JakeQZ committed Oct 5, 2019
1 parent b8fa86b commit 6f9d875
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z

### Added
- Disable php-cs-fixer Yoda conditions
([#791](https://github.com/MyIntervals/emogrifier/issues/791),
[#794](https://github.com/MyIntervals/emogrifier/pull/794))
- Check the code with psalm
([#537](https://github.com/MyIntervals/emogrifier/issues/537),
[#779](https://github.com/MyIntervals/emogrifier/pull/779))
Expand Down
5 changes: 5 additions & 0 deletions config/php-cs-fixer.php
Expand Up @@ -94,5 +94,10 @@
'trailing_comma_in_multiline_array' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
]
);

0 comments on commit 6f9d875

Please sign in to comment.