NotVoidJob   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 1
1
<?php
2
3
namespace tests\app\jobs;
4
5
use yii\base\BaseObject;
6
use yii\queue\JobInterface;
7
8
/**
9
 * Not Void Job
10
 */
11
class NotVoidJob extends BaseObject implements JobInterface
12
{
13
    /**
14
     * @inheritdoc
15
     */
16
    public function execute($queue)
17
    {
18
        return [
19
            'a' => 1,
20
            'b' => 2,
21
        ];
22
    }
23
}
24