Skip to content

Commit

Permalink
Update Writer\Web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien committed Sep 14, 2018
1 parent bd758ef commit 115b731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Writer/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function write($web, int $indentSize = 0, string $indent = self::WRITER_I
$this->text .= self::getText('MAXSCALEDENOM', $web->maxscaledenom, $indentSize + 1, $indent);
$this->text .= self::getTextString('MAXTEMPLATE', $web->maxtemplate, $indentSize + 1, $indent);

if (!empty($layer->metadata)) {
$this->text .= (new Metadata())->write($layer->metadata, $indentSize + 1, $indent);
if (!empty($web->metadata)) {
$this->text .= (new Metadata())->write($web->metadata, $indentSize + 1, $indent);
}

$this->text .= self::getText('MINSCALEDENOM', $web->minscaledenom, $indentSize + 1, $indent);
Expand Down

0 comments on commit 115b731

Please sign in to comment.