diff options
| author | vjkcxl <349-vjkcxl@users.noreply.gitlab.tt-rss.org> | 2025-09-01 14:32:23 -0500 |
|---|---|---|
| committer | vjkcxl <349-vjkcxl@users.noreply.gitlab.tt-rss.org> | 2025-09-01 14:32:23 -0500 |
| commit | 6c0bcd90ede37cffa1c354a1c61e3fffcd94abaf (patch) | |
| tree | 3c4a76ab8dda70e4aa76a37d7496f4de4dd72d17 | |
| parent | efe6fbd3fa97d4dcf22cdaa72561cc91421bcfe2 (diff) | |
Try to add types
| -rwxr-xr-x | plugins/af_comics/filters/af_comics_comicpress.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_comics/filters/af_comics_comicpress.php b/plugins/af_comics/filters/af_comics_comicpress.php index 54ad515d7..3b61612fb 100755 --- a/plugins/af_comics/filters/af_comics_comicpress.php +++ b/plugins/af_comics/filters/af_comics_comicpress.php @@ -48,7 +48,7 @@ class Af_Comics_ComicPress extends Af_ComicFilter { return false; } - private function cleanup($xpath, $content_node) { + private function cleanup(DOMXPath $xpath, DOMNode $content_node): void { $toUpdates = $xpath->query('//img[@data-src]', $content_node); $this->move_all_attributes($toUpdates, 'data-src', 'src'); @@ -64,7 +64,7 @@ class Af_Comics_ComicPress extends Af_ComicFilter { } } - private function move_all_attributes($toUpdates, $srcName, $dstName) { + private function move_all_attributes(DOMNodeList $toUpdates, string $srcName, string $dstName): void { foreach ($toUpdates as $toUpdate) { $attributeValue = $toUpdate->getAttribute($srcName); $toUpdate->setAttribute($dstName, $attributeValue); |