Skip to content

Commit

Permalink
fix: cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKoehnen committed Dec 13, 2022
1 parent 9aef8f2 commit 33cc791
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class File implements FileInterface
{
/**
* for more Information see parameter 'mode' on
* https://www.php.net/manual/de/function.fopen.php
* https://www.php.net/manual/de/function.fopen.php.
*/
public const MODE_READ = 'r';
public const MODE_READ_PLUS = 'r+';
Expand All @@ -24,7 +24,6 @@ class File implements FileInterface
public const MODE_C_PLUS = 'c+';
public const MODE_E = 'e';


/**
* @var resource
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Test/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public function testGetContent(): void
public function testGetPath(): void
{
$this->assertEquals($this->root->url().'/test.txt', $this->readableFile->getPath());
}
}

public function testGetExtension(): void
{
$this->assertEquals('txt', $this->readableFile->getExtension());
}

public function testGetFilenameWithoutExtension(): void
{
$this->assertEquals(
Expand All @@ -66,7 +66,7 @@ public function testGetFilenameWithoutExtension(): void

public function testToString(): void
{
$this->assertEquals($this->root->url().'/test.txt', (string)$this->readableFile);
$this->assertEquals($this->root->url().'/test.txt', (string) $this->readableFile);
}

public function testGetFileHandle(): void
Expand Down

0 comments on commit 33cc791

Please sign in to comment.