Skip to content

Indentation issue with closure/anonymous functions  #749

Open
@dgiglio

Description

@dgiglio

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions