Skip to content

Commit f8e18ef

Browse files
📦 Rename to be similar to Phpcs
1 parent b1d3cc9 commit f8e18ef

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

TwigCS/Sniff/Standard/ForbidCommentedCodeSniff.php renamed to TwigCS/Sniff/Standard/DisallowCommentedCodeSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* This will be triggered if `{{` or `{%` is found inside a comment.
1313
*/
14-
class ForbidCommentedCodeSniff extends AbstractSniff
14+
class DisallowCommentedCodeSniff extends AbstractSniff
1515
{
1616
/**
1717
* @param Token $token
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace TwigCS\Tests\Sniff;
4+
5+
use TwigCS\Sniff\Standard\DisallowCommentedCodeSniff;
6+
use TwigCS\Tests\AbstractSniffTest;
7+
8+
/**
9+
* Class DisallowCommentedCodeTest
10+
*/
11+
class DisallowCommentedCodeTest extends AbstractSniffTest
12+
{
13+
public function testSniff()
14+
{
15+
$this->checkGenericSniff(new DisallowCommentedCodeSniff(), [
16+
[2, 5],
17+
]);
18+
}
19+
}

TwigCS/Tests/Sniff/ForbidCommentedCodeTest.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)