| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 66 | public function geCssSelector($selector, $content, $t) |
||
| 67 | { |
||
| 68 | $ret = ''; |
||
| 69 | if(is_array($selector)) { |
||
| 70 | $ret .= $t. implode("\n", $selector) . ' {'; |
||
| 71 | } else { |
||
| 72 | $ret .= $selector . ' {'; |
||
| 73 | } |
||
| 74 | if(is_array($content)) { |
||
| 75 | $ret .= $t. implode("\n", $content) . ';'; |
||
| 76 | } else { |
||
| 77 | $ret .= $content . ';'; |
||
| 78 | } |
||
| 79 | $ret = '}'; |
||
| 80 | |||
| 81 | return $ret; |
||
| 82 | } |
||
| 83 | } |
||
| 84 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.