Passed
Push — master ( 9b0584...5b8c4b )
by Nicolaas
01:58
created
src/View/ShortCodes/VideoExtras.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
     public static function handle_shortcode($arguments, $content, $parser, $shortcode, $extra = array())
14 14
     {
15 15
         $string = parent::handle_shortcode($arguments, $content, $parser, $shortcode, $extra);
16
-        $string = str_replace('></iframe' , ' loading="lazy"></iframe', $string);
17
-        $string = str_replace('></iframe' , ' allowfullscreen></iframe', $string);
16
+        $string = str_replace('></iframe', ' loading="lazy"></iframe', $string);
17
+        $string = str_replace('></iframe', ' allowfullscreen></iframe', $string);
18 18
 
19 19
         return $string;
20 20
     }
Please login to merge, or discard this patch.
_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
 use SilverStripe\View\Parsers\ShortcodeParser;
5 5
 
6 6
 ShortcodeParser::get('default')
7
-    ->register('embed', [VideoExtras::class, 'handle_shortcode']);
7
+    ->register('embed', [ VideoExtras::class, 'handle_shortcode' ]);
Please login to merge, or discard this patch.