improve code style
This commit is contained in:
@ -140,7 +140,7 @@ class Loader
|
|||||||
return [
|
return [
|
||||||
$sCopyLongDescFromTinyMCE,
|
$sCopyLongDescFromTinyMCE,
|
||||||
$sUrlConverter,
|
$sUrlConverter,
|
||||||
$sInit
|
$sInit,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ class Loader
|
|||||||
Registry::getConfig()->getActiveView()->getViewConfig()->getModuleUrl(
|
Registry::getConfig()->getActiveView()->getViewConfig()->getModuleUrl(
|
||||||
Constants::OXID_MODULE_ID,
|
Constants::OXID_MODULE_ID,
|
||||||
'out/tinymce/tinymce.min.js'
|
'out/tinymce/tinymce.min.js'
|
||||||
)
|
),
|
||||||
];
|
];
|
||||||
} catch (FileException) {
|
} catch (FileException) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -485,8 +485,7 @@ class RoxyImage
|
|||||||
string $type,
|
string $type,
|
||||||
?string $destination = '',
|
?string $destination = '',
|
||||||
int $quality = 90
|
int $quality = 90
|
||||||
): void
|
): void {
|
||||||
{
|
|
||||||
try {
|
try {
|
||||||
if (is_string($img)) {
|
if (is_string($img)) {
|
||||||
$img = self::GetImage($img);
|
$img = self::GetImage($img);
|
||||||
@ -502,7 +501,8 @@ class RoxyImage
|
|||||||
default:
|
default:
|
||||||
imagejpeg($img, $destination, $quality);
|
imagejpeg($img, $destination, $quality);
|
||||||
}
|
}
|
||||||
} catch ( RuntimeException $e ) {}
|
} catch (RuntimeException $e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function SetAlpha(GdImage $img, string $path): GdImage
|
public static function SetAlpha(GdImage $img, string $path): GdImage
|
||||||
@ -552,7 +552,8 @@ class RoxyImage
|
|||||||
imagecopyresampled($thumbImg, $img, 0, 0, 0, 0, (int) $newWidth, (int) $newHeight, $w, $h);
|
imagecopyresampled($thumbImg, $img, 0, 0, 0, 0, (int) $newWidth, (int) $newHeight, $w, $h);
|
||||||
|
|
||||||
self::OutputImage($thumbImg, RoxyFile::GetExtension(basename($source)), $destination, $quality);
|
self::OutputImage($thumbImg, RoxyFile::GetExtension(basename($source)), $destination, $quality);
|
||||||
} catch ( RuntimeException $e ) {}
|
} catch (RuntimeException $e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -603,7 +604,8 @@ class RoxyImage
|
|||||||
}
|
}
|
||||||
|
|
||||||
self::Crop($source, $destination, (int) $left, (int) $top, $cropWidth, $cropHeight, $width, $height, $quality);
|
self::Crop($source, $destination, (int) $left, (int) $top, $cropWidth, $cropHeight, $width, $height, $quality);
|
||||||
} catch (RuntimeException $e) {}
|
} catch (RuntimeException $e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71,10 +71,10 @@ $aModule = [
|
|||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'value' => true,
|
'value' => true,
|
||||||
'position' => 2,
|
'position' => 2,
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
'events' => [
|
'events' => [
|
||||||
'onActivate' => Events::class.'::onActivate',
|
'onActivate' => Events::class.'::onActivate',
|
||||||
'onDeactivate' => Events::class.'::onDeactivate'
|
'onDeactivate' => Events::class.'::onDeactivate',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user