@@ -21,10 +21,10 @@ |
||
21 | 21 | $str = Attributes::toString($attributes); |
22 | 22 | |
23 | 23 | return [ |
24 | - 'simple' => ['a', 'ABC', null, null, null, '<label for="a">ABC</label>',], |
|
25 | - 'with attributes' => ['a', 'ABC', $attributes, null, null, "<label$str for=\"a\">ABC</label>",], |
|
26 | - 'with translations' => ['a', 'ABC', null, ['ABC' => 'CBA'], null, '<label for="a">CBA</label>',], |
|
27 | - 'custom tag' => ['a', 'ABC', null, [], 'foo', '<foo for="a">ABC</foo>',], |
|
24 | + 'simple' => ['a', 'ABC', null, null, null, '<label for="a">ABC</label>', ], |
|
25 | + 'with attributes' => ['a', 'ABC', $attributes, null, null, "<label$str for=\"a\">ABC</label>", ], |
|
26 | + 'with translations' => ['a', 'ABC', null, ['ABC' => 'CBA'], null, '<label for="a">CBA</label>', ], |
|
27 | + 'custom tag' => ['a', 'ABC', null, [], 'foo', '<foo for="a">ABC</foo>', ], |
|
28 | 28 | ]; |
29 | 29 | } |
30 | 30 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ?array $attributes = null, |
39 | 39 | ?string $tag = null |
40 | 40 | ) { |
41 | - $attributes ??= []; |
|
41 | + $attributes ??= []; |
|
42 | 42 | $attributes = Attributes::addItem($attributes, Html5::ATTR_ID, $inputId); |
43 | 43 | if (!in_array(Html5::ATTR_ROWS, $attributes)) { |
44 | 44 | $attributes = Attributes::addItem($attributes, Html5::ATTR_ROWS, static::DEFAULT_ROW); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | Environment::setVar(Env::DIR_AUTH_CONFIG, '/tmp'); |
45 | 45 | Environment::setVar(Env::ENV_NAME, 'foo'); |
46 | 46 | |
47 | - file_put_contents('/tmp/model.conf', static::ACL); |
|
47 | + file_put_contents('/tmp/model.conf', static::ACL); |
|
48 | 48 | |
49 | 49 | $mockAdapter = $this->getMockBuilder(CombinedAdapter::class)->disableOriginalConstructor()->getMock(); |
50 | 50 |