Repository navigation
Replies: 1 comment 2 replies
|
There are two separate things in that screenshot. I reproduced both with Mago 1.58.0. 1. The
print div(ob_get_clean() . div($search_btn, ['class' => 'criteria_element mb-3 row']), [
'class' => 'container-fluid',
]);
echo div(ob_get_clean() . div($search_btn, ['class' => 'criteria_element mb-3 row']), [
'class' => 'container-fluid',
]);There's no setting for this, so the simplest fix is 2. Getting your layout (every argument on its own line) What you're seeing is Mago hugging the last array argument ( [formatter]
preserve-breaking-argument-list = true
trailing-comma = falseWith that config, this input is kept exactly as written, and formatting the output again doesn't change it: echo div(
ob_get_clean() . div($search_btn, ['class' => 'criteria_element mb-3 row']),
['class' => 'container-fluid']
);Two notes:
|

Uh oh!
There was an error while loading. Please reload this page.
We're starting to make use of
mago formatand am having a little difficulty in knowing which formatting configuration options are available to adjust how the below would be formatted. Ideally, the final bracket/parenthesis would be at the same column as the start column of the call line.If I were to format this myself, I'd probably do the following:
Thanks!
All reactions