Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public static function __callstatic($name, $params) |
||
21 | { |
||
22 | $matches = static::isFigletCall($name); |
||
23 | |||
24 | if (null === $matches) { |
||
25 | throw new Exception("Unknown figlet function name $name"); |
||
26 | } |
||
27 | |||
28 | $fontName = $matches[2]; |
||
29 | |||
30 | // target string is expected to be: |
||
31 | $targetString = $params[0][0]; |
||
32 | |||
33 | return static::render($targetString, $fontName); |
||
34 | } |
||
35 | |||
107 |