Skip to content

Commit

Permalink
Refactor OptimizeStickerJob
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Jul 15, 2024
1 parent cd90d4f commit 40753a6
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions app/Jobs/OptimizeStickerJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Str;
use Intervention\Image\Exception\InvalidArgumentException;
use Intervention\Image\Exception\NotReadableException;
use Intervention\Image\Facades\Image;
use InvalidArgumentException;
use SergiX44\Nutgram\Nutgram;
use SergiX44\Nutgram\Telegram\Properties\ChatAction;
use SergiX44\Nutgram\Telegram\Properties\ParseMode;
Expand All @@ -29,23 +29,12 @@ class OptimizeStickerJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

private int $chatID;
private int $replyID;
private string $fileID;
private int $fileSize;

/**
* @param int $chatID
* @param int $replyID
* @param string $fileID
* @param int $fileSize
*/
public function __construct(int $chatID, int $replyID, string $fileID, int $fileSize)
{
$this->chatID = $chatID;
$this->replyID = $replyID;
$this->fileID = $fileID;
$this->fileSize = $fileSize;
public function __construct(
protected int $chatID,
protected int $replyID,
protected string $fileID,
protected int $fileSize,
) {
}

/**
Expand Down

0 comments on commit 40753a6

Please sign in to comment.