mrchrisadams/WordPress-Coding-Standards — Issue #6: Multi-line function definition not indented correctly
Author: erodesign
Created: 2012-02-05 23:16:17+00:00
State: open

Hello,

Being relatively new with this I hope it would be OK to ask in perhaps not that many technical terms.

I was wondering on how to write this snippet best:

``` _x( 'Mogelijkheden', 'taxonomy general name' ),
'singular_name' => _x( 'Mogelijkheid', 'taxonomy singular name' ),
);
register_taxonomy(
'mogelijkheid',
array( 'product' ),
array(
'labels' => $labels,
'hierarchical' => true,
'query_var' => true,
'rewrite' => array(
'hierarchical' => true,
'slug' => 'mogelijkheid',
'with_front' => false,
),
'public' => true,
'show_ui' => true,
)
);
}
```

as I'm currently receiving this error:

```--------------------------------------------------------------------------------
FOUND 3 ERROR(S) AFFECTING 3 LINE(S)
--------------------------------------------------------------------------------
9 | ERROR | Multi-line function definition not indented correctly; expected 6
| | spaces but found 4 (WordPress.Functions.FunctionCallSignature)
10 | ERROR | Multi-line function definition not indented correctly; expected 6
| | spaces but found 4 (WordPress.Functions.FunctionCallSignature)
11 | ERROR | Multi-line function definition not indented correctly; expected 6
| | spaces but found 4 (WordPress.Functions.FunctionCallSignature)
--------------------------------------------------------------------------------
```

I can understand why 4 spaces, but I'm somewhat lost on why 6.