| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function init() |
||
| 28 | { |
||
| 29 | parent::init(); |
||
| 30 | $maps = $this->getMapsArray(); |
||
| 31 | if (!empty($maps[self::$mapName])) { |
||
| 32 | $this->setMap($maps[self::$mapName]); |
||
| 33 | $this->js = [ |
||
| 34 | 'jquery-jvectormap-' . $this->getMap() . '.js' |
||
| 35 | ]; |
||
| 36 | } else { |
||
| 37 | throw new InvalidArgumentException(__class__ . ': Incorrect map name: "' . self::$mapName . '"'); |
||
| 38 | } |
||
| 74 |