emacs-php / php-mode

A powerful and flexible Emacs major mode for editing PHP scripts
GNU General Public License v3.0
580 stars 118 forks source link

Indentation issue with closure/anonymous functions #749

Open dgiglio opened 11 months ago

dgiglio commented 11 months ago

For example here:

$tbl_absences[$r++] = array_replace($row,
                                    array_combine(array_map(function($vals): int { return date("d", strtotime($vals));}, $absences),
                                    array_values(array_column($subresult,'sigla'))));

But, since array_values(...) is the second array_map() parameter, it should be:

$tbl_absences[$r++] = array_replace($row,
                                    array_combine(array_map(function($vals): int { return date("d", strtotime($vals));}, $absences),
                                                            array_values(array_column($subresult,'sigla'))));

Do you agree?