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