We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
11 | 64 | public function __construct($name = 'call') |
|
12 | { |
||
13 | 64 | parent::__construct( |
|
14 | 64 | $name, |
|
15 | function ($target, $args = '[]', $static = false) { |
||
16 | 1 | if ($static) { |
|
17 | 1 | return \sprintf('\call_user_func_array(%s, %s)', $target, $args); |
|
18 | } else { |
||
19 | 1 | return \sprintf('%s(...%s)', $target, $args); |
|
20 | } |
||
21 | 64 | } |
|
22 | ); |
||
23 | 64 | } |
|
24 | } |
||
25 |