@@ -29,9 +29,9 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -18,11 +18,11 @@ |
||
| 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 | } |
@@ -19,11 +19,11 @@ |
||
| 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') |
@@ -30,7 +30,7 @@ |
||
| 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 | } |
@@ -54,8 +54,7 @@ |
||
| 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); |
@@ -62,7 +62,7 @@ |
||
| 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); |
@@ -18,11 +18,11 @@ |
||
| 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 | } |
@@ -38,13 +38,13 @@ |
||
| 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 | |
@@ -18,11 +18,11 @@ |
||
| 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 | } |