Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
23 | interface ParameterSpecInterface |
||
24 | { |
||
25 | public function getExtractorDefinition(): ExtractorDefinitionInterface; |
||
26 | |||
27 | public function getName(): string; // We may use it later to generate function description |
||
28 | |||
29 | public function isOptional(): bool; // when undefined passed we may use optional value, if it available |
||
30 | |||
31 | // TODO: to generate js function toString() text we may keep this value compatible with default arg standard |
||
32 | public function getDefaultValue(); // if variadic, [] is default, every variadic is optional. |
||
33 | |||
34 | public function isVariadic(): bool; |
||
35 | // |
||
|
|||
36 | // public function isVirtual() : bool; // TODO: virtual parameter will simply return what user set via $this->getDefaultValue() |
||
37 | } |
||
38 |
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.