Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
telanflow committed Dec 10, 2019
1 parent 7c7a587 commit 572f4c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Helper
*/
public static function cleanFile($filePath)
{
if (! file_exists($filePath)) {
return false;
}

$fh = fopen($filePath, 'r+');
if ($fh === false) {
return false;
Expand Down

0 comments on commit 572f4c3

Please sign in to comment.