1 | <?php |
||
8 | class AlternateFormats extends Zend_View_Helper_Abstract |
||
9 | { |
||
10 | protected static $supportedFormats = [ |
||
11 | 'rss' => [ |
||
12 | 'name' => 'RSS', |
||
13 | ], |
||
14 | 'csv' => [ |
||
15 | 'name' => 'CSV', |
||
16 | ], |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * Returns a string of HTML links for end-user, and also append 'alternate' links to HTML header |
||
21 | * @param array $formats |
||
22 | * @param string $title |
||
|
|||
23 | * @return string |
||
24 | */ |
||
25 | 4 | public function alternateFormats(array $formats, $title = null) |
|
49 | } |
||
50 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.