Completed
Push — master ( 0c0a07...85110e )
by Unnawut
41s
created

ProcessTracks::__construct()   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
use Maqe\Qwatcher\Tracks\Enums\StatusType;
4
5 View Code Duplication
class ProcessTracks 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...
6
{
7
    public function __construct($id, $job = null, array $meta = [])
0 ignored issues
show
Unused Code introduced by
The parameter $meta is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
8
    {
9
        return $this->pushToTracks($id, $job);
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...
10
    }
11
12
    public function pushToTracks($id, $job = null, array $meta = [])
13
    {
14
        return $this->update($id, $job, StatusType::PROCESS);
15
    }
16
}
17