Skip to content

Commit 5449fd4

Browse files
author
Nikolay Shapovalov
committed
move
1 parent 2966699 commit 5449fd4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

coder_sniffer/Drupal/Sniffs/Classes/TestSniff.php renamed to coder_sniffer/DrupalPractice/Sniffs/General/AttributeHookNoHookPrefix.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22
/**
3-
* \Drupal\Sniffs\Classes\FullyQualifiedNamespaceSniff.
3+
* \Drupal\Sniffs\General\AttributeHookNoHookPrefix.
44
*
55
* @category PHP
66
* @package PHP_CodeSniffer
77
* @link http://pear.php.net/package/PHP_CodeSniffer
88
*/
99

10-
namespace Drupal\Sniffs\Classes;
10+
namespace DrupalPractice\Sniffs\General;
1111

1212
use PHP_CodeSniffer\Files\File;
1313
use PHP_CodeSniffer\Sniffs\Sniff;
@@ -19,7 +19,7 @@
1919
* @package PHP_CodeSniffer
2020
* @link http://pear.php.net/package/PHP_CodeSniffer
2121
*/
22-
class TestSniff implements Sniff
22+
class AttributeHookNoHookPrefix implements Sniff
2323
{
2424

2525

@@ -52,12 +52,6 @@ public function register()
5252
public function process(File $phpcsFile, $stackPtr)
5353
{
5454
$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;
6155

6256
if ($tokens[$stackPtr + 1]['type'] === 'T_STRING'
6357
&& $tokens[$stackPtr + 1]['content'] === 'Hook'

0 commit comments

Comments
 (0)