diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc5922c3..59183b70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,7 @@ jobs: run: composer config --global --list - name: Install development tools - run: phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,A972B9ABB95D0B760B51442231C7E470E2138192,9882DD2B38813C08EA651B69A4E55EA12C7C085C,2DE50EB60C013FFFA831040D12CE0F1D262429A5 + run: phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,E7A745102ECC980F7338B3079093F8B32E4815AA,2DE50EB60C013FFFA831040D12CE0F1D262429A5 - name: Composer Normalize run: composer ci:composer:normalize @@ -158,7 +158,7 @@ jobs: run: composer install --no-progress - name: Install development tools - run: phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,9882DD2B38813C08EA651B69A4E55EA12C7C085C,2DE50EB60C013FFFA831040D12CE0F1D262429A5 + run: phive --no-progress install --trust-gpg-keys 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13,BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,E7A745102ECC980F7338B3079093F8B32E4815AA,2DE50EB60C013FFFA831040D12CE0F1D262429A5 - name: Run Command run: composer ci:php:${{ matrix.command }} diff --git a/.phive/phars.xml b/.phive/phars.xml index 77bf00a0..24f8d7a3 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,7 +1,7 @@ - - - - + + + + diff --git a/psalm.baseline.xml b/psalm.baseline.xml index 29e38e58..88ef81dc 100644 --- a/psalm.baseline.xml +++ b/psalm.baseline.xml @@ -1,8 +1,31 @@ - + + + + + + + + + + + + + + + + + + + + + + + + - parent::__construct() + diff --git a/src/HtmlProcessor/AbstractHtmlProcessor.php b/src/HtmlProcessor/AbstractHtmlProcessor.php index c63f7c5e..a3c4fdf9 100644 --- a/src/HtmlProcessor/AbstractHtmlProcessor.php +++ b/src/HtmlProcessor/AbstractHtmlProcessor.php @@ -71,9 +71,7 @@ abstract class AbstractHtmlProcessor * * Please use `::fromHtml` or `::fromDomDocument` instead. */ - private function __construct() - { - } + private function __construct() {} /** * Builds a new instance from the given HTML. diff --git a/src/HtmlProcessor/HtmlNormalizer.php b/src/HtmlProcessor/HtmlNormalizer.php index 8572e7b3..61d57261 100644 --- a/src/HtmlProcessor/HtmlNormalizer.php +++ b/src/HtmlProcessor/HtmlNormalizer.php @@ -11,6 +11,4 @@ * - add HEAD and BODY elements (if they are missing) * - reformat the HTML */ -class HtmlNormalizer extends AbstractHtmlProcessor -{ -} +class HtmlNormalizer extends AbstractHtmlProcessor {} diff --git a/tests/Support/Traits/TestStringConstraint.php b/tests/Support/Traits/TestStringConstraint.php index 5e5e13c9..cd1b2980 100644 --- a/tests/Support/Traits/TestStringConstraint.php +++ b/tests/Support/Traits/TestStringConstraint.php @@ -27,8 +27,7 @@ public function provideNonString(): array 'object' => [(object)[]], 'resource' => [\fopen('php://temp', 'r')], 'callable' => [ - static function (): void { - }, + static function (): void {}, ], ]; } diff --git a/tests/Unit/HtmlProcessor/Fixtures/TestingHtmlProcessor.php b/tests/Unit/HtmlProcessor/Fixtures/TestingHtmlProcessor.php index 79e2953d..3686cb81 100644 --- a/tests/Unit/HtmlProcessor/Fixtures/TestingHtmlProcessor.php +++ b/tests/Unit/HtmlProcessor/Fixtures/TestingHtmlProcessor.php @@ -9,6 +9,4 @@ /** * Fixture class for AbstractHtmlProcessor. */ -final class TestingHtmlProcessor extends AbstractHtmlProcessor -{ -} +final class TestingHtmlProcessor extends AbstractHtmlProcessor {}