| Conditions | 3 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __construct($params) |
||
| 17 | { |
||
| 18 | if (!isset($params['icon'])) { |
||
| 19 | $params['icon'] = 'https://stmarksschool-ma.libapps.com/favicon.ico'; |
||
| 20 | } |
||
| 21 | |||
| 22 | parent::__construct($params); |
||
| 23 | |||
| 24 | assert( |
||
| 25 | !empty($params['site_id']) && is_numeric($params['site_id']), |
||
| 26 | new Exception('`site_id` parameter must be a valid numeric LibApps ID') |
||
| 27 | ); |
||
| 28 | assert( |
||
| 29 | !empty($params['key']), |
||
| 30 | new Exception('`key` parameter must not be empty') |
||
| 31 | ); |
||
| 32 | |||
| 33 | $this->setApi($params['site_id'], $params['key']); |
||
| 34 | } |
||
| 35 | |||
| 46 |
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..