@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $commands[] = "find {$module->storageFullPath} -regextype egrep -regex \".+/.{32}\..{3,4}\.jpg\" -exec rm -rf {} \;"; |
| 47 | 47 | $commands[] = "find {$module->cacheFullPath} -regextype egrep -regex \".+/.{32}\..{3,4}\.jpg\" -exec rm -rf {} \;"; |
| 48 | 48 | |
| 49 | - array_map(function ($command) { |
|
| 49 | + array_map(function($command) { |
|
| 50 | 50 | exec($command); |
| 51 | 51 | }, $commands); |
| 52 | 52 | |
@@ -25,10 +25,10 @@ |
||
| 25 | 25 | $this->image = imagecreatefromjpeg($filename); |
| 26 | 26 | } elseif ($this->image_type == IMAGETYPE_GIF) { |
| 27 | 27 | $this->image = imagecreatefromgif($filename); |
| 28 | - imageSaveAlpha($this->image,true); |
|
| 28 | + imageSaveAlpha($this->image, true); |
|
| 29 | 29 | } elseif ($this->image_type == IMAGETYPE_PNG) { |
| 30 | 30 | $this->image = imagecreatefrompng($filename); |
| 31 | - imageSaveAlpha($this->image,true); |
|
| 31 | + imageSaveAlpha($this->image, true); |
|
| 32 | 32 | } elseif ($this->image_type == IMAGETYPE_WEBP) { |
| 33 | 33 | $this->image = imagecreatefromwebp($filename); |
| 34 | 34 | } |