Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | public function init() |
||
29 | { |
||
30 | parent::init(); |
||
31 | $this->sourcePath = __DIR__ . '/src/maps'; |
||
32 | $this->setMaps(self::$maps); |
||
33 | $maps = $this->getMaps(); |
||
34 | if (is_array($maps) && !empty($maps[self::$mapName])) { |
||
35 | $this->setMap($maps[self::$mapName]); |
||
36 | $this->js = [ |
||
37 | 'jquery-jvectormap-' . $this->getMap() . '.js' |
||
38 | ]; |
||
39 | } else { |
||
40 | throw new InvalidArgumentException(__class__ . ': Incorrect map name: "' . self::$mapName . '"'); |
||
41 | } |
||
83 |