Completed
Push — master ( 602f00...8ac133 )
by stéphane
07:27
created
yaml/Builder.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@
 block discarded – undo
89 89
 
90 90
         if ($type & Y::COMMENT) self::$_root->addComment($node->line, $node->value);
91 91
         $typesActions = [Y::DIRECTIVE => 'buildDirective',
92
-                         Y::ITEM      => 'buildItem',
93
-                         Y::KEY       => 'buildKey',
94
-                         Y::SET_KEY   => 'buildSetKey',
95
-                         Y::SET_VALUE => 'buildSetValue',
96
-                         Y::TAG       => 'buildTag',
92
+                            Y::ITEM      => 'buildItem',
93
+                            Y::KEY       => 'buildKey',
94
+                            Y::SET_KEY   => 'buildSetKey',
95
+                            Y::SET_VALUE => 'buildSetValue',
96
+                            Y::TAG       => 'buildTag',
97 97
         ];
98 98
         if (isset($typesActions[$type])) {
99 99
             return self::{$typesActions[$type]}($node, $parent);
Please login to merge, or discard this patch.
yaml/Node.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -178,9 +178,9 @@
 block discarded – undo
178 178
             return;
179 179
         }
180 180
         if (in_array($first, ['{', '['])) {
181
-             $this->onCompact($nodeValue);
182
-             return;
183
-         }
181
+                $this->onCompact($nodeValue);
182
+                return;
183
+            }
184 184
         if (in_array($first, ['!', '&', '*'])) {
185 185
             $this->onNodeAction($nodeValue);
186 186
             return;
Please login to merge, or discard this patch.
yaml/Node2PHP.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
         if ($n->type & (Y::COMPACT_MAPPING | Y::COMPACT_SEQUENCE))
27 27
             return self::getCompact(substr($n->value, 1, -1), $n->type);
28 28
         $expected = [Y::JSON   => json_decode($n->value, false, 512, JSON_PARTIAL_OUTPUT_ON_ERROR),
29
-                     Y::QUOTED => trim($n->value, "\"'"),
30
-                     Y::RAW    => strval($n->value)];
29
+                        Y::QUOTED => trim($n->value, "\"'"),
30
+                        Y::RAW    => strval($n->value)];
31 31
         return $expected[$n->type] ?? null;
32 32
     }
33 33
 
Please login to merge, or discard this patch.