Completed
Push — master ( d38a64...a65b20 )
by stéphane
03:22
created
yaml/Node.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -288,13 +288,13 @@
 block discarded – undo
288 288
     private static function getScalar(string $v)
289 289
     {
290 290
         $types = ['yes'   => true,
291
-                  'no'    => false,
292
-                  'true'  => true,
293
-                  'false' => false,
294
-                  'null'  => null,
295
-                  '.inf'  => INF,
296
-                  '-.inf' => -INF,
297
-                  '.nan'  => NAN
291
+                    'no'    => false,
292
+                    'true'  => true,
293
+                    'false' => false,
294
+                    'null'  => null,
295
+                    '.inf'  => INF,
296
+                    '-.inf' => -INF,
297
+                    '.nan'  => NAN
298 298
         ];
299 299
         if (isset($types[strtolower($v)])) return $types[strtolower($v)];
300 300
         if (R::isDate($v))   return date_create($v);
Please login to merge, or discard this patch.
yaml/YamlObject.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 namespace Dallgoot\Yaml;
3 3
 
4 4
 /**
5
-  *  The returned object representing a YAML file content
5
+ *  The returned object representing a YAML file content
6 6
  * @category tag in class comment
7 7
  * @package tag in class comment
8 8
  * @author tag in class comment
Please login to merge, or discard this patch.
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
         return $matchDate || $matchCanonical || $matchSpaced || $matchIso;
43 43
     }
Please login to merge, or discard this patch.