Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ConvertsFooterMarkdown | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| execute | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Hyde\Framework\Actions; |
| 4 | |
| 5 | use Illuminate\Support\Str; |
| 6 | |
| 7 | /** |
| 8 | * Parse the Markdown text to show in the Footer. |
| 9 | * |
| 10 | * Tries to convert the Markdown text if supplied in the config, |
| 11 | * otherwise, it falls back to a default string. |
| 12 | */ |
| 13 | class ConvertsFooterMarkdown |
| 14 | { |
| 15 | /** |
| 16 | * Execute the action. |
| 17 | * |
| 18 | * @return string $html |
| 19 | */ |
| 20 | public static function execute(): string |
| 21 | { |
| 22 | return Str::markdown(config( |
| 23 | 'hyde.footer.markdown', |
| 24 | 'Site built with the Free and Open Source [HydePHP](https://github.com/hydephp/hyde). |
| 25 | License [MIT](https://github.com/hydephp/hyde/blob/master/LICENSE.md).' |
| 26 | )); |
| 27 | } |
| 28 | } |