From 48dfd5938fafdbeddd33445d27f38a01ee412919 Mon Sep 17 00:00:00 2001 From: Steve Grunwell <233836+stevegrunwell@users.noreply.github.com> Date: Fri, 11 Jul 2025 16:33:39 -0400 Subject: [PATCH] Update docs to reflect PSR-12, *not* PSR-2. Additionally, ignore a continue that was added for a total corner-case from coverage. --- .github/CONTRIBUTING.md | 3 ++- src/MarkupAssertionsTrait.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a38dcbf..d43c07e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -36,7 +36,7 @@ When submitting a new pull request, your `feature/my-cool-new-feature` should be ### Coding standards -This project uses [the PSR-2 coding standards](http://www.php-fig.org/psr/psr-2/). +This project uses [the PSR-12 coding standards](http://www.php-fig.org/psr/psr-12/). Standards are enforced via [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/), which can be run any time with the following: @@ -53,6 +53,7 @@ composer test:standards composer test:unit ``` + #### Code coverage [![Coverage Status](https://coveralls.io/repos/github/stevegrunwell/phpunit-markup-assertions/badge.svg?branch=develop)](https://coveralls.io/github/stevegrunwell/phpunit-markup-assertions?branch=develop) diff --git a/src/MarkupAssertionsTrait.php b/src/MarkupAssertionsTrait.php index ea94aea..9de8ae7 100644 --- a/src/MarkupAssertionsTrait.php +++ b/src/MarkupAssertionsTrait.php @@ -271,7 +271,7 @@ private function getInnerHtmlOfMatchedElements($markup, $query) // Loop through results and collect their innerHTML values. foreach ($results as $result) { if (!isset($result->firstChild)) { - continue; + continue; // @codeCoverageIgnore } $document = new \DOMDocument();