Completed
Push — master ( 274934...131a8c )
by Andrii
02:23
created
src/controllers/ReadmeController.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -38,16 +38,25 @@  discard block
 block discarded – undo
38 38
         return (isset(Yii::$app->charset) ? Yii::$app->charset : null) ?: mb_internal_encoding();
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $prefix
43
+     */
41 44
     public function renderH($title, $prefix)
42 45
     {
43 46
         return $prefix . ' ' . $title . "\n";
44 47
     }
45 48
 
49
+    /**
50
+     * @param string $title
51
+     */
46 52
     public function renderH1($title)
47 53
     {
48 54
         return $this->renderH($title, '#');
49 55
     }
50 56
 
57
+    /**
58
+     * @param string $title
59
+     */
51 60
     public function renderH2($title)
52 61
     {
53 62
         return $this->renderH($title, '##');
@@ -58,6 +67,9 @@  discard block
 block discarded – undo
58 67
         return $this->renderH($title, '###');
59 68
     }
60 69
 
70
+    /**
71
+     * @param string $text
72
+     */
61 73
     public function renderText($text)
62 74
     {
63 75
         $text = trim($text);
@@ -82,6 +94,9 @@  discard block
 block discarded – undo
82 94
         return $text ? "\n## $section\n\n$text\n" : '';
83 95
     }
84 96
 
97
+    /**
98
+     * @param string $file
99
+     */
85 100
     public function getSection($file, $default = null)
86 101
     {
87 102
         $view = Yii::$app->getView();
Please login to merge, or discard this patch.