-
-
Notifications
You must be signed in to change notification settings - Fork 193
Closed
doctrine/dbal
#4120Labels
Description
$ composer show | grep -P 'coding-standard|php_codesniffer'
doctrine/coding-standard 8.0.0 The Doctrine Coding Standard is a ...
slevomat/coding-standard 6.3.8 Slevomat Coding Standard for PHP_C...
squizlabs/php_codesniffer 3.5.5 PHP_CodeSniffer tokenizes PHP, Jav...
Consider the following code example:
<?php
namespace Foo;
use const E_ALL;
use const E_NOTICE;
echo E_ALL & ~E_NOTICE;The following violation is reported:
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
5 | ERROR | [x] Type E_ALL is not used in this file.
| | (SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse)
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
After a fix, the file will look like this:
<?php
namespace Foo;
use const E_NOTICE;
echo E_ALL & ~E_NOTICE;Reactions are currently unavailable