vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/PHP/DisallowAlternativePHPTagsSniff.php 1 location
|
@@ 58-63 (lines=6) @@
|
| 55 |
|
*/ |
| 56 |
|
public function register() |
| 57 |
|
{ |
| 58 |
|
if ($this->_phpVersion === null) { |
| 59 |
|
$this->_phpVersion = PHP_CodeSniffer::getConfigData('php_version'); |
| 60 |
|
if ($this->_phpVersion === null) { |
| 61 |
|
$this->_phpVersion = PHP_VERSION_ID; |
| 62 |
|
} |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
if ($this->_phpVersion < 70000) { |
| 66 |
|
$this->_aspTags = (boolean) ini_get('asp_tags'); |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Classes/ClassDeclarationSniff.php 1 location
|
@@ 65-70 (lines=6) @@
|
| 62 |
|
*/ |
| 63 |
|
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
| 64 |
|
{ |
| 65 |
|
if ($this->_phpVersion === null) { |
| 66 |
|
$this->_phpVersion = PHP_CodeSniffer::getConfigData('php_version'); |
| 67 |
|
if ($this->_phpVersion === null) { |
| 68 |
|
$this->_phpVersion = PHP_VERSION_ID; |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
$tokens = $phpcsFile->getTokens(); |
| 73 |
|
if (isset($tokens[$stackPtr]['scope_closer']) === false) { |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 248-253 (lines=6) @@
|
| 245 |
|
*/ |
| 246 |
|
protected function processParams(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) |
| 247 |
|
{ |
| 248 |
|
if ($this->_phpVersion === null) { |
| 249 |
|
$this->_phpVersion = PHP_CodeSniffer::getConfigData('php_version'); |
| 250 |
|
if ($this->_phpVersion === null) { |
| 251 |
|
$this->_phpVersion = PHP_VERSION_ID; |
| 252 |
|
} |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
$tokens = $phpcsFile->getTokens(); |
| 256 |
|
|