mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-25 04:09:11 -04:00
ALPHA 3.0.2a
This commit is contained in:
@@ -25,9 +25,9 @@ class MockSplFileInfo extends \SplFileInfo
|
||||
|
||||
public function __construct($param)
|
||||
{
|
||||
if (is_string($param)) {
|
||||
if (\is_string($param)) {
|
||||
parent::__construct($param);
|
||||
} elseif (is_array($param)) {
|
||||
} elseif (\is_array($param)) {
|
||||
$defaults = array(
|
||||
'name' => 'file.txt',
|
||||
'contents' => null,
|
||||
@@ -92,7 +92,7 @@ class MockSplFileInfo extends \SplFileInfo
|
||||
|
||||
public function setType($type)
|
||||
{
|
||||
if (is_string($type)) {
|
||||
if (\is_string($type)) {
|
||||
switch ($type) {
|
||||
case 'directory':
|
||||
case 'd':
|
||||
|
||||
Reference in New Issue
Block a user