mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
Minor changes
This commit is contained in:
parent
821b5c5bdd
commit
d96fde1f55
1 changed files with 2 additions and 2 deletions
|
@ -133,9 +133,9 @@ class Image extends Model
|
||||||
*
|
*
|
||||||
* @param File $image The image file to be processed
|
* @param File $image The image file to be processed
|
||||||
* @param string $path The path to save the processed image file
|
* @param string $path The path to save the processed image file
|
||||||
* @param int $coverType The type to process the image to
|
* @param array $coverType The type to process the image to
|
||||||
*/
|
*/
|
||||||
public static function processFile(File $image, string $path, $coverType) {
|
private static function processFile(File $image, string $path, $coverType) {
|
||||||
if ($coverType['id'] === self::ORIGINAL && $image->getMimeType() === self::MIME_JPEG) {
|
if ($coverType['id'] === self::ORIGINAL && $image->getMimeType() === self::MIME_JPEG) {
|
||||||
$command = 'cp "'.$image->getPathname().'" '.$path;
|
$command = 'cp "'.$image->getPathname().'" '.$path;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue