1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 12:14:03 +00:00

fix style

This commit is contained in:
hackerESQ 2022-03-18 13:44:18 -05:00 committed by GitHub
parent 80947a4889
commit d636ab5fe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace Stancl\JobPipeline;
use Closure;
use Throwable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Log;
use Throwable;
class JobPipeline implements ShouldQueue
{
@ -66,9 +67,8 @@ class JobPipeline implements ShouldQueue
try {
$result = app()->call($job);
} catch(Throwable $exception) {
if ( method_exists(get_class($job[0]), 'failed') ) {
} catch (Throwable $exception) {
if (method_exists(get_class($job[0]), 'failed')) {
call_user_func_array([$job[0], 'failed'], [$exception]);
} else {
Log::error($exception);