Completed
Pull Request — master (#23)
by
unknown
02:30
created

QueueTracks::pushToTracks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
1
<?php namespace Maqe\Qwatcher\Tracks;
2
3 View Code Duplication
class QueueTracks extends TracksAbstract implements TracksInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
4
{
5
    public function __construct($id, $job = null, array $meta = [])
6
    {
7
        return $this->pushToTracks($id, $job, $meta);
0 ignored issues
show
Bug introduced by
Constructors do not have meaningful return values, anything that is returned from here is discarded. Are you sure this is correct?
Loading history...
8
    }
9
10
    public function pushToTracks($id, $job = null, array $meta = [])
11
    {
12
        return $this->create($id, $job, $meta);
13
    }
14
}
15