| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function split($word) |
||
| 25 | { |
||
| 26 | // Match camelCase |
||
| 27 | $pattern = '/ # Match position between camelCase "words". |
||
| 28 | (?<=[a-z]) # Position is after a lowercase, |
||
| 29 | (?=[A-Z]) # and before an uppercase letter. |
||
| 30 | /x'; |
||
| 31 | |||
| 32 | $words = preg_split($pattern, $word); |
||
| 33 | |||
| 34 | return $words; |
||
| 35 | } |
||
| 36 | |||
| 51 |