Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Beautifier/Filter/ArrayNested.filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function t_parenthesis_close($sTag)
*/
public function t_comma($sTag)
{
$this->oBeaut->removeWhitespace();
if ($this->oBeaut->getControlParenthesis() != T_ARRAY) {
$this->oBeaut->add($sTag . ' ');
} else {
Expand Down
6 changes: 3 additions & 3 deletions tests/Beautifier/Filter/arraynested_sample_file.phps
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ array(
1,
2,
3
) ,
'function_result' => sprintf("Function result", "Function result") ,
),
'function_result' => sprintf("Function result", "Function result"),
'example_array' => array(
1,
2,
3
) ,
),
'example' => null,
);
?>