@@ -104,6 +104,9 @@ |
||
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $dst |
|
109 | + */ |
|
107 | 110 | protected function copyFolder($src, $dst) { |
108 | 111 | $finder = new Finder(); |
109 | 112 | $srcFiles = $finder->files()->in($src)->ignoreDotFiles(false); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Console\Command\Command; |
6 | 6 | use Symfony\Component\Console\Input\InputInterface; |
7 | -use Symfony\Component\Console\Input\InputOption; |
|
8 | 7 | use Symfony\Component\Console\Output\OutputInterface; |
9 | 8 | use Symfony\Component\Filesystem\Filesystem; |
10 | 9 | use Symfony\Component\Console\Question\Question; |
@@ -36,9 +36,9 @@ |
||
36 | 36 | /** @var TemplatePlugin $plugin */ |
37 | 37 | $plugin = Config::getDependency('engine.plugin'); |
38 | 38 | |
39 | - $this->addFunction(new \Twig_SimpleFunction('meta', [$plugin, 'meta'], ['is_safe' => ['html'],])); |
|
40 | - $this->addFunction(new \Twig_SimpleFunction('css', [$plugin, 'css'], ['is_safe' => ['html'],])); |
|
41 | - $this->addFunction(new \Twig_SimpleFunction('js', [$plugin, 'js'], ['is_safe' => ['html'],])); |
|
39 | + $this->addFunction(new \Twig_SimpleFunction('meta', [$plugin, 'meta'], ['is_safe' => ['html'], ])); |
|
40 | + $this->addFunction(new \Twig_SimpleFunction('css', [$plugin, 'css'], ['is_safe' => ['html'], ])); |
|
41 | + $this->addFunction(new \Twig_SimpleFunction('js', [$plugin, 'js'], ['is_safe' => ['html'], ])); |
|
42 | 42 | $this->addFunction(new \Twig_SimpleFunction('image', [$plugin, 'image'])); |
43 | 43 | $this->addFunction(new \Twig_SimpleFunction('file', [$plugin, 'file'])); |
44 | 44 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $entries = $this->getData($page->getVariable($variable)); |
48 | 48 | |
49 | 49 | uasort($entries, function ($a, $b) use ($field) { |
50 | - return strcmp($a[$field], $b[$field]); |
|
50 | + return strcmp($a[$field], $b[$field]); |
|
51 | 51 | }); |
52 | 52 | |
53 | 53 | if (in_array($direction, self::$reverse)) { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $entries = $this->getData($page->getVariable($variable)); |
48 | 48 | |
49 | - uasort($entries, function ($a, $b) use ($field) { |
|
49 | + uasort($entries, function($a, $b) use ($field) { |
|
50 | 50 | return strcmp($a[$field], $b[$field]); |
51 | 51 | }); |
52 | 52 |