@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Constructor. |
| 32 | 32 | * |
| 33 | - * @param Symfony\Component\Console\Input\InputInterface $input Input operations. |
|
| 34 | - * @param Symfony\Component\Console\Output\OutputInterface $output Ouputs operations. |
|
| 33 | + * @param InputInterface $input Input operations. |
|
| 34 | + * @param OutputInterface $output Ouputs operations. |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct(InputInterface $input, OutputInterface $output) |
| 37 | 37 | { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * Formats a success result bar. |
| 146 | 146 | * |
| 147 | - * @param string|array $message |
|
| 147 | + * @param string $message |
|
| 148 | 148 | */ |
| 149 | 149 | public function success($message) |
| 150 | 150 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | /** |
| 165 | 165 | * Formats an warning result bar. |
| 166 | 166 | * |
| 167 | - * @param string|array $message |
|
| 167 | + * @param string $message |
|
| 168 | 168 | */ |
| 169 | 169 | public function warning($message) |
| 170 | 170 | { |
@@ -214,6 +214,9 @@ |
||
| 214 | 214 | return false; |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | + /** |
|
| 218 | + * @param string $template |
|
| 219 | + */ |
|
| 217 | 220 | private function templateNeedsDate($template) |
| 218 | 221 | { |
| 219 | 222 | return strpos($template, ':year') !== false |
@@ -141,7 +141,6 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * Gets metas of a plugin. |
| 143 | 143 | * |
| 144 | - * @param string $filename The plugin filename. |
|
| 145 | 144 | * @param \Yosymfony\Spress\Core\Plugin\PluginInterface $plugin The plugin. |
| 146 | 145 | * |
| 147 | 146 | * @return array |
@@ -205,7 +204,7 @@ discard block |
||
| 205 | 204 | /** |
| 206 | 205 | * Gets the attribute resolver. |
| 207 | 206 | * |
| 208 | - * @return \Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver |
|
| 207 | + * @return AttributesResolver |
|
| 209 | 208 | */ |
| 210 | 209 | protected function getResolver() |
| 211 | 210 | { |
@@ -100,6 +100,9 @@ discard block |
||
| 100 | 100 | return $result; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $sitePath |
|
| 105 | + */ |
|
| 103 | 106 | private function loadEnvironmentConfiguration($sitePath, $env) |
| 104 | 107 | { |
| 105 | 108 | $filename = $this->getConfigEnvFilename($env); |
@@ -133,6 +136,9 @@ discard block |
||
| 133 | 136 | return $filename; |
| 134 | 137 | } |
| 135 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $sitePath |
|
| 141 | + */ |
|
| 136 | 142 | private function isSpressSite($sitePath) |
| 137 | 143 | { |
| 138 | 144 | return file_exists($sitePath.'/'.$this->configFilename); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Set a list of directories. |
| 32 | 32 | * |
| 33 | - * @param array $value |
|
| 33 | + * @param string[] $value |
|
| 34 | 34 | */ |
| 35 | 35 | public function setSkeletonDirs(array $value) |
| 36 | 36 | { |
@@ -57,6 +57,10 @@ discard block |
||
| 57 | 57 | return new \Twig_Environment($loader, $options); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $template |
|
| 62 | + * @param string $target |
|
| 63 | + */ |
|
| 60 | 64 | protected function renderFile($template, $target, $model) |
| 61 | 65 | { |
| 62 | 66 | if (!is_dir(dirname($target))) { |