@@ -172,6 +172,9 @@ |
||
172 | 172 | )->first(); |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @return FileInterface |
|
177 | + */ |
|
175 | 178 | protected function findFile(string $mediaId): ?FileInterface |
176 | 179 | { |
177 | 180 | return $this->fileRepository->findFileByAssetId(ArticleMedia::handleMediaId($mediaId)); |
@@ -166,7 +166,7 @@ |
||
166 | 166 | private function findOriginalRendition(ItemInterface $item): RenditionInterface |
167 | 167 | { |
168 | 168 | return $item->getRenditions()->filter( |
169 | - function (RenditionInterface $rendition) { |
|
169 | + function(RenditionInterface $rendition) { |
|
170 | 170 | return 'original' === $rendition->getName(); |
171 | 171 | } |
172 | 172 | )->first(); |