@@ -175,6 +175,11 @@ discard block |
||
175 | 175 | return sha1($result); |
176 | 176 | } |
177 | 177 | |
178 | + /** |
|
179 | + * @param string $resultFile |
|
180 | + * @param string $type |
|
181 | + * @param string $hash |
|
182 | + */ |
|
178 | 183 | protected function uploadToS3( $resultFile , $type , $hash ) |
179 | 184 | { |
180 | 185 | $fileName = $this->getFileInfo( $resultFile , $type , $hash , "FILENAME" ); |
@@ -183,6 +188,11 @@ discard block |
||
183 | 188 | return $file; |
184 | 189 | } |
185 | 190 | |
191 | + /** |
|
192 | + * @param string $resultFile |
|
193 | + * @param string $type |
|
194 | + * @param string $hash |
|
195 | + */ |
|
186 | 196 | protected function getS3Path( $resultFile , $type , $hash ) |
187 | 197 | { |
188 | 198 | $fileName = $this->getFileInfo( $resultFile , $type , $hash , "FILENAME" ); |
@@ -225,6 +235,9 @@ discard block |
||
225 | 235 | return $version; |
226 | 236 | } |
227 | 237 | |
238 | + /** |
|
239 | + * @param boolean $bucket |
|
240 | + */ |
|
228 | 241 | protected function s3Path( $bucket , $fileName ) |
229 | 242 | { |
230 | 243 | return "https://s3.amazonaws.com/".$bucket."/".$fileName; |
@@ -246,6 +259,11 @@ discard block |
||
246 | 259 | } |
247 | 260 | } |
248 | 261 | |
262 | + /** |
|
263 | + * @param string $resultFile |
|
264 | + * @param string $type |
|
265 | + * @param string $hash |
|
266 | + */ |
|
249 | 267 | protected function doesObjectExist( $resultFile , $type , $hash ) |
250 | 268 | { |
251 | 269 | $fileName = $this->getFileInfo( $resultFile , $type , $hash , "FILENAME" ); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @param $data |
69 | 69 | * @param null|array $options |
70 | - * @return bool|mixed|string |
|
70 | + * @return string|false |
|
71 | 71 | */ |
72 | 72 | private function htmlCompress($data, $options = null) |
73 | 73 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $line |
|
151 | + * @param string $line |
|
152 | 152 | * @return array |
153 | 153 | * @codeCoverageIgnore |
154 | 154 | */ |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * @param $line |
|
168 | + * @param string $line |
|
169 | 169 | * @return array |
170 | 170 | * @codeCoverageIgnore |
171 | 171 | */ |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * Returns the next line from an open file handle or a string |
186 | 186 | * @param $data |
187 | - * @return bool|string |
|
187 | + * @return string|false |
|
188 | 188 | * @codeCoverageIgnore |
189 | 189 | */ |
190 | 190 | private function getLine(&$data) |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | /** |
212 | 212 | * @param $data |
213 | 213 | * @param null|array $options |
214 | - * @return bool|mixed|string |
|
214 | + * @return string|false |
|
215 | 215 | * @deprecated |
216 | 216 | * @codeCoverageIgnore |
217 | 217 | */ |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | /** |
226 | 226 | * Returns the next line from an open file handle or a string |
227 | 227 | * @param $data |
228 | - * @return bool|string |
|
228 | + * @return string|false |
|
229 | 229 | * @deprecated |
230 | 230 | * @codeCoverageIgnore |
231 | 231 | */ |