diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8a45da8..6f4989a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -12,7 +12,7 @@
name: CI
permissions:
- contents: read
+ contents: read
on:
pull_request:
diff --git a/README.md b/README.md
index 3edd5ca..5252e36 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,16 @@
# JBZoo / Codestyle
-[](https://github.com/JBZoo/Codestyle/actions/workflows/main.yml?query=branch%3Amaster) [](https://coveralls.io/github/JBZoo/Codestyle?branch=master) [](https://shepherd.dev/github/JBZoo/Codestyle) [](https://shepherd.dev/github/JBZoo/Codestyle) [](https://www.codefactor.io/repository/github/jbzoo/codestyle/issues)
-[](https://packagist.org/packages/jbzoo/codestyle/) [](https://packagist.org/packages/jbzoo/codestyle/stats) [](https://packagist.org/packages/jbzoo/codestyle/dependents?order_by=downloads) [](https://github.com/JBZoo/Codestyle/blob/master/LICENSE)
+[](https://github.com/JBZoo/Codestyle/actions/workflows/main.yml?query=branch%3Amaster)
+[](https://coveralls.io/github/JBZoo/Codestyle?branch=master)
+[](https://shepherd.dev/github/JBZoo/Codestyle)
+[](https://shepherd.dev/github/JBZoo/Codestyle)
+[](https://www.codefactor.io/repository/github/jbzoo/codestyle/issues)
+
+[](https://packagist.org/packages/jbzoo/codestyle/)
+[](https://packagist.org/packages/jbzoo/codestyle/stats)
+[](https://packagist.org/packages/jbzoo/codestyle/dependents?order_by=downloads)
+[](https://github.com/JBZoo/Codestyle/blob/master/LICENSE)
+
Comprehensive collection of QA tools and code quality standards for PHP 8.2+ projects. Provides configurations and wrappers for PHPStan, Psalm, PHP-CS-Fixer, PHPUnit, PHPMD, Phan and other popular code analysis tools.
diff --git a/psalm.xml b/psalm.xml
index c153045..6219771 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -26,5 +26,7 @@
+
+
diff --git a/src/PHPUnit/TraitReadme.php b/src/PHPUnit/TraitReadme.php
index dabd20d..15bf4a9 100644
--- a/src/PHPUnit/TraitReadme.php
+++ b/src/PHPUnit/TraitReadme.php
@@ -112,7 +112,7 @@ public function testReadmeHeader(): void
/** @phpstan-ignore-next-line */
$tmpBadge = $this->{$testMethod}();
if ($tmpBadge !== null) {
- $expectedBadges[$badgeName] = "{$tmpBadge} ";
+ $expectedBadges[$badgeName] = $tmpBadge;
}
} else {
fail("Method not found: '{$testMethod}'");
@@ -120,13 +120,12 @@ public function testReadmeHeader(): void
}
}
- $expectedBadgeLine = \str_replace(" \n", "\n", \implode("\n", [
+ $expectedBadgeLine = \implode("\n", [
$this->getTitle(),
'',
- \trim(\implode('', \array_filter($expectedBadges))),
+ \str_replace("\n\n", "\n", \trim(\implode("\n", \array_filter($expectedBadges)))),
'',
- '',
- ]));
+ ]);
isFileContains($expectedBadgeLine, PROJECT_ROOT . '/README.md');
}