Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
29 | public function __construct() |
||
30 | { |
||
31 | 3 | $callback = function ($var) { |
|
32 | 2 | $regEx = '/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/x'; |
|
33 | 2 | $words = preg_split($regEx, $var); |
|
34 | 2 | return implode(' ', $words); |
|
|
|||
35 | 3 | }; |
|
36 | 3 | $this->formatter = new Formatter($callback); |
|
37 | 3 | } |
|
49 |