Use ::class notation where possible

This commit is contained in:
Yassine Guedidi
2022-09-01 20:54:56 +02:00
parent d1d56fbe25
commit 98af2e25f2
52 changed files with 347 additions and 250 deletions

View File

@ -162,7 +162,7 @@ class DownloadImages
switch ($ext) {
case 'gif':
// use Imagick if available to keep GIF animation
if (class_exists('\\Imagick')) {
if (class_exists(\Imagick::class)) {
try {
$imagick = new \Imagick();
$imagick->readImageBlob($res->getBody());