Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 13, 2024
1 parent 3bc3b7c commit bdc7036
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function findFiles(string $directory, string|false $matchExtension = fals
$files = collect();

foreach ($finder as $file) {
$files->push(str_replace($directory . DIRECTORY_SEPARATOR, '', $file->getRealPath()));
$files->push(str_replace($directory.DIRECTORY_SEPARATOR, '', $file->getRealPath()));
}

return $files;
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/FilesystemFindFilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Hyde\Testing\UnitTestCase;
use Hyde\Testing\CreatesTemporaryFiles;
use Hyde\Foundation\Kernel\Filesystem;
use Illuminate\Support\Collection;

/**
* @covers \Hyde\Foundation\Kernel\Filesystem::findFiles
Expand Down Expand Up @@ -75,7 +74,6 @@ public function testFindFilesReturnsCorrectFilesWhenUsingNestedSubdirectoriesOfD
$this->assertSameArray(['apple.md', 'nested/banana.md'], 'directory', 'md', true);
}


protected function assertSameArray(array $expected, string $directory, string|false $matchExtension = false, bool $recursive = false): void
{
$files = (new Filesystem(Hyde::getInstance()))->findFiles($directory, $matchExtension, $recursive);
Expand Down

0 comments on commit bdc7036

Please sign in to comment.