Completed
Pull Request — master (#621)
by Rafał
09:20
created
src/SWP/Bundle/ContentBundle/Factory/ORM/MediaFactory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.