File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
SlevomatCodingStandard/Sniffs Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 77use PHP_CodeSniffer \Files \LocalFile ;
88use PHP_CodeSniffer \Runner ;
99use PHP_CodeSniffer \Sniffs \Sniff ;
10+ use PHP_CodeSniffer \Util \Common ;
1011use ReflectionClass ;
1112use function array_map ;
1213use function array_merge ;
@@ -165,21 +166,9 @@ protected static function getSniffClassName(): string
165166 return $ sniffClassName ;
166167 }
167168
168- private static function getSniffName (): string
169+ protected static function getSniffName (): string
169170 {
170- return preg_replace (
171- [
172- '~ \\\~ ' ,
173- '~\.Sniffs~ ' ,
174- '~Sniff$~ ' ,
175- ],
176- [
177- '. ' ,
178- '' ,
179- '' ,
180- ],
181- static ::getSniffClassName ()
182- );
171+ return Common::getSniffCode (static ::getSniffClassName ());
183172 }
184173
185174 private static function getSniffClassReflection (): ReflectionClass
You can’t perform that action at this time.
0 commit comments