diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-21 18:57:18 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-21 18:57:18 +0200 |
commit | eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f (patch) | |
tree | 252d23b7713f364e7f7efafdd4f333188ceac5fa /app/class/Media.php | |
parent | 6984e737b706c73baaa5c3c921762706f958d4da (diff) | |
download | wcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.tar.gz wcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.zip |
correct warning psr 12 : 120 characters lines
Diffstat (limited to 'app/class/Media.php')
-rw-r--r-- | app/class/Media.php | 9 |
1 files changed, 6 insertions, 3 deletions
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; } } |