| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2.0116 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 2 | public static function create($view, $name) |
|
| 20 | { |
||
| 21 | 2 | $class = self::getHelperClass($name); |
|
| 22 | 2 | if (!class_exists($class)) { |
|
| 23 | throw new HelperNotFoundException("No helper name [{$name}] found for view engine."); |
||
| 24 | } |
||
| 25 | 2 | $helper = new $class(); |
|
| 26 | 2 | $helper->setView($view); |
|
| 27 | |||
| 28 | 2 | return $helper; |
|
| 29 | } |
||
| 58 |