Total Complexity | 4 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class GedComProgressSent implements ShouldBroadcast |
||
12 | { |
||
13 | use Dispatchable; |
||
14 | use InteractsWithSockets; |
||
15 | use SerializesModels; |
||
16 | |||
17 | public $slug; |
||
18 | public $total; |
||
19 | public $complete; |
||
20 | public $channel; |
||
21 | |||
22 | /** |
||
23 | * Create a new event instance. |
||
24 | * |
||
25 | * @param $slug |
||
26 | * @param $total |
||
27 | * @param $complete |
||
28 | */ |
||
29 | public function __construct( |
||
30 | $slug, |
||
31 | $total, |
||
32 | $complete, |
||
33 | $channel = ['name' => 'gedcom-progress', 'eventName' => 'newMessage'] |
||
34 | ) { |
||
35 | $this->slug = $slug; |
||
36 | $this->total = $total; |
||
37 | $this->complete = $complete; |
||
38 | $this->queue = 'low'; |
||
39 | |||
40 | $this->channel = $channel; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Get the data to broadcast. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function broadcastWith() |
||
49 | { |
||
50 | return [ |
||
51 | 'slug' => $this->slug, |
||
52 | 'total' => $this->total, |
||
53 | 'complete' => $this->complete, |
||
54 | ]; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Get the channels the event should broadcast on. |
||
59 | * |
||
60 | * @return Channel|array |
||
61 | */ |
||
62 | public function broadcastOn() |
||
63 | { |
||
64 | return new Channel($this->channel['name']); |
||
65 | } |
||
66 | |||
67 | public function broadcastAs() |
||
70 | } |
||
71 | } |
||
72 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths