Kohana v3.3.0
This commit is contained in:
22
vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php
vendored
Normal file
22
vendor/phpunit/php-text-template/build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
class PHPCS_Sniffs_ControlStructures_ControlSignatureSniff extends PHP_CodeSniffer_Standards_AbstractPatternSniff
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(true);
|
||||
}
|
||||
|
||||
protected function getPatterns()
|
||||
{
|
||||
return array(
|
||||
'do {EOL...} while (...);EOL',
|
||||
'while (...) {EOL',
|
||||
'for (...) {EOL',
|
||||
'if (...) {EOL',
|
||||
'foreach (...) {EOL',
|
||||
'}EOLelse if (...) {EOL',
|
||||
'}EOLelse {EOL',
|
||||
'do {EOL',
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user