Hello   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 8 2
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