Completed
Push — master ( 6b77c2...0b4fa8 )
by Andrii
04:43
created
src/models/AbstractPage.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@  discard block
 block discarded – undo
111 111
         return [$data, implode("\n", $text)];
112 112
     }
113 113
 
114
+    /**
115
+     * @param string[] $lines
116
+     */
114 117
     public function readFrontMatter($lines)
115 118
     {
116 119
         $yaml = $this->readQuotedLines($lines, '/^---$/', '/^---$/');
@@ -121,6 +124,9 @@  discard block
 block discarded – undo
121 124
         return empty($yaml) ? [] : $this->readYaml($yaml);
122 125
     }
123 126
 
127
+    /**
128
+     * @param string[] $lines
129
+     */
124 130
     public function readYaml($lines)
125 131
     {
126 132
         $data = Yaml::parse(implode("\n", $lines));
@@ -131,6 +137,10 @@  discard block
 block discarded – undo
131 137
         return $data;
132 138
     }
133 139
 
140
+    /**
141
+     * @param string $headMarker
142
+     * @param string $tailMarker
143
+     */
134 144
     public function readQuotedLines($lines, $headMarker, $tailMarker)
135 145
     {
136 146
         $line = array_shift($lines);
@@ -155,6 +165,7 @@  discard block
 block discarded – undo
155 165
      *
156 166
      * @param array $params
157 167
      * @abstract
168
+     * @return string
158 169
      */
159 170
     abstract public function render(array $params = []);
160 171
 
Please login to merge, or discard this patch.
src/storage/FileSystemStorage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @param $page
75
+     * @param string $page
76 76
      * @return array|false
77 77
      * @throws \yii\base\InvalidConfigException
78 78
      */
Please login to merge, or discard this patch.
src/views/render/index.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use yii\widgets\LinkPager;
4
-use yii\helpers\Html;
5 4
 use yii\widgets\ListView;
6 5
 
7 6
 $this->title = Yii::$app->name;
Please login to merge, or discard this patch.