@@ -75,10 +75,11 @@ |
||
75 | 75 | */ |
76 | 76 | protected function generateExpression() |
77 | 77 | { |
78 | - if (isset($this->properties)) |
|
79 | - $properties = Json::encode($this->properties); |
|
80 | - else |
|
81 | - $properties = ''; |
|
78 | + if (isset($this->properties)) { |
|
79 | + $properties = Json::encode($this->properties); |
|
80 | + } else { |
|
81 | + $properties = ''; |
|
82 | + } |
|
82 | 83 | return "new ol.$this->class($properties)"; |
83 | 84 | } |
84 | 85 |