@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | public $backgroundColor; |
49 | 49 | |
50 | 50 | /** @var string [$focusOn] **/ |
51 | - public $focusOn =[]; |
|
51 | + public $focusOn = []; |
|
52 | 52 | |
53 | 53 | /** @var array [$labels] **/ |
54 | 54 | public $labels = []; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | !$this->backgroundColor ?: 'backgroundColor' => |
133 | 133 | !$this->backgroundColor ?: $this->backgroundColor, |
134 | 134 | !$this->focusOn ?: 'focusOn' => |
135 | - !$this->focusOn ?: $this->focusOn , |
|
135 | + !$this->focusOn ?: $this->focusOn, |
|
136 | 136 | !$this->labels ?: 'labels' => |
137 | 137 | !$this->labels ?: $this->labels, |
138 | 138 | !$this->markerLabelStyle ?: 'markerLabelStyle' => |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | !$this->markers ?: $this->markers, |
142 | 142 | 'markersSelectable' => $this->markersSelectable, |
143 | 143 | 'markersSelectableOne' => $this->markersSelectableOne, |
144 | - !$this->markerStyle ?:'markerStyle' => |
|
144 | + !$this->markerStyle ?: 'markerStyle' => |
|
145 | 145 | !$this->markerStyle ?: $this->markerStyle, |
146 | 146 | 'panOnDrag' => $this->panOnDrag, |
147 | 147 | !$this->regionLabelStyle ?: '$regionLabelStyle' => |
@@ -22,13 +22,13 @@ |
||
22 | 22 | class MapAsset extends AssetBundle |
23 | 23 | { |
24 | 24 | |
25 | - private static $_maps=[]; |
|
25 | + private static $_maps = []; |
|
26 | 26 | |
27 | 27 | public $sourcePath = '@cjtterabytesoft/jvectormap/assets/maps/js/'; |
28 | 28 | |
29 | 29 | public function registerAssetFiles($view) |
30 | 30 | { |
31 | - foreach (self::$_maps as $map){ |
|
31 | + foreach (self::$_maps as $map) { |
|
32 | 32 | $jsname = "jquery-jvectormap-" . str_replace('_', '-', $map) . ".js"; |
33 | 33 | if (file_exists($this->sourcePath . "/" . $jsname)) { |
34 | 34 | $this->js[] = $jsname; |