Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
38 | 4 | public function validatePlugin($plugin) |
|
39 | { |
||
40 | 4 | if (!$plugin instanceof PluginInterface) { |
|
41 | 2 | throw new RuntimeException(sprintf( |
|
42 | 2 | 'Plugin of type %s is invalid; must implement %s\FilterInterface or be callable', |
|
43 | 2 | (is_object($plugin) ? get_class($plugin) : gettype($plugin)), |
|
44 | __NAMESPACE__ |
||
45 | 2 | )); |
|
46 | } |
||
47 | 2 | } |
|
48 | |||
70 |