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...
23
// }
24
25
/**
26
* @var int
27
*/
28
protected $id;
29
30
/**
31
* @var string
32
*/
33
protected $name;
34
35
/**
36
* @var Plan|null
37
* XXX not sure to implement
38
*/
39
protected $parent;
40
41
/**
42
* @var CustomerInterface
43
*/
44
protected $seller;
45
46
/**
47
* @var Target
48
*/
49
protected $target;
50
51
/**
52
* @var PriceInterface[]
53
*/
54
protected $prices = [];
55
56
/**
57
* @param PriceInterface[] $prices
58
*/
59
public function __construct($id, $name, CustomerInterface $seller, array $prices = [])
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
The method calculateCharge() does not seem to exist on object<hiqdev\php\billing\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.