Completed
Push — master ( 2b7f2d...31c8a2 )
by stéphane
03:00
created
yaml/Regex.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $matchSpaced    = preg_match($spaced, $v);
38 38
         $matchIso       = preg_match($iso8601, $v);
39 39
         if (is_bool($matchDate) || is_bool($matchCanonical) || is_bool($matchSpaced) || is_bool($matchIso)) {
40
-                  throw new \Exception("Regex date error");
40
+                    throw new \Exception("Regex date error");
41 41
         }
42 42
 
43 43
         return $matchDate || $matchCanonical || $matchSpaced || $matchIso;
Please login to merge, or discard this patch.
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.