Completed
Push — master ( 6449bd...e96a7d )
by Vojta
16:56
created
tests/PluginTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use PluginTestCase;
9 9
 use Twig_Environment;
10 10
 
11
-require_once __DIR__ . '/../vendor/autoload.php';
11
+require_once __DIR__.'/../vendor/autoload.php';
12 12
 
13 13
 class PluginTest extends PluginTestCase
14 14
 {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $twig = $this->getTwig();
91 91
 
92 92
         $now = Carbon::now()->subMinute();
93
-        $template = "{{ '" . $now->format('Y-m-d H:i:s') . "' | time_diff }}";
93
+        $template = "{{ '".$now->format('Y-m-d H:i:s')."' | time_diff }}";
94 94
 
95 95
         $twigTemplate = $twig->createTemplate($template);
96 96
         $this->assertEquals($twigTemplate->render([]), '1 minute ago');
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         $key = 'app.custom.key';
224 224
         $value = 'test value';
225 225
         Config::set($key, $value);
226
-        $template = "{{ config('" . $key . "') }}";
226
+        $template = "{{ config('".$key."') }}";
227 227
 
228 228
         $twigTemplate = $twig->createTemplate($template);
229 229
         $this->assertEquals($twigTemplate->render([]), $value);
Please login to merge, or discard this patch.
Plugin.php 1 patch
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.