| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function getFilters(): array |
||
| 11 | { |
||
| 12 | return [ |
||
| 13 | // Times |
||
| 14 | new TwigFilter('duration_to_hms', [GeneralRuntime::class, 'durationToHMS']), |
||
| 15 | |||
| 16 | // Byte formatting |
||
| 17 | new TwigFilter('format_metric_bytes', [GeneralRuntime::class, 'formatMetricBytes']), |
||
| 18 | new TwigFilter('format_binary_bytes', [GeneralRuntime::class, 'formatBinaryBytes']), |
||
| 19 | // Default byte formatting |
||
| 20 | new TwigFilter('format_bytes', [GeneralRuntime::class, 'formatBinaryBytes']), |
||
| 21 | |||
| 22 | // Picture rating |
||
| 23 | new TwigFilter('star_rating', [GeneralRuntime::class, 'starRating']), |
||
| 24 | |||
| 25 | // Text |
||
| 26 | new TwigFilter('markdown_to_plain_text', [GeneralRuntime::class, 'markdownToPlainText']), |
||
| 27 | new TwigFilter('stripmosttags', [GeneralRuntime::class, 'stripMostTags']), |
||
| 28 | new TwigFilter('slugify_tag', [GeneralRuntime::class, 'slugifyTag']) |
||
| 29 | ]; |
||
| 32 |