| Conditions | 2 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 42 | protected function parsePlurals() { |
||
| 43 | $this->value = preg_replace_callback( |
||
| 44 | '!\{\{$plur|(?P<amount>\d+)|(?P<sing>[^}|]+)|(?P<plur>[^|}]+)}}!', |
||
| 45 | function ( $matches ) { |
||
| 46 | return intval( $matches['amount'] ) > 1 ? trim( $matches['plur'] ) : trim( $matches['sing'] ); |
||
| 47 | }, |
||
| 48 | $this->value |
||
| 49 | ); |
||
| 52 |