Completed
Pull Request — 2.0 (#986)
by
unknown
09:30
created
src/SWP/Bundle/ContentBundle/Factory/ORM/MediaFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $size = \filesize($uploadedFile->getRealPath());
157 157
             $size = $size / 1024;
158 158
             $size = (string) number_format($size);
159
-            if($size !== null){
159
+            if ($size !== null) {
160 160
                 $file->setLength($size);
161 161
             }
162 162
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     private function findOriginalRendition(ItemInterface $item): RenditionInterface
169 169
     {
170 170
         return $item->getRenditions()->filter(
171
-            static function (RenditionInterface $rendition) {
171
+            static function(RenditionInterface $rendition) {
172 172
                 return 'original' === $rendition->getName();
173 173
             }
174 174
         )->first();
Please login to merge, or discard this patch.