- Issue created by @ragnarkurm
Drupal.Functions.MultiLineFunctionDeclaration
breaks closure code.
1. Create test file b.php
:
<?php
$array = array_map(function ($nr) {return (int) $nr;}, $array);
2. Run phpcbf
:
phpcbf --standard=Drupal --sniffs=Drupal.Functions.MultiLineFunctionDeclaration ./b.php
3. Observe the resulting file:
<?php
$array = array_map(function ($nr) {
return (int) $nr;}, $array);
The Drupal.Functions.MultiLineFunctionDeclaration
should not break closures.
Active
8.3
Coder Sniffer