| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function __construct( array $config = [] ) { |
||
| 25 | // Parent constructor |
||
| 26 | parent::__construct( |
||
| 27 | array_merge( [ |
||
| 28 | 'infusable' => true, |
||
| 29 | 'maxLength' => null, |
||
| 30 | 'type' => 'search', |
||
| 31 | 'icon' => 'search' |
||
| 32 | ], $config ) |
||
| 33 | ); |
||
| 34 | |||
| 35 | // Properties, which are ignored in PHP and just shipped back to JS |
||
| 36 | if ( isset( $config['pushPending'] ) ) { |
||
| 37 | $this->pushPending = $config['pushPending']; |
||
| 38 | } |
||
| 39 | |||
| 40 | // Initialization |
||
| 41 | $this->addClasses( [ 'mw-widget-searchInputWidget' ] ); |
||
| 42 | } |
||
| 43 | |||
| 53 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.