Passed
Push — master ( 455573...24a91c )
by Dev
03:29
created
src/Twig/AppExtension.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
 
28 28
     public static function renderJavascriptLink($anchor, $path, $attr = [])
29 29
     {
30
-        if (strpos($path, 'http://')===0)        $path = '-'.substr($path, 7);
31
-        elseif (strpos($path, 'https://')===0)  $path = '_'.substr($path, 8);
32
-        elseif (strpos($path, 'mailto:')===0)   $path = '@'.substr($path, 7);
30
+        if (strpos($path, 'http://') === 0)        $path = '-'.substr($path, 7);
31
+        elseif (strpos($path, 'https://') === 0)  $path = '_'.substr($path, 8);
32
+        elseif (strpos($path, 'mailto:') === 0)   $path = '@'.substr($path, 7);
33 33
 
34 34
         return '<span'.self::mergeAndMapAttributes($attr, ['data-rot' => str_rot13($path)]).'>'.$anchor.'</span>';
35 35
     }
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,9 +27,13 @@
 block discarded – undo
27 27
 
28 28
     public static function renderJavascriptLink($anchor, $path, $attr = [])
29 29
     {
30
-        if (strpos($path, 'http://')===0)        $path = '-'.substr($path, 7);
31
-        elseif (strpos($path, 'https://')===0)  $path = '_'.substr($path, 8);
32
-        elseif (strpos($path, 'mailto:')===0)   $path = '@'.substr($path, 7);
30
+        if (strpos($path, 'http://')===0) {
31
+            $path = '-'.substr($path, 7);
32
+        } elseif (strpos($path, 'https://')===0) {
33
+            $path = '_'.substr($path, 8);
34
+        } elseif (strpos($path, 'mailto:')===0) {
35
+            $path = '@'.substr($path, 7);
36
+        }
33 37
 
34 38
         return '<span'.self::mergeAndMapAttributes($attr, ['data-rot' => str_rot13($path)]).'>'.$anchor.'</span>';
35 39
     }
Please login to merge, or discard this patch.