We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7a587 commit 572f4c3Copy full SHA for 572f4c3
1 file changed
src/Helpers/Helper.php
@@ -14,6 +14,10 @@ class Helper
14
*/
15
public static function cleanFile($filePath)
16
{
17
+ if (! file_exists($filePath)) {
18
+ return false;
19
+ }
20
+
21
$fh = fopen($filePath, 'r+');
22
if ($fh === false) {
23
return false;
0 commit comments