Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
43 | public function getSelectorField(EditableCustomRule $rule, $forOnLoad = false) |
||
44 | { |
||
45 | // We only want to trigger on load once for the radio group - hence we focus on the first option only. |
||
46 | $first = $forOnLoad ? ':first' : ''; |
||
47 | return "$(\"input[name='{$this->Name}']{$first}\")"; |
||
48 | } |
||
49 | |||
54 |
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.