| @@ -26,6 +26,9 @@ discard block | ||
| 26 | 26 | return Yii::$app->charset ?: mb_internal_encoding(); | 
| 27 | 27 | } | 
| 28 | 28 | |
| 29 | + /** | |
| 30 | + * @param string $char | |
| 31 | + */ | |
| 29 | 32 | public function renderH($title, $char) | 
| 30 | 33 |      { | 
| 31 | 34 | $res = $title . "\n"; | 
| @@ -34,16 +37,25 @@ discard block | ||
| 34 | 37 | return $res . "\n"; | 
| 35 | 38 | } | 
| 36 | 39 | |
| 40 | + /** | |
| 41 | + * @param string $title | |
| 42 | + */ | |
| 37 | 43 | public function renderH1($title) | 
| 38 | 44 |      { | 
| 39 | 45 | return $this->renderH($title, '='); | 
| 40 | 46 | } | 
| 41 | 47 | |
| 48 | + /** | |
| 49 | + * @param string $title | |
| 50 | + */ | |
| 42 | 51 | public function renderH2($title) | 
| 43 | 52 |      { | 
| 44 | 53 | return $this->renderH($title, '-'); | 
| 45 | 54 | } | 
| 46 | 55 | |
| 56 | + /** | |
| 57 | + * @param string $text | |
| 58 | + */ | |
| 47 | 59 | public function renderText($text) | 
| 48 | 60 |      { | 
| 49 | 61 | $text = trim($text); | 
| @@ -68,6 +80,9 @@ discard block | ||
| 68 | 80 | return $text ? "\n## $section\n\n$text\n" : ''; | 
| 69 | 81 | } | 
| 70 | 82 | |
| 83 | + /** | |
| 84 | + * @param string $file | |
| 85 | + */ | |
| 71 | 86 | public function getSection($file, $default = null) | 
| 72 | 87 |      { | 
| 73 | 88 | $view = Yii::$app->getView(); |