| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FsFileStorage implements FileStorage |
||
| 11 | { |
||
| 12 | public function setContent(string $path, array $content) |
||
| 13 | { |
||
| 14 | // TODO: Implement setContent() method. |
||
| 15 | } |
||
| 16 | |||
| 17 | public function content(string $path): array |
||
| 18 | { |
||
| 19 | // TODO: Implement content() method. |
||
| 20 | } |
||
|
|
|||
| 21 | |||
| 22 | public function uriToTmpPicture(string $uri): Picture |
||
| 29 | } |
||
| 30 | |||
| 31 | } |
||
| 32 |
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: