Completed
Push — master ( 217b57...dfec3c )
by Luis
02:27
created
widget/OpenLayers.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 class OpenLayers extends Widget
17 17
 {
18 18
 	/**
19
-     * @var array the HTML attributes for the container div of this widget.
20
-     * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
21
-     */
19
+	 * @var array the HTML attributes for the container div of this widget.
20
+	 * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
21
+	 */
22 22
 	public $options = [];
23 23
 	/**
24 24
 	 * The properties to be passed to the OpenLayers Map() constructor. In order to ease passing complex javascript structures, some simplifications are supported.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,10 +96,10 @@
 block discarded – undo
96 96
 				if (is_string($options))
97 97
 					$options = ['source' => new OL("source.$options")];
98 98
 					
99
-				$processedLayers []= new OL("layer.$type", $options);
99
+				$processedLayers [] = new OL("layer.$type", $options);
100 100
 			}
101 101
 			else // Therefore $type is simply an integer array key
102
-				$processedLayers []= $options;
102
+				$processedLayers [] = $options;
103 103
 		}
104 104
 		$this->mapOptions['layers'] = $processedLayers;
105 105
 	}
Please login to merge, or discard this patch.