@@ -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 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $entries = $this->getData($page->getVariable($variable)); |
| 43 | 43 | |
| 44 | 44 | foreach ($filters as $field => $value) { |
| 45 | - $entries = array_filter($entries, function ($entry) use ($field, $value) { |
|
| 45 | + $entries = array_filter($entries, function($entry) use ($field, $value) { |
|
| 46 | 46 | return isset($entry[$field]) && $entry[$field] == $value; |
| 47 | 47 | }); |
| 48 | 48 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | $entries = $this->getData($page->getVariable($variable)); |
| 55 | 55 | |
| 56 | - uasort($entries, function ($a, $b) use ($field) { |
|
| 56 | + uasort($entries, function($a, $b) use ($field) { |
|
| 57 | 57 | return strcmp($a[$field], $b[$field]); |
| 58 | 58 | }); |
| 59 | 59 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | - * @param $id |
|
| 80 | + * @param string $id |
|
| 81 | 81 | * |
| 82 | 82 | * @return object |
| 83 | 83 | */ |