@@ -20,6 +20,6 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function convertStepToFileName(StepNode $step) |
| 22 | 22 | { |
| 23 | - return preg_replace('/[^A-Za-z0-9\-]/', '_', mb_strtolower($step->getText())) . '.png'; |
|
| 23 | + return preg_replace('/[^A-Za-z0-9\-]/', '_', mb_strtolower($step->getText())).'.png'; |
|
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |
@@ -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 | /** |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | */ |
| 110 | 110 | private function registerServices(ContainerBuilder $container) |
| 111 | 111 | { |
| 112 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/config')); |
|
| 112 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/config')); |
|
| 113 | 113 | $loader->load('services.xml'); |
| 114 | 114 | } |
| 115 | 115 | } |
@@ -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 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /* Output the image */ |
| 64 | 64 | $combined->setImageFormat("png"); |
| 65 | 65 | |
| 66 | - return (string)$combined; |
|
| 66 | + return (string) $combined; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |