Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 2 | public function __call($name, $arguments) |
|
22 | { |
||
23 | try { |
||
24 | 2 | $this->fakerString = $this->getFaker()->{$name}(...$arguments); |
|
25 | 1 | } catch (\Error $e) { |
|
26 | 1 | throw new \Exception('Faker is not installed. Call to undefined method PragmaRX\Random\Random::'.$name); |
|
27 | } |
||
28 | |||
29 | 1 | return $this; |
|
30 | } |
||
31 | |||
59 |