| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function register() |
||
| 20 | { |
||
| 21 | Str::macro('trUpper', function (string $value): string { |
||
| 22 | return tr_strtoupper($value); |
||
| 23 | }); |
||
| 24 | |||
| 25 | Str::macro('trLower', function (string $value): string { |
||
| 26 | return tr_strtolower($value); |
||
| 27 | }); |
||
| 28 | |||
| 29 | Str::macro('trUcFirst', function (string $value): string { |
||
| 30 | return tr_ucfirst($value); |
||
| 31 | }); |
||
| 32 | |||
| 33 | Str::macro('trLcFirst', function (string $value): string { |
||
| 34 | return tr_lcfirst($value); |
||
| 35 | }); |
||
| 36 | |||
| 37 | Str::macro('trUcWords', function (string $value): string { |
||
| 38 | return tr_ucwords($value); |
||
| 39 | }); |
||
| 42 |