-
`SlevomatCodingStandard.Operators.NegationOperatorSpacing` returns a false positive when
assigning a negative number like `$a = -1` with property `spacesCount` set to zero.
Affected version: 6…
-
I have ForbiddenComments sniff set up. When phpcbf removes the comment and there is nothing left in the whole comment block, the comment block is removed. So far so good. But if there is other content…
-
When `ReferenceThrowableOnly` runs only on some files, changing the type from `Exception` to `Throwable` might lead to breaking code.
Real world use case: Implement an interface / override a class…
-
I have recently written some patches and noticed that in most files the indent was 2 spaces (Drupal standard), but in some files it was 4 space - random examples: src/Cli/Command/Issue/Link.php and sr…
-
The current grumphp version is the 0.17.2, when I try to install grumphp-phpcbf via composer I receive a requirement error:
```
Problem 1
- Installation request for insite/grumphp-phpcbf ^0.1.1…
-
Consider the following file:
```php
```
Fixing it using `phpcbf --standard=PSR2 test.php` makes it look like:
```php
-
## Problem
With complicated from the static analysis perspective cases the `` sniff breaks the code on fix.
## Example
Before conversion the snippet below simply checks makes sure that two keys a…
-
```
$ phpcs --version
PHP_CodeSniffer version 3.5.5 (stable) by Squiz (http://www.squiz.net)
$ phpcs src/Driver/SQLSrv/SQLSrvStatement.php
E 1 / 1 (100%)
FILE: src/Driver/SQLSrv/SQLSrvStateme…
-
Consider the code example:
```php
-
I'm using the standard as part of [doctrine/coding-standard](https://github.com/doctrine/coding-standard). Please consider the example:
```php