From 9a42815d795715ca3c40d528d1efd2b61124a46f Mon Sep 17 00:00:00 2001 From: Vladislav Veselinvo Date: Fri, 2 Nov 2012 12:35:06 +0200 Subject: [PATCH] -- replace file_exists calls with $this->exists for consistency --- src/Illuminate/Filesystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Filesystem.php b/src/Illuminate/Filesystem.php index 5bdeba2..d811927 100644 --- a/src/Illuminate/Filesystem.php +++ b/src/Illuminate/Filesystem.php @@ -25,7 +25,7 @@ public function exists($path) */ public function get($path) { - if (file_exists($path)) return file_get_contents($path); + if ($this->exists($path)) return file_get_contents($path); throw new FileNotFoundException("File does not exist at path {$path}"); } @@ -49,7 +49,7 @@ public function getRemote($path) */ public function getRequire($path) { - if (file_exists($path)) return require $path; + if ($this->exists($path)) return require $path; throw new FileNotFoundException("File does not exist at path {$path}"); }