55% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
58% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
Loading history...
28
// }
29
30
/**
31
* @var int
32
*/
33
protected $id;
34
35
/**
36
* @var string
37
*/
38
protected $name;
39
40
/**
41
* @var Plan|null
42
* XXX not sure to implement
43
*/
44
protected $parent;
45
46
/**
47
* @var CustomerInterface
48
*/
49
protected $seller;
50
51
/**
52
* @var TargetInterface
53
*/
54
protected $target;
55
56
/**
57
* @var PriceInterface[]
58
*/
59
protected $prices = [];
60
61
/**
62
* @param PriceInterface[] $prices
63
*/
64
public function __construct($id, $name, CustomerInterface $seller, array $prices = [])
65
{
66
$this->id = $id;
67
$this->name = $name;
68
$this->seller = $seller;
69
$this->prices = $prices;
70
}
71
72
/**
73
* @return PriceInterface[]
74
*/
75
public function getPrices()
76
{
77
return $this->prices;
78
}
79
80
/**
81
* Calculate charges for given action.
82
* @param ActionInterface $action
83
* @return Charge[]
84
*/
85
public function calculateCharges(ActionInterface $action)
The method calculateCharge() does not seem to exist on object<hiqdev\php\billing\price\PriceInterface>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.