@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | private function getDefaultDirectory() |
75 | 75 | { |
76 | - return sys_get_temp_dir() . DIRECTORY_SEPARATOR . self::DEFAULT_DIRECTORY; |
|
76 | + return sys_get_temp_dir().DIRECTORY_SEPARATOR.self::DEFAULT_DIRECTORY; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | private function getTargetPath($fileName) |
85 | 85 | { |
86 | 86 | $path = rtrim($this->screenshotDirectory, DIRECTORY_SEPARATOR); |
87 | - return empty($path) ? $fileName : $path . DIRECTORY_SEPARATOR . $fileName; |
|
87 | + return empty($path) ? $fileName : $path.DIRECTORY_SEPARATOR.$fileName; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -184,13 +184,13 @@ |
||
184 | 184 | if (is_array($messages)) { |
185 | 185 | array_walk( |
186 | 186 | $messages, |
187 | - function ($message) { |
|
188 | - return $this->indentation . $message; |
|
187 | + function($message) { |
|
188 | + return $this->indentation.$message; |
|
189 | 189 | } |
190 | 190 | ); |
191 | 191 | return $messages; |
192 | 192 | } else { |
193 | - $messages = $this->indentation . $messages; |
|
193 | + $messages = $this->indentation.$messages; |
|
194 | 194 | return $messages; |
195 | 195 | } |
196 | 196 | } |
@@ -101,7 +101,7 @@ discard block |
||
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 |
||
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 | } |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 | } |