mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 13:54:03 +00:00
fix style
This commit is contained in:
parent
80947a4889
commit
d636ab5fe3
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
@ -68,7 +69,6 @@ class JobPipeline implements ShouldQueue
|
|||
$result = app()->call($job);
|
||||
} catch (Throwable $exception) {
|
||||
if (method_exists(get_class($job[0]), 'failed')) {
|
||||
|
||||
call_user_func_array([$job[0], 'failed'], [$exception]);
|
||||
} else {
|
||||
Log::error($exception);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue