Completed
Push — 2.1 ( 12c46d...310f3d )
by Yo!
06:24 queued 03:22
created
src/Core/ContentManager/Renderizer/TwigRenderizer.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Core/DataSource/DataSourceManager.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -111,6 +111,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Core/DataSource/ItemInterface.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Core/Spress.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use Yosymfony\Spress\Core\DataSource\DataSourceManagerBuilder;
29 29
 use Yosymfony\Spress\Core\DataWriter\FilesystemDataWriter;
30 30
 use Yosymfony\Spress\Core\IO\NullIO;
31
-use Yosymfony\Spress\Core\Plugin\PluginManager;
32 31
 use Yosymfony\Spress\Core\Plugin\PluginManagerBuilder;
33 32
 
34 33
 /**
Please login to merge, or discard this patch.
src/Scaffolding/PluginGenerator.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,6 @@
 block discarded – undo
113 113
     /**
114 114
      * Sets the license of the plugin. MIT by default.
115 115
      *
116
-     * @param string $value
117 116
      */
118 117
     public function setLicense($name)
119 118
     {
Please login to merge, or discard this patch.
src/Core/DataSource/Filesystem/FilesystemDataSource.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -263,6 +263,9 @@
 block discarded – undo
263 263
         ]));
264 264
     }
265 265
 
266
+    /**
267
+     * @param string $path
268
+     */
266 269
     private function createItem($path, $attributes = [], $binary = false)
267 270
     {
268 271
         $item = new Item('', $path, $attributes, $binary);
Please login to merge, or discard this patch.
src/HttpServer/ServerRequest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * Constructor.
29 29
      * 
30
-     * @param Symfony\Component\HttpFoundation\Request $request
30
+     * @param Request $request
31 31
      * @param string                                   $documentroot
32 32
      */
33 33
     public function __construct(Request $request, $documentroot)
Please login to merge, or discard this patch.
src/HttpServer/HttpServer.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@  discard block
 block discarded – undo
36 36
      * Constructor.
37 37
      *
38 38
      * @param IOInterface $io
39
-     * @param TwigFactory $twigFactory
40 39
      * @param string      $serverroot
41 40
      * @param string      $documentroot
42 41
      * @param int         $port
@@ -160,6 +159,11 @@  discard block
 block discarded – undo
160 159
         return $finalResponse;
161 160
     }
162 161
 
162
+    /**
163
+     * @param string $ip
164
+     * @param string $path
165
+     * @param integer $statusCode
166
+     */
163 167
     private function logRequest($ip, $path, $statusCode)
164 168
     {
165 169
         $date = new \Datetime();
@@ -176,6 +180,9 @@  discard block
 block discarded – undo
176 180
         $this->io->write($data);
177 181
     }
178 182
 
183
+    /**
184
+     * @param string $templateDir
185
+     */
179 186
     private function buildTwig($templateDir)
180 187
     {
181 188
         $options = [
@@ -189,6 +196,10 @@  discard block
 block discarded – undo
189 196
         $this->twig = new \Twig_Environment($loader, $options);
190 197
     }
191 198
 
199
+    /**
200
+     * @param integer $statusCode
201
+     * @param string $data
202
+     */
192 203
     private function getErrorModel($statusCode, $data)
193 204
     {
194 205
         switch ($statusCode) {
Please login to merge, or discard this patch.
src/Core/DataWriter/FilesystemDataWriter.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.