From d46a0f551c513674815c02981054acd30f1b27ca Mon Sep 17 00:00:00 2001 From: iMokhles Date: Wed, 29 May 2019 14:41:02 +0200 Subject: [PATCH] removed FilesystemIterator codes --- .idea/workspace.xml | 17 ++++++++--------- src/Command/MultiAuthPrepare.php | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 335315b..6fb87af 100755 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,6 @@ - - @@ -607,7 +606,7 @@ - + @@ -648,8 +647,8 @@ - - + + diff --git a/src/Command/MultiAuthPrepare.php b/src/Command/MultiAuthPrepare.php index 8978ed0..1ff65fc 100755 --- a/src/Command/MultiAuthPrepare.php +++ b/src/Command/MultiAuthPrepare.php @@ -989,7 +989,7 @@ public function installPublicFilesIfNeeded($theme_name = 'adminlte2') { $publicPath = $this->getPublicFolderPath(); $themePublicPath = $publicPath.DIRECTORY_SEPARATOR.$theme_name; - if (!file_exists($themePublicPath) && !(new \FilesystemIterator($themePublicPath))->valid()) { + if (!file_exists($themePublicPath)) { $githubLink = $this->getGitLinkForFreeTheme($theme_name); if (!is_null($githubLink) && is_string($githubLink)) { $zipFileName = basename($githubLink);