Skip to content

Commit

Permalink
Fix style ci. (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jan 23, 2024
1 parent 55a2398 commit 6dedf76
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 27 deletions.
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ enabled:
disabled:
- function_declaration
- psr12_braces
- psr12_class_definition
1 change: 1 addition & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
__DIR__ . '/tests',
],
)
->withPhpCsFixerSets(perCS20: true)
->withPreparedSets(
arrays: true,
cleanCode: true,
Expand Down
4 changes: 1 addition & 3 deletions src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@
*
* @link https://html.spec.whatwg.org/multipage/forms.html#the-form-element
*/
final class Form extends Base\AbstractForm
{
}
final class Form extends Base\AbstractForm {}
4 changes: 1 addition & 3 deletions src/HtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
*
* @link https://developer.mozilla.org/en-US/docs/Glossary/Element
*/
final class HtmlBuilder extends Base\AbstractHtmlBuilder
{
}
final class HtmlBuilder extends Base\AbstractHtmlBuilder {}
4 changes: 1 addition & 3 deletions src/Input/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@
*
* @link https://www.w3.org/TR/2012/WD-html-markup-20120329/input.button.html#input.button
*/
final class Button extends Base\AbstractButton
{
}
final class Button extends Base\AbstractButton {}
4 changes: 1 addition & 3 deletions src/Input/ButtonGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@
*
* Pressing on the button should be handled via JavaScript. See the following for details:
*/
final class ButtonGroup extends Base\AbstractButtonGroup
{
}
final class ButtonGroup extends Base\AbstractButtonGroup {}
4 changes: 1 addition & 3 deletions src/Input/Hidden.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
*
* @link https://www.w3.org/TR/2012/WD-html-markup-20120329/input.hidden.html#input.hidden.attrs.value
*/
final class Hidden extends Base\AbstractHidden
{
}
final class Hidden extends Base\AbstractHidden {}
4 changes: 1 addition & 3 deletions src/Li.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
*
* @link https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element
*/
final class Li extends Base\AbstractLi
{
}
final class Li extends Base\AbstractLi {}
4 changes: 1 addition & 3 deletions src/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@
*
* @link https://www.w3.org/TR/2012/WD-html-markup-20120329/select.html
*/
final class Select extends Base\AbstractSelect
{
}
final class Select extends Base\AbstractSelect {}
4 changes: 1 addition & 3 deletions src/Svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@
*
* @link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg
*/
final class Svg extends Base\AbstractSvg
{
}
final class Svg extends Base\AbstractSvg {}
2 changes: 1 addition & 1 deletion tests/Attribute/Component/HasUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testImmutability(): void
use HasUrl;
};

$this->assertNotSame($instance, $instance->urlCreator(fn () => ''));
$this->assertNotSame($instance, $instance->urlCreator(fn() => ''));
$this->assertNotSame($instance, $instance->urlQueryParameters([]));
$this->assertNotSame($instance, $instance->urlPath(''));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Attribute/Custom/HasClosureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function testImmutability(): void
use HasClosure;
};

$this->assertNotSame($instance, $instance->closure(fn () => ''));
$this->assertNotSame($instance, $instance->closure(fn() => ''));
}
}
2 changes: 1 addition & 1 deletion tests/Attribute/HasDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function testClosure(): void
public array $attributes = [];
};

$closure = fn () => 'test-action';
$closure = fn() => 'test-action';
$instance = $instance->dataAttributes([
DataAttributes::ACTION => $closure,
]);
Expand Down

0 comments on commit 6dedf76

Please sign in to comment.