| @@ -38,21 +38,33 @@ discard block | ||
| 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, '##'); | 
| 54 | 63 | } | 
| 55 | 64 | |
| 65 | + /** | |
| 66 | + * @param string $text | |
| 67 | + */ | |
| 56 | 68 | public function renderText($text) | 
| 57 | 69 |      { | 
| 58 | 70 | $text = trim($text); | 
| @@ -77,6 +89,9 @@ discard block | ||
| 77 | 89 | return $text ? "\n## $section\n\n$text\n" : ''; | 
| 78 | 90 | } | 
| 79 | 91 | |
| 92 | + /** | |
| 93 | + * @param string $file | |
| 94 | + */ | |
| 80 | 95 | public function getSection($file, $default = null) | 
| 81 | 96 |      { | 
| 82 | 97 | $view = Yii::$app->getView(); |