vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 230-238 (lines=9) @@
|
| 227 |
|
$matches = array(); |
| 228 |
|
preg_match('/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $matches); |
| 229 |
|
|
| 230 |
|
if (empty($matches) === false) { |
| 231 |
|
$typeLen = strlen($matches[1]); |
| 232 |
|
$type = trim($matches[1]); |
| 233 |
|
$typeSpace = ($typeLen - strlen($type)); |
| 234 |
|
$typeLen = strlen($type); |
| 235 |
|
if ($typeLen > $maxType) { |
| 236 |
|
$maxType = $typeLen; |
| 237 |
|
} |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
if (isset($matches[2]) === true) { |
| 241 |
|
$var = $matches[2]; |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 275-283 (lines=9) @@
|
| 272 |
|
$matches = array(); |
| 273 |
|
preg_match('/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $matches); |
| 274 |
|
|
| 275 |
|
if (empty($matches) === false) { |
| 276 |
|
$typeLen = strlen($matches[1]); |
| 277 |
|
$type = trim($matches[1]); |
| 278 |
|
$typeSpace = ($typeLen - strlen($type)); |
| 279 |
|
$typeLen = strlen($type); |
| 280 |
|
if ($typeLen > $maxType) { |
| 281 |
|
$maxType = $typeLen; |
| 282 |
|
} |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
if (isset($matches[2]) === true) { |
| 286 |
|
$var = $matches[2]; |