Job   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 4
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A error() 0 5 1
1
<?php
2
3
namespace Colligator\Jobs;
4
5
use Colligator\Events\JobError;
6
use Event;
7
use Illuminate\Bus\Queueable;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
use Illuminate\Queue\InteractsWithQueue;
10
use Illuminate\Queue\SerializesModels;
11
12
abstract class Job implements ShouldQueue
13
{
14
    /*
15
    |--------------------------------------------------------------------------
16
    | Queueable Jobs
17
    |--------------------------------------------------------------------------
18
    |
19
    | This job base class provides a central location to place any logic that
20
    | is shared across all of your jobs. The trait included with the class
21
    | provides access to the "queueOn" and "delay" queue helper methods.
22
    |
23
    */
24
25
    use InteractsWithQueue, Queueable, SerializesModels;
26
27
    protected function error($msg)
28
    {
29
        \Log::error($msg);
30
        Event::fire(new JobError($msg));
31
    }
32
}
33