| @@ -778,5 +778,18 @@ | ||
| 778 | 778 | ->find(function ( $p ) use ( $path ) { |
| 779 | 779 | return false !== strpos( $path, $p ); |
| 780 | 780 | } ); |
| 781 | 781 | } |
| 782 | + | |
| 783 | + /** | |
| 784 | + * @param $file | |
| 785 | + * @param mixed ...$args | |
| 786 | + * @return false|string | |
| 787 | + */ | |
| 788 | + public static function file_get_contents( $file, ...$args ) { | |
| 789 | + if ( ! is_file( $file ) || ! is_readable( $file ) ) { | |
| 790 | + return false; | |
| 791 | + } | |
| 792 | + | |
| 793 | + return file_get_contents( $file, ...$args ); | |
| 794 | + } | |
| 782 | 795 | } |