| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function hrry($input) |
||
| 45 | { |
||
| 46 | $words = explode(' ', strtolower($input)); |
||
| 47 | $hrry = []; |
||
| 48 | foreach ($words as $word) { |
||
| 49 | if (strlen($word) > 3) { |
||
| 50 | if (in_array($word[0], $this->vowels)) { |
||
| 51 | $word = $word[0] . str_replace($this->vowels, '', $word); |
||
| 52 | } else { |
||
| 53 | $word = str_replace($this->vowels, '', $word); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | $word = str_replace(['you'], 'u', $word); |
||
| 57 | $hrry[] = $word; |
||
| 58 | } |
||
| 59 | |||
| 60 | return implode(' ', $hrry); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |