aboutsummaryrefslogtreecommitdiff
path: root/app/class/Media.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/Media.php
parent6984e737b706c73baaa5c3c921762706f958d4da (diff)
downloadwcms-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.php9
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 = '&lt;video controls=""&gt;&lt;source src="' . $this->getincludepath() . '" type="video/' . $this->extension . '"&gt;&lt;/video&gt;';
+ $src = $this->getincludepath();
+ $ext = $this->extension;
+ $code = '&lt;video controls=""&gt;';
+ $code .= '&lt;source src="' . $src . '" type="video/' . $ext . '"&gt;&lt;/video&gt;';
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;
}
}