Passed
Branch feature/tests (c0f497)
by Marc
04:49
created
Category
src/Context/PerformanceContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Context/SitemapContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Context/SocialContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.