Completed
Pull Request — master (#2)
by
unknown
02:22
created
src/models/AbstractPage.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@  discard block
 block discarded – undo
91 91
         return [$data, implode("\n", $text)];
92 92
     }
93 93
 
94
+    /**
95
+     * @param string[] $lines
96
+     */
94 97
     public function readFrontMatter($lines)
95 98
     {
96 99
         $yaml = $this->readQuotedLines($lines, '/^---$/', '/^---$/');
@@ -101,6 +104,9 @@  discard block
 block discarded – undo
101 104
         return empty($yaml) ? [] : $this->readYaml($yaml);
102 105
     }
103 106
 
107
+    /**
108
+     * @param string[] $lines
109
+     */
104 110
     public function readYaml($lines)
105 111
     {
106 112
         $data = Yaml::parse(implode("\n", $lines));
@@ -111,6 +117,10 @@  discard block
 block discarded – undo
111 117
         return $data;
112 118
     }
113 119
 
120
+    /**
121
+     * @param string $headMarker
122
+     * @param string $tailMarker
123
+     */
114 124
     public function readQuotedLines($lines, $headMarker, $tailMarker)
115 125
     {
116 126
         $line = array_shift($lines);
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.