Completed
Push — master ( 20d8fe...40dd32 )
by Harald
09:20 queued 04:54
created

Is::__callStatic()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 7
nc 2
nop 2
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
  * osCommerce Online Merchant
4
  *
5
  * @copyright (c) 2016 osCommerce; https://www.oscommerce.com
6
  * @license GPL; https://www.oscommerce.com/gpllicense.txt
7
  */
8
9
namespace OSC\OM;
10
11
class Is
12
{
13
    public static function __callStatic($name, $arguments)
14
    {
15
        if (class_exists(__NAMESPACE__ . '\\Is\\' . $name)) {
16
            return (bool)call_user_func_array([
17
                __NAMESPACE__ . '\\Is\\' . $name,
18
                'execute'
19
            ], $arguments);
20
        }
21
22
        return false;
23
    }
24
}
25