Completed
Push — master ( ea75f3...6b8e06 )
by stéphane
03:22
created
yaml/Dumper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             switch (gettype($dataType)) {
75 75
                 case 'boolean': return $dataType ? 'true' : 'false';
76 76
                 case 'float': if (is_infinite($dataType)) return $dataType > 0 ? '.inf' : '-.inf';
77
-                              return sprintf('%.2F', $dataType);
77
+                                return sprintf('%.2F', $dataType);
78 78
                 case 'double': if (is_nan((float) $dataType)) return '.nan';
79 79
                 default:
80 80
                     return $dataType;
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
@@ -181,9 +181,9 @@
 block discarded – undo
181 181
             return;
182 182
         }
183 183
         if (in_array($first, ['{', '['])) {
184
-             $this->onCompact(trim($nodeValue));
185
-             return;
186
-         }
184
+                $this->onCompact(trim($nodeValue));
185
+                return;
186
+            }
187 187
         if (in_array($first, ['!', '&', '*'])) {
188 188
             $this->onNodeAction($nodeValue);
189 189
             return;
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
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         } else {
175 175
             $tmpString = null;//var_dump("PAS ICI");
176 176
             foreach ($node as $key => $child) {
177
-                 if ($child->type & (Y::SCALAR|Y::QUOTED)) {
177
+                    if ($child->type & (Y::SCALAR|Y::QUOTED)) {
178 178
                     if ($parent) {
179 179
                         $parent->setText(self::build($child, $parent));
180 180
                     } else {
@@ -214,11 +214,11 @@  discard block
 block discarded – undo
214 214
         }
215 215
         if ($type & Y::COMMENT) self::$_root->addComment($node->line, $node->value);
216 216
         $typesActions = [Y::DIRECTIVE => 'buildDirective',
217
-                         Y::ITEM      => 'buildItem',
218
-                         Y::KEY       => 'buildKey',
219
-                         Y::SET_KEY   => 'buildSetKey',
220
-                         Y::SET_VALUE => 'buildSetValue',
221
-                         Y::TAG       => 'buildTag',
217
+                            Y::ITEM      => 'buildItem',
218
+                            Y::KEY       => 'buildKey',
219
+                            Y::SET_KEY   => 'buildSetKey',
220
+                            Y::SET_VALUE => 'buildSetValue',
221
+                            Y::TAG       => 'buildTag',
222 222
         ];
223 223
         if (isset($typesActions[$type])) {
224 224
             return self::{$typesActions[$type]}($node, $parent);
Please login to merge, or discard this patch.
yaml/Node2PHP.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             return $n->value;
30 30
         }
31 31
         $expected = [Y::QUOTED => trim((string) $n->value, "\"'"),
32
-                     Y::RAW    => strval((string) $n->value)];
32
+                        Y::RAW    => strval((string) $n->value)];
33 33
         return $expected[$n->type] ?? null;
34 34
     }
35 35
 
Please login to merge, or discard this patch.