Skip to content

Commit

Permalink
[automated] Apply Coding Standard (#6303)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <[email protected]>
  • Loading branch information
TomasVotruba and TomasVotruba authored Sep 15, 2024
1 parent e9b21e0 commit dd93b38
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 10 additions & 2 deletions tests/FileSystem/FilesFinder/FilesFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@
use Rector\TypeDeclaration\Rector\Expression\InlineVarDocTagToAssertRector;

return RectorConfig::configure()
->withRules([
InlineVarDocTagToAssertRector::class,
RemoveNonExistingVarAnnotationRector::class,
]);
->withRules([InlineVarDocTagToAssertRector::class, RemoveNonExistingVarAnnotationRector::class]);

0 comments on commit dd93b38

Please sign in to comment.