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