Skip to content

Commit a523d70

Browse files
author
Sébastien HEYD
committed
refactor(cs): enforce space after NOT operator in code standards
- Add Generic.Formatting.SpaceAfterNot rule to phpcs.xml - Update theme.php to use spaced NOT operator syntax
1 parent 9517465 commit a523d70

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
117117
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
118118
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
119+
<rule ref="Generic.Formatting.SpaceAfterNot"/>
119120
<rule ref="Zend.Files.ClosingTag"/>
120121

121122
<file>src</file>

src/config/theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Check if theme exists
77
$themePath = __DIR__.'/themes/'.$selectedTheme.'.php';
8-
if (!file_exists($themePath)) {
8+
if (! file_exists($themePath)) {
99
$selectedTheme = 'default';
1010
$themePath = __DIR__.'/themes/default.php';
1111
}

0 commit comments

Comments
 (0)