RabbitMQJob   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A delete() 0 5 1
1
<?php
2
3
namespace Noitran\Lumen\Horizon\Jobs;
4
5
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Jobs\RabbitMQJob as BaseJob;
6
7
class RabbitMQJob extends BaseJob
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function delete(): void
13
    {
14
        parent::delete();
15
16
        $this->connection->deleteReserved($this->queue, $this);
0 ignored issues
show
introduced by
The method deleteReserved() does not exist on VladimirYuldashev\Larave...tMQ\Queue\RabbitMQQueue. Are you sure you never get this type here, but always one of the subclasses? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
        $this->connection->/** @scrutinizer ignore-call */ 
17
                           deleteReserved($this->queue, $this);
Loading history...
17
    }
18
}
19