@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | if (true === $selfHosted) { |
| 94 | 94 | $xpath = preg_replace( |
| 95 | 95 | '/\[contains\(@(.*),/', |
| 96 | - '[(starts-with(@$1,"' . $this->webUrl . '") or starts-with(@$1,"/")) and contains(@$1,', |
|
| 96 | + '[(starts-with(@$1,"'.$this->webUrl.'") or starts-with(@$1,"/")) and contains(@$1,', |
|
| 97 | 97 | $xpath |
| 98 | 98 | ); |
| 99 | 99 | } |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | public function cssOrJavascriptFilesShouldNotBeMinimized($resourceType) |
| 326 | 326 | { |
| 327 | 327 | $this->assertInverse( |
| 328 | - function () use ($resourceType) { |
|
| 328 | + function() use ($resourceType) { |
|
| 329 | 329 | $this->cssOrJavascriptFilesShouldBeMinimized($resourceType); |
| 330 | 330 | }, |
| 331 | 331 | sprintf('%s should not be minimized.', $resourceType) |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | public function browserCacheMustNotBeEnabledForCssResources($resourceType) |
| 376 | 376 | { |
| 377 | 377 | $this->assertInverse( |
| 378 | - function () use ($resourceType) { |
|
| 378 | + function() use ($resourceType) { |
|
| 379 | 379 | $this->browserCacheMustBeEnabledForResources($resourceType); |
| 380 | 380 | }, |
| 381 | 381 | sprintf('Browser cache is enabled for %s resources.', $resourceType) |
@@ -7,9 +7,9 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | class SitemapContext extends BaseContext |
| 9 | 9 | { |
| 10 | - const SITEMAP_SCHEMA_FILE = __DIR__ . '/../Resources/schemas/sitemap.xsd'; |
|
| 11 | - const SITEMAP_XHTML_SCHEMA_FILE = __DIR__ . '/../Resources/schemas/sitemap_xhtml.xsd'; |
|
| 12 | - const SITEMAP_INDEX_SCHEMA_FILE = __DIR__ . '/../Resources/schemas/sitemap_index.xsd'; |
|
| 10 | + const SITEMAP_SCHEMA_FILE = __DIR__.'/../Resources/schemas/sitemap.xsd'; |
|
| 11 | + const SITEMAP_XHTML_SCHEMA_FILE = __DIR__.'/../Resources/schemas/sitemap_xhtml.xsd'; |
|
| 12 | + const SITEMAP_INDEX_SCHEMA_FILE = __DIR__.'/../Resources/schemas/sitemap_index.xsd'; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * @var \DOMDocument |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | public function theSitemapShouldNotBeAValidSitemap($sitemapType = '') |
| 239 | 239 | { |
| 240 | 240 | $this->assertInverse( |
| 241 | - function () use ($sitemapType) { |
|
| 241 | + function() use ($sitemapType) { |
|
| 242 | 242 | $this->theSitemapShouldBeAValidSitemap($sitemapType); |
| 243 | 243 | }, |
| 244 | 244 | sprintf('The sitemap is a valid %s sitemap.', $sitemapType) |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function theOpenGraphDataShouldNotSatisfyRequirements($socialNetworkName, $requirementsType) |
| 15 | 15 | { |
| 16 | 16 | $this->assertInverse( |
| 17 | - function () use ($socialNetworkName, $requirementsType) { |
|
| 17 | + function() use ($socialNetworkName, $requirementsType) { |
|
| 18 | 18 | $this->theOpenGraphDataShouldSatisfyRequirements($socialNetworkName, $requirementsType); |
| 19 | 19 | }, |
| 20 | 20 | sprintf('The %s OG Data satisfies %s requirements.', $socialNetworkName, $requirementsType) |