@@ -88,6 +88,9 @@ discard block |
||
88 | 88 | return $url; |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $url |
|
93 | + */ |
|
91 | 94 | protected function downloadMedia($url, $ext) |
92 | 95 | { |
93 | 96 | $filepath = sys_get_temp_dir() . '/' . uniqid() . '.' . $ext; |
@@ -102,6 +105,9 @@ discard block |
||
102 | 105 | return new File($filepath, 'random'); |
103 | 106 | } |
104 | 107 | |
108 | + /** |
|
109 | + * @param string $key |
|
110 | + */ |
|
105 | 111 | protected function fetchFromCache($key) |
106 | 112 | { |
107 | 113 | $fs = new Filesystem(); |
@@ -130,6 +136,9 @@ discard block |
||
130 | 136 | } |
131 | 137 | } |
132 | 138 | |
139 | + /** |
|
140 | + * @param string $key |
|
141 | + */ |
|
133 | 142 | protected function storeInCache($key, File $file) |
134 | 143 | { |
135 | 144 | $fs = new Filesystem(); |