From cc8376c7a1af26c7c40c56e8b79b7a1db9cd9dd4 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 8 Aug 2018 15:07:08 +0700 Subject: [PATCH] SplFileInfo type case --- system/Files/File.php | 4 ++-- tests/system/Files/FileTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/Files/File.php b/system/Files/File.php index 43a2d2f5141c..ca3ad3db8f49 100644 --- a/system/Files/File.php +++ b/system/Files/File.php @@ -35,7 +35,7 @@ * @since Version 3.0.0 * @filesource */ -use SPLFileInfo; +use SplFileInfo; use CodeIgniter\Files\Exceptions\FileException; use CodeIgniter\Files\Exceptions\FileNotFoundException; @@ -52,7 +52,7 @@ class File extends SplFileInfo //-------------------------------------------------------------------- /** - * Run our SPLFileInfo constructor with an optional verification + * Run our SplFileInfo constructor with an optional verification * that the path is really a file. * * @param string $path diff --git a/tests/system/Files/FileTest.php b/tests/system/Files/FileTest.php index 221e103f4169..138a1fae9950 100644 --- a/tests/system/Files/FileTest.php +++ b/tests/system/Files/FileTest.php @@ -41,7 +41,7 @@ public function testRandomName() $this->assertNotEquals($result1, $file->getRandomName()); } - public function testCanAccessSPLFileInfoMethods() + public function testCanAccessSplFileInfoMethods() { $file = new File(BASEPATH . 'Common.php'); $this->assertEquals('file', $file->getType());