Completed
Pull Request — 2.x (#80)
by
unknown
02:00
created

Phpfunc::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
nc 1
cc 1
eloc 2
nop 2
crap 1
1
<?php
2
/**
3
 *
4
 * This file is part of the Aura project for PHP.
5
 *
6
 * @license http://opensource.org/licenses/bsd-license.php BSD
7
 *
8
 */
9
namespace Aura\Auth;
10
11
/**
12
 *
13
 * Proxy for the ease of testing PHP functions.
14
 *
15
 * http://mikenaberezny.com/2007/08/01/wrapping-php-functions-for-testability/
16
 *
17
 * @package Aura.Auth
18
 *
19
 */
20
21
class Phpfunc
22
{
23
    /**
24
     *
25
     * Magic call for PHP functions.
26
     *
27
     * @param string $method The PHP function to call.
28
     *
29
     * @param array $params Params to pass to the function.
30
     *
31
     * @return mixed
32
     *
33
     */
34 1
    public function __call($method, $params)
35
    {
36 1
        return call_user_func_array($method, $params);
37
    }
38
}
39