@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | { |
19 | 19 | switch ($name) { |
20 | 20 | case 'map': |
21 | - return __DIR__ . '/' . self::SITEMAP; |
|
21 | + return __DIR__.'/'.self::SITEMAP; |
|
22 | 22 | case 'index': |
23 | 23 | default: |
24 | - return __DIR__ . '/' . self::SITEINDEX; |
|
24 | + return __DIR__.'/'.self::SITEINDEX; |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 | |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | $lastError = libxml_get_last_error(); |
44 | 44 | if ($lastError) { |
45 | 45 | throw new ValidationFailedException( |
46 | - 'The given sitemap file is not well formed (last error: ' . |
|
47 | - str_replace("\n", '', $lastError->message) . ').'); |
|
46 | + 'The given sitemap file is not well formed (last error: '. |
|
47 | + str_replace("\n", '', $lastError->message).').'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | if (preg_match('/<sitemapindex/', $body)) { |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | $lastError = libxml_get_last_error(); |
60 | 60 | $lastErrorMessage = str_replace("\n", '', $lastError->message); |
61 | 61 | throw new ValidationFailedException( |
62 | - 'The given sitemap file did not validate vs. ' . |
|
63 | - $this->getSchema() . ' (last error: ' . |
|
64 | - $lastErrorMessage . ').'); |
|
62 | + 'The given sitemap file did not validate vs. '. |
|
63 | + $this->getSchema().' (last error: '. |
|
64 | + $lastErrorMessage.').'); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | } |