From 344cc511277833075d92db6dd5e72bf6177b34ae Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 2 Jul 2024 11:33:40 +0900 Subject: [PATCH] style: composer cs-fix --- app/Libraries/GitHub.php | 2 +- tests/entities/ContributorTest.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Libraries/GitHub.php b/app/Libraries/GitHub.php index 0aa61f9..6079cc3 100644 --- a/app/Libraries/GitHub.php +++ b/app/Libraries/GitHub.php @@ -143,7 +143,7 @@ public function getReleases(): array foreach ($this->config->repos as $id => $segments) { // We only care about frameworks - if (strpos($id, 'framework') === false) { + if (! str_contains($id, 'framework')) { continue; } diff --git a/tests/entities/ContributorTest.php b/tests/entities/ContributorTest.php index 248b55a..ea45941 100644 --- a/tests/entities/ContributorTest.php +++ b/tests/entities/ContributorTest.php @@ -8,9 +8,7 @@ */ final class ContributorTest extends ProjectTestCase { - /** - * @dataProvider provideStars - */ + #[PHPUnit\Framework\Attributes\DataProvider('provideStars')] public function testStars(int $contributions, string $expected) { $contributor = new Contributor(['contributions' => $contributions]);