Completed
Push — master ( 3cda90...3bb276 )
by Ryota
02:23
created

Storage/StorageInterface.php (3 issues)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
namespace Tavii\SQSJobQueue\Storage;
3
4
use Tavii\SQSJobQueue\Queue\QueueName;
5
6
interface StorageInterface
7
{
8
    const SERVER_STATUS_RUN = 10;
9
    const SERVER_STATUS_CLOSE = 20;
10
    const SERVER_STATUS_UNKNOWN = 40;
11
12
    /**
13
     * @return array
14
     */
15
    public function all();
16
17
    /**
18
     * @param QueueName $queueName
19
     * @param string|null $server
20
     * @param string|null $procId
21
     * @return EntityInterface
22
     */
23
    public function find(QueueName $queueName, $server = null, $procId = null);
24
25
    /**
26
     * @param QueueName $queueName
27
     * @param string $server
28
     * @param int $procId
29
     * @param string $prefix
0 ignored issues
show
There is no parameter named $prefix. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
30
     * @return void
31
     */
32
    public function set(QueueName $queueName, $server, $procId);
33
34
    /**
35
     * @param QueueName $queueName
36
     * @param string $server
37
     * @param int $procId
38
     * @param string $prefix
0 ignored issues
show
There is no parameter named $prefix. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
39
     * @return array
40
     */
41
    public function get(QueueName $queueName, $server, $procId);
42
43
    /**
44
     * @param QueueName $queueName
45
     * @param string $server
46
     * @param string $procId
47
     * @param string $prefix
0 ignored issues
show
There is no parameter named $prefix. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
48
     * @return mixed
49
     */
50
    public function remove(QueueName $queueName, $server, $procId);
51
52
53
    /**
54
     * @param QueueName $queueName
55
     * @param $server
56
     * @return void
57
     */
58
    public function removeForce(QueueName $queueName, $server);
59
60
61
}