|
3 | 3 | [](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers) |
4 | 4 | [](https://php.net) |
5 | 5 | [](LICENSE) |
6 | | - |
| 6 | + |
7 | 7 | [](https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers) |
8 | 8 |
|
9 | 9 | [](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions) |
@@ -280,16 +280,6 @@ There must be no useless parentheses. |
280 | 280 | +foo($bar); |
281 | 281 | ``` |
282 | 282 |
|
283 | | -#### NoUselessSprintfFixer |
284 | | -There must be no `sprintf` calls with only the first argument. |
285 | | - DEPRECATED: use `no_useless_sprintf` instead. |
286 | | - *Risky: when the `sprintf` function is overridden.* |
287 | | -```diff |
288 | | - <?php |
289 | | --$foo = sprintf('bar'); |
290 | | -+$foo = 'bar'; |
291 | | -``` |
292 | | - |
293 | 283 | #### NoUselessStrlenFixer |
294 | 284 | The `strlen` or` mb_strlen` functions should not be compared against 0. |
295 | 285 | *Risky: when the function `strlen` is overridden.* |
@@ -323,22 +313,6 @@ Configuration options: |
323 | 313 | +echo 01234567; // octal |
324 | 314 | ``` |
325 | 315 |
|
326 | | -#### OperatorLinebreakFixer |
327 | | -Operators - when multiline - must always be at the beginning or at the end of the line. |
328 | | - DEPRECATED: use `operator_linebreak` instead. |
329 | | -Configuration options: |
330 | | -- `only_booleans` (`bool`): whether to limit operators to only boolean ones; defaults to `false` |
331 | | -- `position` (`'beginning'`, `'end'`): whether to place operators at the beginning or at the end of the line; defaults to `'beginning'` |
332 | | -```diff |
333 | | - <?php |
334 | | - function foo() { |
335 | | -- return $bar || |
336 | | -- $baz; |
337 | | -+ return $bar |
338 | | -+ || $baz; |
339 | | - } |
340 | | -``` |
341 | | - |
342 | 316 | #### PhpUnitNoUselessReturnFixer |
343 | 317 | PHPUnit `fail`, `markTestIncomplete` and `markTestSkipped` functions should not be followed directly by return. |
344 | 318 | *Risky: when original PHPUnit methods are overwritten.* |
|
0 commit comments