Conditions | 5 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function canCreate($member = null, $context = []) |
||
41 | { |
||
42 | if (isset($context['Parent']) && $context['Parent']->Name === 'disallowCanAddChildren') { |
||
43 | return false; |
||
44 | } |
||
45 | if (isset($context['Upload']['name']) && $context['Upload']['name'] === 'disallowCanCreate.txt') { |
||
46 | return false; |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.