JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "SkipIfBatchCancelled.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/laravel/framework/src/Illuminate/Queue/Middleware/SkipIfBatchCancelled.php
File size: 383 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Illuminate\Queue\Middleware;

class SkipIfBatchCancelled
{
    /**
     * Process the job.
     *
     * @param  mixed  $job
     * @param  callable  $next
     * @return mixed
     */
    public function handle($job, $next)
    {
        if (method_exists($job, 'batch') && $job->batch()?->cancelled()) {
            return;
        }

        $next($job);
    }
}