| @@ 1336-1341 (lines=6) @@ | ||
| 1333 | return true; |
|
| 1334 | } |
|
| 1335 | ||
| 1336 | if (PHP_CODESNIFFER_CBF === true |
|
| 1337 | && isset($element['phpcbf-only']) === true |
|
| 1338 | && (string) $element['phpcbf-only'] === 'true' |
|
| 1339 | ) { |
|
| 1340 | return true; |
|
| 1341 | } |
|
| 1342 | ||
| 1343 | if (PHP_CODESNIFFER_CBF === false |
|
| 1344 | && isset($element['phpcs-only']) === true |
|
| @@ 1343-1348 (lines=6) @@ | ||
| 1340 | return true; |
|
| 1341 | } |
|
| 1342 | ||
| 1343 | if (PHP_CODESNIFFER_CBF === false |
|
| 1344 | && isset($element['phpcs-only']) === true |
|
| 1345 | && (string) $element['phpcs-only'] === 'true' |
|
| 1346 | ) { |
|
| 1347 | return true; |
|
| 1348 | } |
|
| 1349 | ||
| 1350 | return false; |
|
| 1351 | ||