Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
3 | class ImageFixer |
||
4 | { |
||
5 | public function makeImageProper($matches, ?string $prefix = '') |
||
6 | { |
||
7 | // print_r($matches); |
||
8 | } |
||
9 | |||
10 | public function replaceContentAlt($contents) |
||
11 | { |
||
12 | // return preg_replace_callback("#(<img[^>]*src *= *[\"']?)([^\"']*)#i", function ($matches, ?string $prefix) { |
||
13 | // return $this->makeImageProper($matches, $prefix); |
||
14 | // }, $contents); |
||
15 | } |
||
16 | |||
17 | public function replaceContent() |
||
19 | // libxml_use_internal_errors(true); |
||
20 | // $dom = new \DOMDocument(); |
||
21 | // $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); |
||
30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.