| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function compose(View $view) |
||
| 17 | { |
||
| 18 | $announce = false; |
||
| 19 | if (config('kleis.announce')) { |
||
| 20 | $mdfile = public_path('markdown/'.config('kleis.announce')); |
||
| 21 | if (file_exists($mdfile)) { |
||
| 22 | $text = file_get_contents($mdfile); |
||
| 23 | $announce = Markdown::parse($text)->toHtml(); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | $view->with('announce', $announce); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |