Skip to content

Commit 2d998f6

Browse files
committed
fix phpsniffer errors
1 parent c57a239 commit 2d998f6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

view/adminhtml/web/js/get-video-information.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ define(
170170

171171
this._initialize();
172172

173-
this.element.append('<div/>');
173+
this.element.append('<div><div/>');
174174

175175
this._on(
176176
window, {
@@ -339,7 +339,7 @@ define(
339339
timestamp +
340340
additionalParams;
341341
this.element.append(
342-
$('<iframe/>')
342+
$('<iframe><iframe/>')
343343
.attr('frameborder', 0)
344344
.attr('id', 'vimeo' + this._code + timestamp)
345345
.attr('width', this._width)
@@ -362,7 +362,7 @@ define(
362362
this._initialize();
363363

364364
this.element.append(
365-
$('<iframe/>')
365+
$('</iframe><iframe/>')
366366
.attr('frameborder', 0)
367367
.attr('id', 'cloudinary' + this._code + (new Date().getTime()))
368368
.attr('class', 'cld-video-player')

view/frontend/web/js/load-player.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ define(
175175

176176
this._initialize();
177177

178-
this.element.append('<div/>');
178+
this.element.append('<div><div/>');
179179

180180
this._on(
181181
window, {
@@ -360,7 +360,7 @@ define(
360360
additionalParams;
361361
id = 'vimeo' + this._code + timestamp;
362362
this.element.append(
363-
$('<iframe/>')
363+
$('<iframe><iframe/>')
364364
.attr('frameborder', 0)
365365
.attr('id', id)
366366
.attr('width', this._width)
@@ -428,7 +428,7 @@ define(
428428

429429
if (cldVideoSettings.player_type != 'cloudinary') {
430430
elem.append(
431-
$('<iframe/>')
431+
$('<iframe><iframe/>')
432432
.attr('frameborder', 0)
433433
.attr('id', 'cloudinary' + this._code + (new Date().getTime()))
434434
.attr('class', 'cld-video-player')
@@ -448,7 +448,7 @@ define(
448448
);
449449
} else {
450450
let id = 'cld_video_player';
451-
this._player = $('<video/>');
451+
this._player = $('<video><video/>');
452452
console.log(elem);
453453
elem.append(
454454
this._player

0 commit comments

Comments
 (0)