@@ -151,6 +151,9 @@ discard block |
||
| 151 | 151 | $input->setOption('license', $license); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param ConsoleIO $io |
|
| 156 | + */ |
|
| 154 | 157 | protected function welcomeMessage($io) |
| 155 | 158 | { |
| 156 | 159 | $io->write([ |
@@ -160,6 +163,9 @@ discard block |
||
| 160 | 163 | ]); |
| 161 | 164 | } |
| 162 | 165 | |
| 166 | + /** |
|
| 167 | + * @param ConsoleIO $io |
|
| 168 | + */ |
|
| 163 | 169 | protected function licenseMessage($io) |
| 164 | 170 | { |
| 165 | 171 | $io->write([ |
@@ -176,6 +182,9 @@ discard block |
||
| 176 | 182 | ]); |
| 177 | 183 | } |
| 178 | 184 | |
| 185 | + /** |
|
| 186 | + * @param ConsoleIO $io |
|
| 187 | + */ |
|
| 179 | 188 | protected function resultMessage($io, $files) |
| 180 | 189 | { |
| 181 | 190 | $io->write([ |
@@ -120,6 +120,9 @@ discard block |
||
| 120 | 120 | return $date->format('Y-m-d'); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @param ConsoleIO $io |
|
| 125 | + */ |
|
| 123 | 126 | protected function welcomeMessage($io) |
| 124 | 127 | { |
| 125 | 128 | $io->write([ |
@@ -129,6 +132,9 @@ discard block |
||
| 129 | 132 | ]); |
| 130 | 133 | } |
| 131 | 134 | |
| 135 | + /** |
|
| 136 | + * @param ConsoleIO $io |
|
| 137 | + */ |
|
| 132 | 138 | protected function resultMessage($io, $files) |
| 133 | 139 | { |
| 134 | 140 | $io->write([ |
@@ -96,6 +96,9 @@ |
||
| 96 | 96 | return $result; |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | + /** |
|
| 100 | + * @param string $sitePath |
|
| 101 | + */ |
|
| 99 | 102 | private function loadEnvironmentConfiguration($sitePath, $env) |
| 100 | 103 | { |
| 101 | 104 | $filename = $this->getConfigEnvFilename($env); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * @param string $message The exception message. |
| 28 | 28 | * @param string $attribute The name of the attribute. |
| 29 | 29 | * @param string $id The identifier of the content where the exception was generated. |
| 30 | - * @param Exception $previous The previous exception. |
|
| 30 | + * @param \Exception $previous The previous exception. |
|
| 31 | 31 | */ |
| 32 | 32 | public function __construct($message, $attribute = null, $id = null, \Exception $previous = null) |
| 33 | 33 | { |
@@ -175,7 +175,6 @@ discard block |
||
| 175 | 175 | * @see http://twig.sensiolabs.org/doc/advanced.html#tests Twig documentation. |
| 176 | 176 | * |
| 177 | 177 | * @param string $name Name of test |
| 178 | - * @param callable $function Test implementation |
|
| 179 | 178 | * @param array $options |
| 180 | 179 | */ |
| 181 | 180 | public function addTwigTest($name, callable $test, array $options = []) |
@@ -207,6 +206,9 @@ discard block |
||
| 207 | 206 | return '@layout/'.$name; |
| 208 | 207 | } |
| 209 | 208 | |
| 209 | + /** |
|
| 210 | + * @param string $layoutName |
|
| 211 | + */ |
|
| 210 | 212 | protected function getLayoutWithExtension($layoutName, $contentName) |
| 211 | 213 | { |
| 212 | 214 | foreach ($this->layoutExtension as $extension) { |
@@ -111,6 +111,7 @@ |
||
| 111 | 111 | /** |
| 112 | 112 | * Gets a data source. |
| 113 | 113 | * |
| 114 | + * @param string $name |
|
| 114 | 115 | * @return \Yosymfony\Spress\Core\DataSource\AbstractDataSource |
| 115 | 116 | * |
| 116 | 117 | * @throws \RuntimeException If data source not found. |
@@ -54,6 +54,7 @@ discard block |
||
| 54 | 54 | * @param string $name The name of the collection. |
| 55 | 55 | * |
| 56 | 56 | * @throws RuntimeException If invalid collection name. |
| 57 | + * @return void |
|
| 57 | 58 | */ |
| 58 | 59 | public function setCollection($name); |
| 59 | 60 | |
@@ -77,8 +78,9 @@ discard block |
||
| 77 | 78 | /** |
| 78 | 79 | * Set the compiled content. |
| 79 | 80 | * |
| 80 | - * @param $content Mixed The compiled content. |
|
| 81 | + * @param string $content Mixed The compiled content. |
|
| 81 | 82 | * @param $snapshotName The name of the snapshot. The snapshot "last" is not valid. |
| 83 | + * @return void |
|
| 82 | 84 | */ |
| 83 | 85 | public function setContent($content, $snapshotName); |
| 84 | 86 | |
@@ -92,7 +94,8 @@ discard block |
||
| 92 | 94 | /** |
| 93 | 95 | * Set the attributes of this item. |
| 94 | 96 | * |
| 95 | - * @param array $value |
|
| 97 | + * @param array $values |
|
| 98 | + * @return void |
|
| 96 | 99 | */ |
| 97 | 100 | public function setAttributes(array $values); |
| 98 | 101 | |
@@ -117,6 +120,7 @@ discard block |
||
| 117 | 120 | * |
| 118 | 121 | * @param string $value e.g: "index.html" or "my-page/index.html" |
| 119 | 122 | * @param $snapshotName The name of the snapshot. The snapshot "last" is not valid. |
| 123 | + * @return void |
|
| 120 | 124 | */ |
| 121 | 125 | public function setPath($value, $snapshotName); |
| 122 | 126 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * Gets the data source manager. |
| 70 | 70 | * |
| 71 | - * @return Yosymfony\Spress\Core\DataSource\DataSourceManager |
|
| 71 | + * @return DataSourceManager |
|
| 72 | 72 | */ |
| 73 | 73 | public function getDataSourceManager() |
| 74 | 74 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * Gets the converter manager. |
| 80 | 80 | * |
| 81 | - * @return Yosymfony\Spress\Core\ContentManager\Converter\ConverterManager |
|
| 81 | + * @return ConverterManager |
|
| 82 | 82 | */ |
| 83 | 83 | public function getConverterManager() |
| 84 | 84 | { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Gets the generator manager. |
| 90 | 90 | * |
| 91 | - * @return Yosymfony\Spress\Core\ContentManager\Generator\GeneratorManager |
|
| 91 | + * @return GeneratorManager |
|
| 92 | 92 | */ |
| 93 | 93 | public function getGeneratorManager() |
| 94 | 94 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Gets the renderizer. |
| 100 | 100 | * |
| 101 | - * @return Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface |
|
| 101 | + * @return RenderizerInterface |
|
| 102 | 102 | */ |
| 103 | 103 | public function getRenderizer() |
| 104 | 104 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * Sets a custom renderizer. |
| 110 | 110 | * |
| 111 | - * @param Yosymfony\Spress\Core\ContentManager\Renderizer\RenderizerInterface $renderizer The renderizer. |
|
| 111 | + * @param RenderizerInterface $renderizer The renderizer. |
|
| 112 | 112 | */ |
| 113 | 113 | public function setRenderizer(RenderizerInterface $renderizer) |
| 114 | 114 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Gets the data writer. |
| 120 | 120 | * |
| 121 | - * @return Yosymfony\Spress\Core\DataWriter\DataWriterInterface |
|
| 121 | + * @return DataWriterInterface |
|
| 122 | 122 | */ |
| 123 | 123 | public function getDataWriter() |
| 124 | 124 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Sets the data writer. |
| 130 | 130 | * |
| 131 | - * @param Yosymfony\Spress\Core\DataWriter\DataWriterInterface $dataWriter |
|
| 131 | + * @param DataWriterInterface $dataWriter |
|
| 132 | 132 | */ |
| 133 | 133 | public function setDataWriter(DataWriterInterface $dataWriter) |
| 134 | 134 | { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * Gets IO. |
| 140 | 140 | * |
| 141 | - * @return Yosymfony\Spress\IO\IOInterface |
|
| 141 | + * @return IOInterface |
|
| 142 | 142 | */ |
| 143 | 143 | public function getIO() |
| 144 | 144 | { |
@@ -140,10 +140,9 @@ discard block |
||
| 140 | 140 | /** |
| 141 | 141 | * Gets metas of a plugin. |
| 142 | 142 | * |
| 143 | - * @param string $filename The plugin filename. |
|
| 144 | 143 | * @param \Yosymfony\Spress\Core\Plugin\PluginInterface $plugin The plugin. |
| 145 | 144 | * |
| 146 | - * @return array |
|
| 145 | + * @return PluginInterface |
|
| 147 | 146 | */ |
| 148 | 147 | protected function getPluginMetas(PluginInterface $plugin) |
| 149 | 148 | { |
@@ -204,7 +203,7 @@ discard block |
||
| 204 | 203 | /** |
| 205 | 204 | * Gets the attribute resolver. |
| 206 | 205 | * |
| 207 | - * @return \Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver |
|
| 206 | + * @return AttributesResolver |
|
| 208 | 207 | */ |
| 209 | 208 | protected function getResolver() |
| 210 | 209 | { |