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/Media.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'app/class/Media.php') diff --git a/app/class/Media.php b/app/class/Media.php index def4645..9df2fef 100644 --- a/app/class/Media.php +++ b/app/class/Media.php @@ -100,7 +100,10 @@ class Media extends Item break; case 'video': - $code = '<video controls=""><source src="' . $this->getincludepath() . '" type="video/' . $this->extension . '"></video>'; + $src = $this->getincludepath(); + $ext = $this->extension; + $code = '<video controls="">'; + $code .= '<source src="' . $src . '" type="video/' . $ext . '"></video>'; break; default: @@ -267,14 +270,14 @@ class Media extends Item public function setwidth($width) { if (is_int($width)) { - $this->width = strip_tags(strtolower($width)); + $this->width = $width; } } public function setheight($height) { if (is_int($height)) { - $this->height = strip_tags(strtolower($height)); + $this->height = $height; } } -- cgit v1.2.3