Skip to content

Commit

Permalink
fix: cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKoehnen committed Nov 3, 2022
1 parent 7657e33 commit ff5977b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function ensureAbsolutePath(string $path): string
$path = Path::join(dirname($this->filePath), $path);
}

if ($path[-1] === DIRECTORY_SEPARATOR){
if (DIRECTORY_SEPARATOR === $path[-1]) {
$path = Path::join($path, $this->getBasename());
}

Expand Down
1 change: 0 additions & 1 deletion src/Test/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public function testMoveToDifferentFolderAbsolutePath(): void
$this->assertSame($this->root->url().'/testFolder/test', $this->readableFile->getPath());
$this->assertFileExists($this->root->url().'/testFolder/test');


$this->readableFile->rename('../testFile');
$this->assertSame($this->root->url().'/testFile', $this->readableFile->getPath());
$this->assertFileExists($this->root->url().'/testFile');
Expand Down

0 comments on commit ff5977b

Please sign in to comment.