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