| 1 | <?php |
||
| 11 | abstract class MetaBase extends ArrayObject |
||
| 12 | { |
||
| 13 | protected $page; |
||
| 14 | protected $prefix; |
||
| 15 | protected $characterLimits = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param Page $page |
||
| 21 | */ |
||
| 22 | public function __construct(Page $page) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Generate all tags. |
||
| 30 | * |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | abstract protected function generateTags(); |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function addMeta($name, $content) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function addLink($rel, $href) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Escapes the value of an attribute. |
||
| 55 | * |
||
| 56 | * @param string $value |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | protected static function escape($value) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Filters attribute values to trim by length |
||
| 67 | * |
||
| 68 | * @param string $value |
||
|
|
|||
| 69 | * |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | protected function filterAttribute($name, $content) |
||
| 83 | } |
||
| 84 |
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.