Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 9 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
88 | /** |
||
89 | * @param string $type |
||
90 | * @return Nip_Form_Renderer_DisplayGroup |
||
91 | */ |
||
92 | public function getNewRenderer($type = 'basic') |
||
93 | { |
||
94 | $name = 'Nip_Form_Renderer_DisplayGroup'; |
||
95 | /** @var Nip_Form_Renderer_DisplayGroup $renderer */ |
||
96 | $renderer = new $name(); |
||
97 | $renderer->setGroup($this); |
||
102 |
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.