From a0f17223c6515b931f000986c84a6472de3a2e81 Mon Sep 17 00:00:00 2001 From: TomasVotruba <924196+TomasVotruba@users.noreply.github.com> Date: Sun, 15 Sep 2024 00:32:19 +0000 Subject: [PATCH] [automated] Apply Coding Standard --- tests/FileSystem/FilesFinder/FilesFinderTest.php | 12 ++++++++++-- .../config/configured_rule.php | 5 +---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/FileSystem/FilesFinder/FilesFinderTest.php b/tests/FileSystem/FilesFinder/FilesFinderTest.php index 3aea32409c..b643e9d961 100644 --- a/tests/FileSystem/FilesFinder/FilesFinderTest.php +++ b/tests/FileSystem/FilesFinder/FilesFinderTest.php @@ -34,10 +34,18 @@ public function testAlwaysReturnsAbsolutePath(string $relativePath): void { $absolutePath = str_replace('/', DIRECTORY_SEPARATOR, getcwd() . '/' . $relativePath); $foundFiles = $this->filesFinder->findInDirectoriesAndFiles([$absolutePath], ['php']); - $this->assertStringStartsWith($absolutePath, $foundFiles[0], 'should return absolute path if absolute is given'); + $this->assertStringStartsWith( + $absolutePath, + $foundFiles[0], + 'should return absolute path if absolute is given' + ); $foundFiles = $this->filesFinder->findInDirectoriesAndFiles([$relativePath], ['php']); - $this->assertStringStartsWith($absolutePath, $foundFiles[0], 'should return absolute path if relative is given'); + $this->assertStringStartsWith( + $absolutePath, + $foundFiles[0], + 'should return absolute path if relative is given' + ); } /** diff --git a/tests/Issues/PhpDocInfoRemoveByType/config/configured_rule.php b/tests/Issues/PhpDocInfoRemoveByType/config/configured_rule.php index d928b5215a..d4589e804f 100644 --- a/tests/Issues/PhpDocInfoRemoveByType/config/configured_rule.php +++ b/tests/Issues/PhpDocInfoRemoveByType/config/configured_rule.php @@ -7,7 +7,4 @@ use Rector\TypeDeclaration\Rector\Expression\InlineVarDocTagToAssertRector; return RectorConfig::configure() - ->withRules([ - InlineVarDocTagToAssertRector::class, - RemoveNonExistingVarAnnotationRector::class, - ]); + ->withRules([InlineVarDocTagToAssertRector::class, RemoveNonExistingVarAnnotationRector::class]);