Skip to content

Commit

Permalink
Test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
devtronic committed Nov 2, 2022
1 parent 290de24 commit bb108a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"scripts": {
"fix-cs": "php-cs-fixer fix",
"fix-cs:ci": "php-cs-fixer fix --stop-on-violation --dry-run",
"analyse": "phpstan analyse",
"test": "phpunit"
}
Expand Down
8 changes: 4 additions & 4 deletions src/Filesystem/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public function read(string $filename): ?string
}

$content = file_get_contents($filename);
if ($content === false) {
throw new \RuntimeException('Error while reading the file.');
}
// if ($content === false) {
// throw new \RuntimeException('Error while reading the file.');
// }

return $content;
}

public function write(string $filename, string $contents): void
{
if (!is_writable($filename)) {
if ( !is_writable($filename)) {
throw new \RuntimeException('The file is not writable.');
}

Expand Down

0 comments on commit bb108a6

Please sign in to comment.