Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Jun 4, 2012
1 parent 6042bbc commit d8213ac
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions accepted/PSR-2-coding-style-guide.md
Expand Up @@ -355,9 +355,9 @@ next line, and there MUST be only one argument per line.
```php
<?php
$foo->bar(
$longArgument,
$longerArgument,
$muchLongerArgument
$longArgument,
$longerArgument,
$muchLongerArgument
);
```

Expand Down Expand Up @@ -516,11 +516,11 @@ parentheses, commas, spaces, and braces:
```php
<?php
$closureWithArgs = function ($arg1, $arg2) {
// body
// body
};

$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2) {
// body
// body
};
```

Expand All @@ -539,45 +539,45 @@ variable lists split across multiple lines.
```php
<?php
$longArgs_noVars = function (
$longArgument,
$longerArgument,
$muchLongerArgument
$longArgument,
$longerArgument,
$muchLongerArgument
) {
// body
};

$noArgs_longVars = function () use (
$longVar1,
$longerVar2,
$muchLongerVar3
$longVar1,
$longerVar2,
$muchLongerVar3
) {
// body
};

$longArgs_longVars = function (
$longArgument,
$longerArgument,
$muchLongerArgument
$longArgument,
$longerArgument,
$muchLongerArgument
) use (
$longVar1,
$longerVar2,
$muchLongerVar3
$longVar1,
$longerVar2,
$muchLongerVar3
) {
// body
};

$longArgs_shortVars = function (
$longArgument,
$longerArgument,
$muchLongerArgument
$longArgument,
$longerArgument,
$muchLongerArgument
) use ($var1) {
// body
};

$shortArgs_longVars = function ($arg) use (
$longVar1,
$longerVar2,
$muchLongerVar3
$longVar1,
$longerVar2,
$muchLongerVar3
) {
// body
};
Expand Down

0 comments on commit d8213ac

Please sign in to comment.