Conditions | 3 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
27 | 398 | public function apply($code, MockConfiguration $config) |
|
28 | { |
||
29 | 398 | if ($config->requiresCallTypeHintRemoval()) { |
|
30 | 6 | $code = str_replace( |
|
31 | 6 | 'public function __call($method, array $args)', |
|
32 | 6 | 'public function __call($method, $args)', |
|
33 | $code |
||
34 | 6 | ); |
|
35 | 6 | } |
|
36 | |||
37 | 398 | if ($config->requiresCallStaticTypeHintRemoval()) { |
|
38 | 2 | $code = str_replace( |
|
39 | 2 | 'public static function __callStatic($method, array $args)', |
|
40 | 2 | 'public static function __callStatic($method, $args)', |
|
41 | $code |
||
42 | 2 | ); |
|
43 | 2 | } |
|
44 | |||
45 | 398 | return $code; |
|
46 | } |
||
47 | } |
||
48 |