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