emacs-php / emacs-php/php-mode

Indentation issue with closure/anonymous functions

Open
#749 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
602
Forks
117
Avg merge
12h 54m
Merged PRs (30d)
3

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.