| 1 | <?php |
||
| 20 | abstract class AbstractCommand extends Command |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var \Rougin\Describe\Describe |
||
| 24 | */ |
||
| 25 | protected $describe; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var \Twig_Environment |
||
| 29 | */ |
||
| 30 | protected $renderer; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var \CI_Controller |
||
| 34 | */ |
||
| 35 | protected $codeigniter; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param \CI_Controller $controller |
||
|
|
|||
| 39 | * @param \Rougin\Describe\Describe $describe |
||
| 40 | * @param \Twig_Environment $renderer |
||
| 41 | */ |
||
| 42 | 33 | public function __construct(CI_Controller $codeigniter, Describe $describe, Twig_Environment $renderer) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Checks whether the command is enabled or not in the current environment. |
||
| 53 | * |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | 3 | public function isEnabled() |
|
| 62 | } |
||
| 63 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.