diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-17 20:58:27 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-17 20:58:27 +0200 |
commit | 1c4182d9d88bb4471f86b08329f1b68a5290872b (patch) | |
tree | e7ccae68902113ece94ab4c8e86fd712dc028d2a /app/class/Controllerinfo.php | |
parent | dc5613c15b1b414fefadd66912ebf8ff3a5eef9d (diff) | |
download | wcms-1c4182d9d88bb4471f86b08329f1b68a5290872b.tar.gz wcms-1c4182d9d88bb4471f86b08329f1b68a5290872b.zip |
apply psr 12 part 2
Diffstat (limited to 'app/class/Controllerinfo.php')
-rw-r--r-- | app/class/Controllerinfo.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/app/class/Controllerinfo.php b/app/class/Controllerinfo.php index ab2a526..0e639e8 100644 --- a/app/class/Controllerinfo.php +++ b/app/class/Controllerinfo.php @@ -1,20 +1,20 @@ <?php namespace Wcms; + use Michelf\MarkdownExtra; class Controllerinfo extends Controller { - public function __construct($render){ + public function __construct($render) + { parent::__construct($render); } public function desktop() { - if($this->user->iseditor()) { - - if(file_exists(Model::MAN_FILE)) { - + if ($this->user->iseditor()) { + if (file_exists(Model::MAN_FILE)) { $render = new Modelrender($this->router); $htmlman = file_get_contents(Model::MAN_FILE); $htmlman = $render->rendermanual($htmlman); @@ -23,12 +23,7 @@ class Controllerinfo extends Controller $summary = $sum->sumparser(); $this->showtemplate('info', ['version' => getversion(), 'manual' => $htmlman, 'summary' => $summary]); - } } } - } - - -?>
\ No newline at end of file |