Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #10 from kooped/master
Browse files Browse the repository at this point in the history
Use class constants for class names
  • Loading branch information
mediabeastnz authored Oct 2, 2020
2 parents a048f0c + 75d2f68 commit 812e1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImgixConvertTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function run($request)
$objects = Image::get();
$count = $objects->count();
foreach ($objects as $image) {
$image->setClassName('Imgix')->write();
$image->setClassName(Imgix::class)->write();
}
echo "Converted {$count} Image objects to Imgix Objects";
}
Expand All @@ -54,7 +54,7 @@ public function run($request)
$objects = Imgix::get();
$count = $objects->count();
foreach ($objects as $image) {
$image->setClassName('Image')->write();
$image->setClassName(Image::class)->write();
}
echo "Converted {$count} Imgix objects to Image Objects";
}
Expand Down

0 comments on commit 812e1b3

Please sign in to comment.