From eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 21 Apr 2020 18:57:18 +0200 Subject: correct warning psr 12 : 120 characters lines --- app/class/Optlist.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'app/class/Optlist.php') diff --git a/app/class/Optlist.php b/app/class/Optlist.php index 63536ee..32107d7 100644 --- a/app/class/Optlist.php +++ b/app/class/Optlist.php @@ -56,16 +56,17 @@ class Optlist extends Opt $content .= '' . $page->description() . ''; } if ($this->date()) { - $content .= '' . PHP_EOL; + $content .= '\n'; } if ($this->time()) { - $content .= '' . PHP_EOL; + $content .= '\n'; } if ($this->author()) { $content .= $page->authors('string') . PHP_EOL; } if ($this->thumbnail) { - $content .= '' . $page->title() . ''; + $src = Model::thumbnailpath() . $page->thumbnail(); + $content .= '' . $page->title() . ''; } @@ -93,12 +94,12 @@ class Optlist extends Opt public function li(string $content, string $id) { - return '
  • ' . PHP_EOL . $content . PHP_EOL . '
  • ' . PHP_EOL; + return '
  • ' . PHP_EOL . $content . PHP_EOL . '
  • \n'; } public function a(string $content, string $class, string $id) { - return '' . $content . '' . PHP_EOL; + return '' . $content . '\n'; } public function spandescription(Page $page) -- cgit v1.2.3