From 1c4182d9d88bb4471f86b08329f1b68a5290872b Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 17 Apr 2020 20:58:27 +0200 Subject: apply psr 12 part 2 --- app/class/Controllerinfo.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'app/class/Controllerinfo.php') 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 @@ 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 -- cgit v1.2.3