Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
75 | public function toArray(): array |
||
76 | { |
||
77 | return [ |
||
78 | 'id' => $this->id, |
||
79 | 'name' => $this->name, |
||
80 | 'tags' => $this->tags, |
||
81 | 'privacy' => $this->privacy, |
||
82 | 'gone_at' => $this->goneAt, |
||
83 | 'size' => $this->size, |
||
84 | 'password' => $this->password, |
||
85 | 'url' => $this->url, |
||
86 | 'cdn_url' => $this->cdnUrl, |
||
87 | 'show_url' => $this->showUrl, |
||
88 | 'download_url' => $this->downloadUrl, |
||
89 | 'mime' => $this->mime, |
||
90 | ]; |
||
93 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.