aboutsummaryrefslogtreecommitdiff
path: root/app/class/Optlist.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-21 18:57:18 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-21 18:57:18 +0200
commiteba4d7aa0ee5ea1bcb29e8254c28a272023ea54f (patch)
tree252d23b7713f364e7f7efafdd4f333188ceac5fa /app/class/Optlist.php
parent6984e737b706c73baaa5c3c921762706f958d4da (diff)
downloadwcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.tar.gz
wcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.zip
correct warning psr 12 : 120 characters lines
Diffstat (limited to 'app/class/Optlist.php')
-rw-r--r--app/class/Optlist.php11
1 files changed, 6 insertions, 5 deletions
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 .= '<span class="description">' . $page->description() . '</span>';
}
if ($this->date()) {
- $content .= '<time datetime="' . $page->date('pdate') . '">' . $page->date('pdate') . '</time>' . PHP_EOL;
+ $content .= '<time datetime="' . $page->date('pdate') . '">' . $page->date('pdate') . '</time>\n';
}
if ($this->time()) {
- $content .= '<time datetime="' . $page->date('ptime') . '">' . $page->date('ptime') . '</time>' . PHP_EOL;
+ $content .= '<time datetime="' . $page->date('ptime') . '">' . $page->date('ptime') . '</time>\n';
}
if ($this->author()) {
$content .= $page->authors('string') . PHP_EOL;
}
if ($this->thumbnail) {
- $content .= '<img class="thumbnail" src="' . Model::thumbnailpath() . $page->thumbnail() . '" alt="' . $page->title() . '">';
+ $src = Model::thumbnailpath() . $page->thumbnail();
+ $content .= '<img class="thumbnail" src="' . $src . '" alt="' . $page->title() . '">';
}
@@ -93,12 +94,12 @@ class Optlist extends Opt
public function li(string $content, string $id)
{
- return '<li id="' . $id . '">' . PHP_EOL . $content . PHP_EOL . '</li>' . PHP_EOL;
+ return '<li id="' . $id . '">' . PHP_EOL . $content . PHP_EOL . '</li>\n';
}
public function a(string $content, string $class, string $id)
{
- return '<a ' . $class . ' href="' . $this->render->upage($id) . '">' . $content . '</a>' . PHP_EOL;
+ return '<a ' . $class . ' href="' . $this->render->upage($id) . '">' . $content . '</a>\n';
}
public function spandescription(Page $page)