@@ -25,8 +25,6 @@ |
||
| 25 | 25 | * @param string $path Destination path |
| 26 | 26 | * @param string $themeName Theme name. Pattern <theme_name>:<theme_version> |
| 27 | 27 | * can be used. "blank" is a special theme |
| 28 | - * @param string $repository Provide a custom repository to search for the |
|
| 29 | - * package, which will be used instead of packagist |
|
| 30 | 28 | * @param bool $force Force to clear destination if exists and it's |
| 31 | 29 | * not empty' |
| 32 | 30 | * @param array $options Options: "prefer-source", "prefer-lock" or "repository" |
@@ -322,6 +322,10 @@ discard block |
||
| 322 | 322 | $item->setAttributes($attributes); |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | + /** |
|
| 326 | + * @param string $extension |
|
| 327 | + * @param string $relativePath |
|
| 328 | + */ |
|
| 325 | 329 | private function avoidRenderizer($extension, $relativePath) |
| 326 | 330 | { |
| 327 | 331 | $strPath = new StringWrapper($relativePath); |
@@ -410,6 +414,7 @@ discard block |
||
| 410 | 414 | } |
| 411 | 415 | |
| 412 | 416 | /** |
| 417 | + * @param string $path |
|
| 413 | 418 | * @return string |
| 414 | 419 | */ |
| 415 | 420 | private function composeSubPath($path) |
@@ -418,6 +423,7 @@ discard block |
||
| 418 | 423 | } |
| 419 | 424 | |
| 420 | 425 | /** |
| 426 | + * @param string $path |
|
| 421 | 427 | * @return string |
| 422 | 428 | */ |
| 423 | 429 | private function composeThemeSubPath($path) |
@@ -67,15 +67,15 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Constructor. |
| 69 | 69 | * |
| 70 | - * @param Yosymfony\Spress\Core\DataSource\DataSourceManager $dataSourceManager |
|
| 71 | - * @param Yosymfony\Spress\Core\DataWriter\DataWriterInterface $dataWriter |
|
| 72 | - * @param Yosymfony\Spress\Core\ContentManager\Converter\ConverterManager $converterManager |
|
| 73 | - * @param Yosymfony\Spress\Core\ContentManager\Collection\CollectionManager $CollectionManager |
|
| 74 | - * @param Yosymfony\Spress\Core\ContentManager\Permalink\PermalinkGeneratorInterface $permalinkGenerator |
|
| 75 | - * @param Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface $renderizer |
|
| 76 | - * @param Yosymfony\Spress\Core\ContentManager\SiteAttribute\SiteAttributeInterface $siteAttribute |
|
| 77 | - * @param Yosymfony\Spress\Core\Plugin\PluginManager $pluginManager |
|
| 78 | - * @param Symfony\Component\EventDispatcher\EventDispatcher $eventDispatcher |
|
| 70 | + * @param DataSourceManager $dataSourceManager |
|
| 71 | + * @param DataWriterInterface $dataWriter |
|
| 72 | + * @param ConverterManager $converterManager |
|
| 73 | + * @param CollectionManager $CollectionManager |
|
| 74 | + * @param PermalinkGeneratorInterface $permalinkGenerator |
|
| 75 | + * @param RenderizerInterface $renderizer |
|
| 76 | + * @param SiteAttributeInterface $siteAttribute |
|
| 77 | + * @param PluginManager $pluginManager |
|
| 78 | + * @param EventDispatcher $eventDispatcher |
|
| 79 | 79 | */ |
| 80 | 80 | public function __construct( |
| 81 | 81 | DataSourceManager $dataSourceManager, |
@@ -531,6 +531,9 @@ discard block |
||
| 531 | 531 | return $result; |
| 532 | 532 | } |
| 533 | 533 | |
| 534 | + /** |
|
| 535 | + * @param string $timezone |
|
| 536 | + */ |
|
| 534 | 537 | private function configureTimezone($timezone) |
| 535 | 538 | { |
| 536 | 539 | if (is_string($timezone) === false) { |
@@ -587,7 +590,7 @@ discard block |
||
| 587 | 590 | } |
| 588 | 591 | |
| 589 | 592 | /** |
| 590 | - * @param string|array $messasge |
|
| 593 | + * @param string|array $message |
|
| 591 | 594 | */ |
| 592 | 595 | private function writeVMessage($message) |
| 593 | 596 | { |
@@ -595,7 +598,7 @@ discard block |
||
| 595 | 598 | } |
| 596 | 599 | |
| 597 | 600 | /** |
| 598 | - * @param string|array $messasge |
|
| 601 | + * @param string $message |
|
| 599 | 602 | */ |
| 600 | 603 | private function writeVvMessage($message) |
| 601 | 604 | { |
@@ -53,6 +53,7 @@ |
||
| 53 | 53 | * - Classloader. |
| 54 | 54 | * - Site directory. |
| 55 | 55 | * |
| 56 | + * @param string $siteDir |
|
| 56 | 57 | * @return Spress A Spress instance |
| 57 | 58 | */ |
| 58 | 59 | public function getSpress($siteDir = null) |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * Constructor. |
| 31 | 31 | * |
| 32 | - * @param Symfony\Component\Console\Command\Command $symfonyCommand The Symfony Console command |
|
| 33 | - * @param Symfony\Component\Console\Output\OutputInterface $output The output |
|
| 32 | + * @param Command $symfonyCommand The Symfony Console command |
|
| 33 | + * @param OutputInterface $output The output |
|
| 34 | 34 | */ |
| 35 | 35 | public function __construct(Command $symfonyCommand, OutputInterface $output) |
| 36 | 36 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Gets the Symfony Console application. |
| 86 | 86 | * |
| 87 | - * @return Yosymfony\Spress\Console\Application The Symfony Console application |
|
| 87 | + * @return \Symfony\Component\Console\Application The Symfony Console application |
|
| 88 | 88 | * |
| 89 | 89 | * @throws LogicException If Symfony Console application is not set up |
| 90 | 90 | */ |
@@ -210,6 +210,9 @@ |
||
| 210 | 210 | return isset($attributes['date']); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $template |
|
| 215 | + */ |
|
| 213 | 216 | private function templateNeedsDate($template) |
| 214 | 217 | { |
| 215 | 218 | return strpos($template, ':year') !== false |
@@ -176,7 +176,6 @@ discard block |
||
| 176 | 176 | * @see http://twig.sensiolabs.org/doc/advanced.html#tests Twig documentation |
| 177 | 177 | * |
| 178 | 178 | * @param string $name Name of test |
| 179 | - * @param callable $function Test implementation |
|
| 180 | 179 | * @param array $options |
| 181 | 180 | */ |
| 182 | 181 | public function addTwigTest($name, callable $test, array $options = []) |
@@ -235,6 +234,9 @@ discard block |
||
| 235 | 234 | return '@layout/'.$name; |
| 236 | 235 | } |
| 237 | 236 | |
| 237 | + /** |
|
| 238 | + * @param string $layoutName |
|
| 239 | + */ |
|
| 238 | 240 | protected function getLayoutWithExtension($layoutName, $contentName) |
| 239 | 241 | { |
| 240 | 242 | foreach ($this->layoutExtension as $extension) { |
@@ -113,6 +113,7 @@ |
||
| 113 | 113 | /** |
| 114 | 114 | * Gets a data source. |
| 115 | 115 | * |
| 116 | + * @param string $name |
|
| 116 | 117 | * @return \Yosymfony\Spress\Core\DataSource\AbstractDataSource |
| 117 | 118 | * |
| 118 | 119 | * @throws \RuntimeException If data source not found |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Constructor. |
| 34 | 34 | * |
| 35 | - * @param Symfony\Component\Filesystem\Filesystem $filesystem |
|
| 35 | + * @param Filesystem $filesystem |
|
| 36 | 36 | * @param string $outputDir The output folder. e.g: "build" |
| 37 | 37 | */ |
| 38 | 38 | public function __construct(Filesystem $filesystem, $outputDir) |
@@ -97,6 +97,9 @@ discard block |
||
| 97 | 97 | { |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $relativePath |
|
| 102 | + */ |
|
| 100 | 103 | protected function composeOutputPath($relativePath) |
| 101 | 104 | { |
| 102 | 105 | $path = $this->outputDir.'/'.$relativePath; |