@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace YamlStandards\Model\YamlServiceAliasing; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace YamlStandards\Model\YamlServiceAliasing; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace YamlStandards\Model\YamlServiceAliasing; |
| 6 | 6 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public static function existsServicesInHighestParent(array $yamlLines): bool |
| 22 | 22 | { |
| 23 | - $trimmedYamlLines = array_map(static function ($yamlLine) { |
|
| 23 | + $trimmedYamlLines = array_map(static function($yamlLine) { |
|
| 24 | 24 | return rtrim($yamlLine); |
| 25 | 25 | }, $yamlLines); |
| 26 | 26 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | unset($yamlLines[$key + 1]); // remove `alias:` line |
| 53 | 53 | } else { |
| 54 | 54 | $countOfRowIndents = YamlService::rowIndentsOf($yamlLine); |
| 55 | - $nextIndents = $standardParametersData->getIndents() ?? 4; // `alias:` is child so I need add extra indents |
|
| 55 | + $nextIndents = $standardParametersData->getIndents() ?? 4; // `alias:` is child so I need add extra indents |
|
| 56 | 56 | $indents = YamlService::createCorrectIndentsByCountOfIndents($countOfRowIndents + $nextIndents); |
| 57 | 57 | $replacedLineValue = str_replace(['@', '\''], '', $trimmedLineValue); |
| 58 | 58 | $yamlLines[$key] = $lineKey . ':'; |