RabbitMQJob::delete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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