html
html copied to clipboard
Code style - chain calls
This is confusing:
https://github.com/yiisoft/html/blob/e62c412af927a93df6cfa603bf63d61b1bf19045/tests/common/Tag/Base/TagTest.php#L156-L158
Need to decide whether it's OK:
https://github.com/yiisoft/html/blob/e62c412af927a93df6cfa603bf63d61b1bf19045/tests/common/Tag/Base/TagTest.php#L175
Either it should be the following:
$this->assertSame(
$expected,
(string)TestTag::tag()
->class('main')
->class(...$class)
);
or inline.