@@ -13,9 +13,9 @@ |
||
13 | 13 | |
14 | 14 | class SitemapContext extends BaseContext |
15 | 15 | { |
16 | - const SITEMAP_SCHEMA_FILE = __DIR__.'/../Resources/schemas/sitemap.xsd'; |
|
17 | - const SITEMAP_XHTML_SCHEMA_FILE = __DIR__.'/../Resources/schemas/sitemap_xhtml.xsd'; |
|
18 | - const SITEMAP_INDEX_SCHEMA_FILE = __DIR__.'/../Resources/schemas/sitemap_index.xsd'; |
|
16 | + const SITEMAP_SCHEMA_FILE = __DIR__ . '/../Resources/schemas/sitemap.xsd'; |
|
17 | + const SITEMAP_XHTML_SCHEMA_FILE = __DIR__ . '/../Resources/schemas/sitemap_xhtml.xsd'; |
|
18 | + const SITEMAP_INDEX_SCHEMA_FILE = __DIR__ . '/../Resources/schemas/sitemap_index.xsd'; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var DOMDocument |
@@ -54,13 +54,13 @@ |
||
54 | 54 | if ('external' === $host) { |
55 | 55 | $xpath = preg_replace( |
56 | 56 | '/\[contains\(@(.*),/', |
57 | - '[not(starts-with(@$1,"'.$this->webUrl.'") or starts-with(@$1,"/")) and contains(@$1,', |
|
57 | + '[not(starts-with(@$1,"' . $this->webUrl . '") or starts-with(@$1,"/")) and contains(@$1,', |
|
58 | 58 | $xpath |
59 | 59 | ); |
60 | 60 | } elseif (null !== $host) { |
61 | 61 | $xpath = preg_replace( |
62 | 62 | '/\[contains\(@(.*),/', |
63 | - '[(starts-with(@$1,"'.$host.'") or starts-with(@$1,"/")) and contains(@$1,', |
|
63 | + '[(starts-with(@$1,"' . $host . '") or starts-with(@$1,"/")) and contains(@$1,', |
|
64 | 64 | $xpath |
65 | 65 | ); |
66 | 66 | } |