Completed
Push — master ( 2b7f2d...31c8a2 )
by stéphane
03:00
created
yaml/Node.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -261,8 +261,8 @@
 block discarded – undo
261 261
         if ($this->type & (Y::REF_CALL | Y::SCALAR)) return self::getScalar($v);
262 262
         if ($this->type & (Y::COMPACT_MAPPING | Y::COMPACT_SEQUENCE)) return self::getCompact(substr($v, 1, -1), $this->type);
263 263
         $expected = [Y::JSON   => json_decode($v, false, 512, JSON_PARTIAL_OUTPUT_ON_ERROR),
264
-                     Y::QUOTED => substr($v, 1, -1),
265
-                     Y::RAW    => strval($v)];
264
+                        Y::QUOTED => substr($v, 1, -1),
265
+                        Y::RAW    => strval($v)];
266 266
         if (isset($expected[$this->type])) {
267 267
             return $expected[$this->type];
268 268
         }
Please login to merge, or discard this patch.
yaml/Builder.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@
 block discarded – undo
65 65
             return self::$_root->getReference($identifier);
66 66
         }
67 67
         $typesActions = [Y::COMMENT   => 'buildComment',
68
-                         Y::DIRECTIVE => 'buildDirective',
69
-                         Y::ITEM      => 'buildItem',
70
-                         Y::KEY       => 'buildKey',
71
-                         Y::SET_KEY   => 'buildSetKey',
72
-                         Y::SET_VALUE => 'buildSetValue',
73
-                         Y::TAG       => 'buildTag',
68
+                            Y::DIRECTIVE => 'buildDirective',
69
+                            Y::ITEM      => 'buildItem',
70
+                            Y::KEY       => 'buildKey',
71
+                            Y::SET_KEY   => 'buildSetKey',
72
+                            Y::SET_VALUE => 'buildSetValue',
73
+                            Y::TAG       => 'buildTag',
74 74
         ];
75 75
         if (isset($typesActions[$type])) {
76 76
             return self::{$typesActions[$type]}($node, $parent);
Please login to merge, or discard this patch.