File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
coder_sniffer/DrupalPractice/Sniffs/General Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * \Drupal\Sniffs\Classes\FullyQualifiedNamespaceSniff .
3
+ * \Drupal\Sniffs\General\AttributeHookNoHookPrefix .
4
4
*
5
5
* @category PHP
6
6
* @package PHP_CodeSniffer
7
7
* @link http://pear.php.net/package/PHP_CodeSniffer
8
8
*/
9
9
10
- namespace Drupal \Sniffs \Classes ;
10
+ namespace DrupalPractice \Sniffs \General ;
11
11
12
12
use PHP_CodeSniffer \Files \File ;
13
13
use PHP_CodeSniffer \Sniffs \Sniff ;
19
19
* @package PHP_CodeSniffer
20
20
* @link http://pear.php.net/package/PHP_CodeSniffer
21
21
*/
22
- class TestSniff implements Sniff
22
+ class AttributeHookNoHookPrefix implements Sniff
23
23
{
24
24
25
25
@@ -52,12 +52,6 @@ public function register()
52
52
public function process (File $ phpcsFile , $ stackPtr )
53
53
{
54
54
$ tokens = $ phpcsFile ->getTokens ();
55
- // $shortContent = '';
56
- // $end = $phpcsFile->findNext([T_ATTRIBUTE_END], ($stackPtr + 1));
57
- // for ($i = ($stackPtr + 1); $i < $end; $i++) {
58
- // $shortContent .= $tokens[$i]['content'];
59
- // }
60
- // $a = 1;
61
55
62
56
if ($ tokens [$ stackPtr + 1 ]['type ' ] === 'T_STRING '
63
57
&& $ tokens [$ stackPtr + 1 ]['content ' ] === 'Hook '
You can’t perform that action at this time.
0 commit comments