From 802f5135b0979bab3bf30ae1733f9867e2caed7a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 17 Apr 2020 19:01:05 +0200 Subject: apply psr12 --- app/class/Modeladmin.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'app/class/Modeladmin.php') diff --git a/app/class/Modeladmin.php b/app/class/Modeladmin.php index 54c4f0c..478bc77 100644 --- a/app/class/Modeladmin.php +++ b/app/class/Modeladmin.php @@ -8,10 +8,10 @@ class Modeladmin extends Model /** * List all availalble pages databases - * - * @return array + * + * @return array */ - public function pagesdblist() : array + public function pagesdblist(): array { $dblist = glob(self::PAGES_DIR . '*', GLOB_ONLYDIR); $dblist = array_map('basename', $dblist); @@ -21,7 +21,7 @@ class Modeladmin extends Model /** * Duplicate actual page database using new name - * + * * @param string $name of the new database */ public function duplicate(string $name) @@ -31,7 +31,7 @@ class Modeladmin extends Model /** * Copy database folder to a new folder if it doeas not already exsit - * + * * @param string $db name of source page database to copy * @param string $name of the destination database */ @@ -39,10 +39,8 @@ class Modeladmin extends Model { $dbdir = self::PAGES_DIR . $db; $newdbdir = self::PAGES_DIR . idclean($name); - if(is_dir($dbdir) && !is_dir($newdbdir)) { + if (is_dir($dbdir) && !is_dir($newdbdir)) { recurse_copy($dbdir, $newdbdir); } } } - -?> \ No newline at end of file -- cgit v1.2.3