Skip to content

Formatting inline array and closures #30

@eddieajau

Description

@eddieajau

There are a few formats that seem to be gaining popularity. See the following examples:

// Inline array.
$foo = bar($arg1, array(
    'one',
    'two',
    'three',
), $arg3);

// Inline closure.
$container->share('database', function(Container $c) {
    // Return a database driver.
}, true);

How do people feel about those cases?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions