| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 12 | public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null) |
||
| 13 | { |
||
| 14 | parent::__construct($elementName, $elementLabel, $options, $attributes); |
||
| 15 | // Get all languages |
||
| 16 | $languages = api_get_languages(); |
||
| 17 | $this->_options = array(); |
||
| 18 | $this->_values = array(); |
||
|
|
|||
| 19 | foreach ($languages['name'] as $index => $name) { |
||
| 20 | if($languages['folder'][$index] == api_get_setting('platformLanguage')) { |
||
| 21 | $this->addOption($name,$languages['folder'][$index],array('selected'=>'selected')); |
||
| 22 | } else { |
||
| 23 | $this->addOption($name,$languages['folder'][$index]); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..