@@ -48,7 +48,7 @@ |
||
48 | 48 | public function addFileFromContent($content, $name) |
49 | 49 | { |
50 | 50 | $path = sys_get_temp_dir(); |
51 | - $fullPath = $path.DIRECTORY_SEPARATOR.$name; |
|
51 | + $fullPath = $path . DIRECTORY_SEPARATOR . $name; |
|
52 | 52 | file_put_contents($fullPath, $content); |
53 | 53 | $this->addFile($fullPath); |
54 | 54 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $basePath = self::getBasePathForMedia($media); |
20 | 20 | $originalPath = $media->getCollection()->getOriginalPath(); |
21 | 21 | if (!empty($originalPath)) { |
22 | - $basePath .= DIRECTORY_SEPARATOR.$media->getCollection()->getOriginalPath(); |
|
22 | + $basePath .= DIRECTORY_SEPARATOR . $media->getCollection()->getOriginalPath(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | return $basePath; |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public static function getBasePathForMedia($media) |
34 | 34 | { |
35 | - return '/'.$media->getCollection()->getName() |
|
36 | - .'/'.static::getFolderNameForMedia($media) |
|
37 | - .'/'.$media->getModel()->getPrimaryKey() |
|
35 | + return '/' . $media->getCollection()->getName() |
|
36 | + .'/' . static::getFolderNameForMedia($media) |
|
37 | + .'/' . $media->getModel()->getPrimaryKey() |
|
38 | 38 | .'/'; |
39 | 39 | } |
40 | 40 | |
@@ -61,6 +61,6 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public static function getBasePathForMediaConversion($media, $conversionName) |
63 | 63 | { |
64 | - return self::getBasePathForMedia($media).DIRECTORY_SEPARATOR.$conversionName; |
|
64 | + return self::getBasePathForMedia($media) . DIRECTORY_SEPARATOR . $conversionName; |
|
65 | 65 | } |
66 | 66 | } |
@@ -98,8 +98,8 @@ |
||
98 | 98 | |
99 | 99 | if ($conversionName) { |
100 | 100 | $path = $this->getBasePath() |
101 | - .DIRECTORY_SEPARATOR.$conversionName |
|
102 | - .DIRECTORY_SEPARATOR.$this->getName(); |
|
101 | + .DIRECTORY_SEPARATOR . $conversionName |
|
102 | + .DIRECTORY_SEPARATOR . $this->getName(); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | return $path; |