| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 21 | 99 | public static function create($name = 'bootstrap3') |
|
| 22 | { |
||
| 23 | switch ($name) { |
||
| 24 | 99 | case 'foundation6': |
|
| 25 | 6 | $result = new Foundation6Template(); |
|
| 26 | 6 | break; |
|
| 27 | 96 | case 'foundation5': |
|
| 28 | 15 | $result = new Foundation5Template(); |
|
| 29 | 15 | break; |
|
| 30 | 90 | case 'bootstrap3': |
|
| 31 | 90 | default: |
|
| 32 | 90 | $result = new Bootstrap3Template(); |
|
| 33 | 90 | } |
|
| 34 | |||
| 35 | 99 | return $result; |
|
| 36 | } |
||
| 37 | } |
||
| 38 |