| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class HtmlToast extends HtmlSemDoubleElement { |
||
| 9 | |||
| 10 | protected $_params=array(); |
||
| 11 | protected $_paramParts=array(); |
||
| 12 | public function __construct($identifier, $content="") { |
||
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 19 | public function setContent($value) { |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * |
||
| 26 | * {@inheritDoc} |
||
| 27 | * |
||
| 28 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile() |
||
| 29 | */ |
||
| 30 | public function compile(JsUtils $js=NULL, &$view=NULL) { |
||
| 31 | $this->content=JArray::sortAssociative($this->content, ["content","actions" ]); |
||
| 32 | return parent::compile($js, $view); |
||
| 33 | } |
||
| 34 | /* |
||
| 35 | * (non-PHPdoc) |
||
| 36 | * @see BaseHtml::run() |
||
| 37 | */ |
||
| 38 | public function run(JsUtils $js) { |
||
| 43 | } |
||
| 44 | } |
||
| 46 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.