- Removed E_STRICT error type, added some more content to skeleton and removed 'methods' of route attributes (replaced with 'method')
This commit is contained in:
1 parent
79287f28cc
commit
7a292fe373
6 files changed
+38
-14
No files matched your search
@@ -58,4 +58,18 @@ class File
|
||||
return $path;
|
||||
}
|
||||
|
||||
public static function assertFileExists(string $filepath) : void
|
||||
{
|
||||
if (! is_file($filepath)) {
|
||||
throw new \InvalidArgumentException("File does not exist: {$filepath}");
|
||||
}
|
||||
}
|
||||
|
||||
public static function assertFolderExists(string $path) : void
|
||||
{
|
||||
if (! is_dir($path)) {
|
||||
throw new \InvalidArgumentException("Folder does not exist: {$path}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user