Completed
Push — 0.x ( a2b070...38e175 )
by Akihito
03:56 queued 01:11
created
src/Provide/TemplateEngine/Twig/TwigProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function get()
31 31
     {
32
-        $loader = new Twig_Loader_Filesystem(array('/', $this->libDir . '/twig/template'));
32
+        $loader = new Twig_Loader_Filesystem(array('/', $this->libDir.'/twig/template'));
33 33
         $twig = new Twig_Environment($loader, [
34
-            'cache' => $this->tmpDir . '/twig/cache',
34
+            'cache' => $this->tmpDir.'/twig/cache',
35 35
             'debug' => true,
36 36
             'autoescape' => false,
37 37
         ]);
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
     public function href($context, $varName, $varValue)
53 53
     {
54 54
         /** @todo not yet implemented */
55
-        return 'href:' . $varValue;
55
+        return 'href:'.$varValue;
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Twig/TwigModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         $this
20 20
             ->bind('BEAR\Sunday\Extension\TemplateEngine\TemplateEngineAdapterInterface')
21
-            ->to(__NAMESPACE__ . '\TwigAdapter')
21
+            ->to(__NAMESPACE__.'\TwigAdapter')
22 22
             ->in(Scope::SINGLETON);
23 23
         $this
24 24
             ->bind('Twig_Environment')
25
-            ->toProvider(__NAMESPACE__ . '\TwigProvider')
25
+            ->toProvider(__NAMESPACE__.'\TwigProvider')
26 26
             ->in(Scope::SINGLETON);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Twig/UserAgentTwigModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
     {
20 20
         $this
21 21
             ->bind('BEAR\Sunday\Extension\TemplateEngine\TemplateEngineAdapterInterface')
22
-            ->to(__NAMESPACE__ . '\UserAgentTwigAdapter')
22
+            ->to(__NAMESPACE__.'\UserAgentTwigAdapter')
23 23
             ->in(Scope::SINGLETON);
24 24
         $this
25 25
             ->bind('Twig_Environment')
26
-            ->toProvider(__NAMESPACE__ . '\TwigProvider')
26
+            ->toProvider(__NAMESPACE__.'\TwigProvider')
27 27
             ->in(Scope::SINGLETON);
28 28
         $this
29 29
             ->bind('Aura\Web\Request\Client')
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Twig/Extension/AuraForm_Twig_Extension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function createForm($hint)
32 32
     {
33
-        if (! static::$helper) {
33
+        if (!static::$helper) {
34 34
             $factory = new HelperLocatorFactory();
35 35
             static::$helper = $factory->newInstance();
36 36
         }
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Smarty/plugin/function.href.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
     $resource = $template->smarty->tpl_vars['resource']->value;
55 55
     $link = $resource->links[$rel];
56 56
     $uri = (isset($link[Link::TEMPLATED]) && $link[Link::TEMPLATED] === true) ?
57
-        \GuzzleHttp\uri_template($link[Link::HREF], (array) $data) :
58
-        $link[Link::HREF];
57
+        \GuzzleHttp\uri_template($link[Link::HREF], (array) $data) : $link[Link::HREF];
59 58
 
60 59
     // remove "page://self/"
61 60
     $uri = str_replace('page://self/', '/', $uri);
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Smarty/SmartyAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function fetch($tplWithoutExtension)
64 64
     {
65
-        $this->template = $tplWithoutExtension . self::EXT;
65
+        $this->template = $tplWithoutExtension.self::EXT;
66 66
         $this->fileExists($this->template);
67 67
 
68 68
         return $this->smarty->fetch($this->template);
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Smarty/SmartyModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         $this
20 20
             ->bind('BEAR\Sunday\Extension\TemplateEngine\TemplateEngineAdapterInterface')
21
-            ->to(__NAMESPACE__ . '\SmartyAdapter')
21
+            ->to(__NAMESPACE__.'\SmartyAdapter')
22 22
             ->in(Scope::SINGLETON);
23 23
         $this
24 24
             ->bind('Smarty')
25
-            ->toProvider(__NAMESPACE__ . '\SmartyProvider')
25
+            ->toProvider(__NAMESPACE__.'\SmartyProvider')
26 26
             ->in(Scope::SINGLETON);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/Smarty/SmartyProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
         }
39 39
 
40 40
         $smarty = new Smarty;
41
-        $appPlugin = $this->libDir . '/smarty/plugin/';
42
-        $frameworkPlugin = __DIR__ . '/plugin';
41
+        $appPlugin = $this->libDir.'/smarty/plugin/';
42
+        $frameworkPlugin = __DIR__.'/plugin';
43 43
         $smarty
44
-            ->setCompileDir($this->tmpDir . '/smarty/template_c')
45
-            ->setCacheDir($this->tmpDir . '/smarty/cache')
46
-            ->setTemplateDir($this->libDir . '/smarty/template')
47
-            ->setPluginsDir(array_merge($smarty->getPluginsDir(), [$appPlugin, $frameworkPlugin]) );
44
+            ->setCompileDir($this->tmpDir.'/smarty/template_c')
45
+            ->setCacheDir($this->tmpDir.'/smarty/cache')
46
+            ->setTemplateDir($this->libDir.'/smarty/template')
47
+            ->setPluginsDir(array_merge($smarty->getPluginsDir(), [$appPlugin, $frameworkPlugin]));
48 48
         $smarty->force_compile = false;
49 49
         $smarty->compile_check = false;
50 50
 
Please login to merge, or discard this patch.
src/Provide/TemplateEngine/AuraView/AuraViewModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         $this
20 20
             ->bind('BEAR\Sunday\Extension\TemplateEngine\TemplateEngineAdapterInterface')
21
-            ->to(__NAMESPACE__ . '\AuraViewAdapter')
21
+            ->to(__NAMESPACE__.'\AuraViewAdapter')
22 22
             ->in(Scope::SINGLETON);
23 23
         $this
24 24
             ->bind('Aura\View\AbstractTemplate')
25
-            ->toProvider(__NAMESPACE__ . '\AuraViewProvider')
25
+            ->toProvider(__NAMESPACE__.'\AuraViewProvider')
26 26
             ->in(Scope::SINGLETON);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.