| 1 | <?php |
||
| 19 | class Site |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Builder object. |
||
| 23 | * |
||
| 24 | * @var Builder |
||
| 25 | */ |
||
| 26 | protected $builder; |
||
| 27 | /** |
||
| 28 | * Configuration object. |
||
| 29 | * |
||
| 30 | * @var Config |
||
| 31 | */ |
||
| 32 | protected $config; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Site constructor. |
||
| 36 | * |
||
| 37 | * @param Config $config |
||
|
|
|||
| 38 | */ |
||
| 39 | public function __construct(Builder $builder) |
||
| 44 | |||
| 45 | public function __call($method, $args) { |
||
| 58 | |||
| 59 | public function getPages() { |
||
| 64 | |||
| 65 | public function getMenus() { |
||
| 68 | |||
| 69 | public function getTaxonomies() { |
||
| 72 | |||
| 73 | public function getTime() { |
||
| 76 | } |
||
| 77 |
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.