Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | protected function extractMetaDetails(): void |
||
14 | { |
||
15 | $path = $this->image->content()['filename']; |
||
16 | |||
17 | preg_match_all('/(?<width>\d+)x(?<height>\d+).+\.(?<extension>[a-z]{3,4})/mi', $path, $dimensions, PREG_SET_ORDER, 0); |
||
18 | |||
19 | $this->meta = [ |
||
20 | 'height' => null, |
||
21 | 'width' => null, |
||
22 | 'extension' => 'svg', |
||
23 | 'mime' => 'image/svg+xml', |
||
24 | ]; |
||
55 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.