@@ -176,13 +176,13 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | $this->_renderedUrls = array_merge($this->_renderedUrls, $model->generateSiteMap()); |
| 178 | 178 | } |
| 179 | - $this->_renderedUrls = array_map(function ($item) { |
|
| 179 | + $this->_renderedUrls = array_map(function($item) { |
|
| 180 | 180 | $item['loc'] = Url::to($item['loc'], true); |
| 181 | 181 | if (isset($item['lastmod'])) { |
| 182 | 182 | $item['lastmod'] = Sitemap::dateToW3C($item['lastmod']); |
| 183 | 183 | } |
| 184 | 184 | if (isset($item['images'])) { |
| 185 | - $item['images'] = array_map(function ($image) { |
|
| 185 | + $item['images'] = array_map(function($image) { |
|
| 186 | 186 | $image['loc'] = Url::to($image['loc'], true); |
| 187 | 187 | return $image; |
| 188 | 188 | }, $item['images']); |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | protected function sortUrlsByPriority() |
| 238 | 238 | { |
| 239 | - usort($this->_renderedUrls, function ($urlA, $urlB) { |
|
| 239 | + usort($this->_renderedUrls, function($urlA, $urlB) { |
|
| 240 | 240 | if (!isset($urlA['priority'])) { |
| 241 | 241 | return 1; |
| 242 | 242 | } |