Passed
Pull Request — master (#30)
by Vojta
09:22
created
Plugin.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -378,7 +378,9 @@
 block discarded – undo
378 378
         $key = str_shuffle($character_set);
379 379
         $cipher_text = '';
380 380
         $id = 'e' . rand(1, 999999999);
381
-        for ($i = 0; $i < strlen($email); $i += 1) $cipher_text .= $key[strpos($character_set, $email[$i])];
381
+        for ($i = 0; $i < strlen($email); $i += 1) {
382
+            $cipher_text .= $key[strpos($character_set, $email[$i])];
383
+        }
382 384
         $script = 'var a="' . $key . '";var b=a.split("").sort().join("");var c="' . $cipher_text . '";var d="";';
383 385
         $script .= 'for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));';
384 386
         $script .= 'var y = d;';
Please login to merge, or discard this patch.
classes/TimeDiffTranslator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.