@@ -253,6 +253,10 @@ discard block |
||
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | + /** |
|
| 257 | + * @param string $environment |
|
| 258 | + * @param string $delimiter |
|
| 259 | + */ |
|
| 256 | 260 | private function generateContentForListDirective($variable, $environment, $delimiter, array $wrapper) |
| 257 | 261 | { |
| 258 | 262 | $values = $this->readValueToInject($variable, $environment); |
@@ -276,11 +280,19 @@ discard block |
||
| 276 | 280 | ); |
| 277 | 281 | } |
| 278 | 282 | |
| 283 | + /** |
|
| 284 | + * @param string $fileContent |
|
| 285 | + */ |
|
| 279 | 286 | private function removeFileDirectives($fileContent) |
| 280 | 287 | { |
| 281 | 288 | return preg_replace('~(<%\s*karma:[^%]*%>\s*)~i', '', $fileContent); |
| 282 | 289 | } |
| 283 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $sourceFile |
|
| 293 | + * @param string $content |
|
| 294 | + * @param string $environment |
|
| 295 | + */ |
|
| 284 | 296 | private function injectValues($sourceFile, $content, $environment, $replacementCounter = 0) |
| 285 | 297 | { |
| 286 | 298 | $replacementCounter += $this->injectScalarValues($content, $environment); |
@@ -244,8 +244,8 @@ discard block |
||
| 244 | 244 | if($status['found'] === false) |
| 245 | 245 | { |
| 246 | 246 | $this->warning(sprintf( |
| 247 | - 'External file %s was not found', |
|
| 248 | - $file |
|
| 247 | + 'External file %s was not found', |
|
| 248 | + $file |
|
| 249 | 249 | )); |
| 250 | 250 | } |
| 251 | 251 | } |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | |
| 299 | 299 | public function getDefaultEnvironmentsForGroups(): array |
| 300 | 300 | { |
| 301 | - $defaultEnvironments = []; |
|
| 301 | + $defaultEnvironments = []; |
|
| 302 | 302 | |
| 303 | 303 | if(isset($this->parsers[self::GROUPS])) |
| 304 | 304 | { |