We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db2e2e7 commit 45023fdCopy full SHA for 45023fd
Magento2/Sniffs/GraphQL/ValidTypeNameSniff.php
@@ -32,7 +32,7 @@ public function process(File $phpcsFile, $stackPtr)
32
//compose entity name by making use of the next strings that we find until we hit a non-string token
33
$name = '';
34
for ($i=$stackPtr+1; $tokens[$i]['code'] === T_STRING; ++$i) {
35
- $name .= $tokens[$i]['content'];
+ $name .= rtrim($tokens[$i]['content']);
36
}
37
38
$valid = Common::isCamelCaps($name, true, true, false);
0 commit comments