Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| HasMarkdownFeatures | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| hasTableOfContents | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Hyde\Framework\Concerns\Markdown; |
| 4 | |
| 5 | /** |
| 6 | * Global Markdown Feature Handler. |
| 7 | * |
| 8 | * @see HasConfigurableMarkdownFeatures for per-object configuration |
| 9 | */ |
| 10 | trait HasMarkdownFeatures |
| 11 | { |
| 12 | public static function hasTableOfContents(): bool |
| 13 | { |
| 14 | return config('docs.table_of_contents.enabled', true); |
| 15 | } |
| 16 | } |