Passed
Push — master ( 84fcc2...240e96 )
by Peter
04:51 queued 10s
created
src/Model/Component/YamlService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public static function getYamlData(string $pathToYamlFile): array
18 18
     {
19
-        return (array)Yaml::parse(file_get_contents($pathToYamlFile), Yaml::PARSE_CUSTOM_TAGS);
19
+        return (array) Yaml::parse(file_get_contents($pathToYamlFile), Yaml::PARSE_CUSTOM_TAGS);
20 20
     }
21 21
 
22 22
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public static function isKeyInStartOfString(string $value): bool
112 112
     {
113
-        return (bool)preg_match('~^(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:(\s|$)~u', $value);
113
+        return (bool) preg_match('~^(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:(\s|$)~u', $value);
114 114
     }
115 115
 
116 116
     /**
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public static function isLineOpeningAnArray(string $trimmedLine): bool
123 123
     {
124
-        return (bool)preg_match('~^(- +)*(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:$~u', $trimmedLine);
124
+        return (bool) preg_match('~^(- +)*(' . Inline::REGEX_QUOTED_STRING . '|[^ \'"{\[].*?) *:$~u', $trimmedLine);
125 125
     }
126 126
 
127 127
     /**
Please login to merge, or discard this patch.
src/Model/Config/Exception/YamlStandardConfigNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace YamlStandards\Model\Config\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Model/YamlEmptyLineAtEnd/YamlEmptyLineAtEndChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace YamlStandards\Model\YamlEmptyLineAtEnd;
6 6
 
Please login to merge, or discard this patch.
src/Model/YamlEmptyLineAtEnd/YamlEmptyLineAtEndDataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace YamlStandards\Model\YamlEmptyLineAtEnd;
6 6
 
Please login to merge, or discard this patch.
src/Model/YamlEmptyLineAtEnd/YamlEmptyLineAtEndFixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace YamlStandards\Model\YamlEmptyLineAtEnd;
6 6
 
Please login to merge, or discard this patch.
src/Model/YamlServiceAliasing/YamlServiceAliasingChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Model/YamlServiceAliasing/YamlServiceAliasingDataFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 . ':';
Please login to merge, or discard this patch.
src/Model/YamlServiceAliasing/YamlServiceAliasingFixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.