Failed Conditions
Branch feature/multi-screenshot (18f085)
by Geza
02:27
created
src/Bex/Behat/ScreenshotExtension/ServiceContainer/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function loadServices(ContainerBuilder $container)
103 103
     {
104
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/config'));
104
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/config'));
105 105
         $loader->load('services.xml');
106 106
         $this->imageDrivers = $this->driverLocator->findDrivers(
107 107
             $container,
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public static function getScreenshotTakingModeValidator()
129 129
     {
130
-        return function ($mode) {
130
+        return function($mode) {
131 131
             return ($mode !== 'failed_steps') && !class_exists('\Imagick');
132 132
         };
133 133
     }
Please login to merge, or discard this patch.
src/Bex/Behat/ScreenshotExtension/Service/FilenameGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $feature = $this->relativizePaths($featureNode->getFile());
39 39
         $line = $scenarioNode->getLine();
40 40
         $fileName = join('_', [$feature, $line]);
41
-        return preg_replace('/[^A-Za-z0-9\-]/', '_', mb_strtolower($fileName)) . '.png';
41
+        return preg_replace('/[^A-Za-z0-9\-]/', '_', mb_strtolower($fileName)).'.png';
42 42
     }
43 43
 
44 44
     /**
@@ -54,6 +54,6 @@  discard block
 block discarded – undo
54 54
             return $path;
55 55
         }
56 56
 
57
-        return str_replace($this->basePath . DIRECTORY_SEPARATOR, '', $path);
57
+        return str_replace($this->basePath.DIRECTORY_SEPARATOR, '', $path);
58 58
     }
59 59
 }
Please login to merge, or discard this patch.