Passed
Push — master ( b4e3f0...d6a119 )
by Robbie
04:16 queued 02:31
created

BatchedProcessor_QueuedJobService.php (2 issues)

1
<?php
2
3
namespace SilverStripe\FullTextSearch\Tests\BatchedProcessorTest;
4
5
use Symbiote\QueuedJobs\Services\QueuedJob;
6
7
class BatchedProcessor_QueuedJobService
8
{
9
    protected $jobs = array();
10
11
    public function queueJob(QueuedJob $job, $startAfter = null, $userId = null, $queueName = null)
0 ignored issues
show
The parameter $userId is not used and could be removed. ( Ignorable by Annotation )

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

11
    public function queueJob(QueuedJob $job, $startAfter = null, /** @scrutinizer ignore-unused */ $userId = null, $queueName = null)

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

Loading history...
The parameter $queueName is not used and could be removed. ( Ignorable by Annotation )

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

11
    public function queueJob(QueuedJob $job, $startAfter = null, $userId = null, /** @scrutinizer ignore-unused */ $queueName = null)

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

Loading history...
12
    {
13
        $this->jobs[] = array(
14
            'job' => $job,
15
            'startAfter' => $startAfter
16
        );
17
        return $job;
18
    }
19
20
    public function getJobs()
21
    {
22
        return $this->jobs;
23
    }
24
}
25