Hello::run()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace Job;
4
5
use Basis\Job;
6
7
/**
8
 * Example job for greeting
9
 */
10
class Hello extends Job
11
{
12
    public $name = 'world';
13
14
    public function run(HelloSomebody $dependency)
0 ignored issues
show
Unused Code introduced by
The parameter $dependency 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...
15
    {
16
        if ($this->name === 'bazyaba') {
17
            $this->confirm('bazyaba?');
18
        }
19
        $message = "hello $this->name!";
20
        return compact('message');
21
    }
22
}
23