diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-19 12:34:14 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-19 12:34:14 +0200 |
commit | 6278839230ae3c27c205550889511531d09cbf20 (patch) | |
tree | d41e0177b8d72451315df43f96394a6bd681d1e3 /app/class | |
parent | 1c4182d9d88bb4471f86b08329f1b68a5290872b (diff) | |
download | wcms-6278839230ae3c27c205550889511531d09cbf20.tar.gz wcms-6278839230ae3c27c205550889511531d09cbf20.zip |
finish PSR 12 error cleaning
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/Controllerfont.php | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/app/class/Controllerfont.php b/app/class/Controllerfont.php index 63b3ced..91a7936 100644 --- a/app/class/Controllerfont.php +++ b/app/class/Controllerfont.php @@ -13,18 +13,23 @@ class Controllerfont extends Controller { parent::__construct($router); $this->fontmanager = new Modelfont(); - } public function desktop() { - if($this->user->iseditor()) { - + if ($this->user->iseditor()) { $this->fontmanager->fontdircheck(); $fontlist = $this->fontmanager->getfontlist(); - $this->showtemplate('font', ['fontlist' => $fontlist, 'fonttypes' => $this->fontmanager->getfonttypes(), 'fontfile' => Model::globalpath().'fonts.css']); + $this->showtemplate( + 'font', + [ + 'fontlist' => $fontlist, + 'fonttypes' => $this->fontmanager->getfonttypes(), + 'fontfile' => Model::globalpath() . 'fonts.css' + ] + ); } else { $this->routedirect('home'); } @@ -38,19 +43,16 @@ class Controllerfont extends Controller public function add() { - if(isset($_POST['fontname'])) { + if (isset($_POST['fontname'])) { $fontname = $_POST['fontname']; } else { $fontname = ''; } $message = $this->fontmanager->upload($_FILES, 2 ** 16, $fontname); - if($message !== true) { + if ($message !== true) { echo $message; } else { $this->render(); } } } - - -?>
\ No newline at end of file |