@@ -29,13 +29,13 @@ discard block |
||
| 29 | 29 | private function getSchema($isIndex) |
| 30 | 30 | { |
| 31 | 31 | if ($isIndex) { |
| 32 | - return __DIR__ . '/' . self::INDEX; |
|
| 32 | + return __DIR__.'/'.self::INDEX; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | if ($this->strictMode) { |
| 36 | - return __DIR__ . '/' . self::SCHEMA; |
|
| 36 | + return __DIR__.'/'.self::SCHEMA; |
|
| 37 | 37 | } else { |
| 38 | - return __DIR__ . '/' . self::NON_STRICT_SCHEMA; |
|
| 38 | + return __DIR__.'/'.self::NON_STRICT_SCHEMA; |
|
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | if (!$valid) { |
| 50 | 50 | $lastError = libxml_get_last_error(); |
| 51 | 51 | throw new ValidationFailedException( |
| 52 | - 'The given sitemap file (' . $filename . ') did not validate against the sitemap schema (last error: ' . str_replace("\n", '', $lastError->message) . ').'); |
|
| 52 | + 'The given sitemap file ('.$filename.') did not validate against the sitemap schema (last error: '.str_replace("\n", '', $lastError->message).').'); |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | if ($error === true) { |
| 47 | 47 | $allNotFoundSelectors = implode('", "', $snotFoundSelectors); |
| 48 | 48 | |
| 49 | - throw new ValidationFailedException('CSS Selector "' . $allNotFoundSelectors . '" not found in DOM.'); |
|
| 49 | + throw new ValidationFailedException('CSS Selector "'.$allNotFoundSelectors.'" not found in DOM.'); |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | } |