@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php namespace VojtaSvoboda\TwigExtensions; |
2 | 2 | |
3 | -use App; |
|
4 | -use Backend; |
|
5 | 3 | use Carbon\Carbon; |
6 | 4 | use System\Classes\PluginBase; |
7 | 5 | use Twig_Extension_StringLoader; |
@@ -381,7 +381,9 @@ discard block |
||
381 | 381 | $key = str_shuffle($character_set); |
382 | 382 | $cipher_text = ''; |
383 | 383 | $id = 'e' . rand(1, 999999999); |
384 | - for ($i = 0; $i < strlen($email); $i += 1) $cipher_text .= $key[strpos($character_set, $email[$i])]; |
|
384 | + for ($i = 0; $i < strlen($email); $i += 1) { |
|
385 | + $cipher_text .= $key[strpos($character_set, $email[$i])]; |
|
386 | + } |
|
385 | 387 | $script = 'var a="' . $key . '";var b=a.split("").sort().join("");var c="' . $cipher_text . '";var d="";'; |
386 | 388 | $script .= 'for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));'; |
387 | 389 | $script .= 'var y = d;'; |
@@ -422,7 +424,7 @@ discard block |
||
422 | 424 | $timestamp = filemtime($filename_); |
423 | 425 | $prepend = ($format) ? date($fomat, $timestamp) : $timestamp; |
424 | 426 | return $filename . "?" . $prepend; |
425 | - }else |
|
427 | + } else |
|
426 | 428 | { |
427 | 429 | return $filename; |
428 | 430 | } |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php namespace VojtaSvoboda\TwigExtensions\Classes; |
2 | 2 | |
3 | -use App; |
|
4 | 3 | use October\Rain\Translation\Translator; |
5 | 4 | use Symfony\Component\Translation\TranslatorInterface; |
6 | 5 |