Passed
Push — master ( ea66cd...e08546 )
by Dev
12:54
created
src/EventListener/MediaListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             $path = '/'.$media->getRelativeDir().'/'.$media->getMedia();
100 100
             $this->storeImageInCache($path, $this->getBinary($path), 'default');
101 101
 
102
-            $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function (EventDispatcher $event) use ($mapping, $media) {
102
+            $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function(EventDispatcher $event) use ($mapping, $media) {
103 103
                 $this->generateCache($media);
104 104
             });
105 105
         }
Please login to merge, or discard this patch.
src/EventListener/MediaCacheGeneratorTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $webPConverterOptions = self::$webPConverterOptions;
114 114
         $projectDir = $this->projectDir;
115 115
 
116
-        $this->pool->add(function () use ($projectDir, $path, $pathJpg, $pathWebP, $webPConverterOptions, $filter) {
116
+        $this->pool->add(function() use ($projectDir, $path, $pathJpg, $pathWebP, $webPConverterOptions, $filter) {
117 117
             // took 46s (vs 43s) to add liip generation in async
118 118
             //exec($projectDir.'/bin/console liip:imagine:cache:resolve "'.$path.'" --force --filter='.$filter.' >/dev/null 2>&1 &');
119 119
             self::imgToWebPStatic($pathJpg, $pathWebP, $webPConverterOptions, $filter);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $source = $this->projectDir.$media->getPath();
127 127
         //self::createWebPStatic($destination, $source);
128 128
 
129
-        $this->pool->add(function () use ($destination, $source) {
129
+        $this->pool->add(function() use ($destination, $source) {
130 130
             self::createWebPStatic($destination, $source);
131 131
         });
132 132
     }
Please login to merge, or discard this patch.