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

Phpfunc   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __call() 0 4 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