| Total Complexity | 4 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class CToolRepository extends ResourceRepository implements ResourceRepositoryInterface |
||
| 19 | { |
||
| 20 | public function getResources(User $user, ResourceNode $parentNode, Course $course = null, Session $session = null, CGroupInfo $group = null) |
||
| 21 | { |
||
| 22 | |||
| 23 | } |
||
| 24 | |||
| 25 | public function saveUpload(UploadedFile $file) |
||
| 26 | { |
||
| 27 | return false; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function saveResource(FormInterface $form, $course, $session, $fileType) { |
||
| 31 | |||
| 32 | } |
||
| 33 | |||
| 34 | public function getTitleColumn(Grid $grid): Column |
||
| 40 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: