@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public function preRemove(MediaInterface $media) |
| 81 | 81 | { |
| 82 | - $this->filesystem->remove( $this->rootDir.'/../'.$media->getRelativeDir().'/'.$media->getMedia() ); |
|
| 82 | + $this->filesystem->remove($this->rootDir.'/../'.$media->getRelativeDir().'/'.$media->getMedia()); |
|
| 83 | 83 | $this->cacheManager->remove('/'.$media->getRelativeDir().'/'.$media->getMediaBeforeUpdate()); |
| 84 | 84 | } |
| 85 | 85 | /** |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | $this->eventDispatcher->addListener( |
| 131 | 131 | KernelEvents::TERMINATE, |
| 132 | - function () use ($media) { |
|
| 132 | + function() use ($media) { |
|
| 133 | 133 | $this->generateCache($media); |
| 134 | 134 | } |
| 135 | 135 | ); |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | if (!$media) |
| 165 | 165 | return $this; |
| 166 | 166 | |
| 167 | - if ($this->media!==null) { |
|
| 167 | + if ($this->media !== null) { |
|
| 168 | 168 | $this->setMediaBeforeUpdate($this->media); |
| 169 | 169 | // TODO must rename media (via service ?!) var_dump($this->media); exit; |
| 170 | 170 | } |