Skip to content

Commit 61a070d

Browse files
committed
Add DisallowShortOpenTagSniff
1 parent 27162d0 commit 61a070d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php declare(strict_types=1); # -*- coding: utf-8 -*-
2+
/*
3+
* This file is part of the php-coding-standards package.
4+
*
5+
* (c) Inpsyde GmbH
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
namespace Inpsyde\InpsydeCodingStandard\Sniffs\CodeQuality;
12+
13+
use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowShortOpenTagSniff as GenericShortOpenTagSniff;
14+
15+
/**
16+
* @package php-coding-standards
17+
* @license http://opensource.org/licenses/MIT MIT
18+
*/
19+
final class DisallowShortOpenTagSniff extends GenericShortOpenTagSniff
20+
{
21+
/**
22+
* @return int[]
23+
*/
24+
public function register()
25+
{
26+
return [
27+
T_OPEN_TAG,
28+
T_INLINE_HTML,
29+
];
30+
}
31+
}

0 commit comments

Comments
 (0)