Skip to content

Commit b363360

Browse files
committed
Deleted extra whitespace
1 parent 798e7aa commit b363360

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Generic/Sniffs/NamingConventions/InterfaceSuffixRequiredForInterfaceSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function process(File $phpcsFile, $stackPtr)
4343
return;
4444
}
4545

46-
$suffix = substr($interfaceName, - 9);
46+
$suffix = substr($interfaceName, -9);
4747
if (strtolower($suffix) !== 'interface') {
4848
$phpcsFile->addError('Interfaces MUST be suffixed by Interface: e.g. BarInterface. Found: %s', $stackPtr, 'Missing', [$interfaceName]);
4949
}

src/Standards/Generic/Sniffs/NamingConventions/TraitSuffixRequiredForTraitSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function process(File $phpcsFile, $stackPtr)
4343
return;
4444
}
4545

46-
$suffix = substr($traitName, - 5);
46+
$suffix = substr($traitName, -5);
4747
if (strtolower($suffix) !== 'trait') {
4848
$phpcsFile->addError('Traits MUST be suffixed by Trait: e.g. BarTrait. Found: %s', $stackPtr, 'Missing', [$traitName]);
4949
}

0 commit comments

Comments
 (0)