Passed
Branch master (f496ba)
by stéphane
02:11
created
YamlObject.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 use Dallgoot\Yaml\API as API;
5 5
 
6 6
 /**
7
-  * @method void addReference(string $name, $value)
8
-  * @method mixed getReference(string $name)
9
-  * @method array getAllReferences()
10
-  * @method void addComment($index, $value)
11
-  * @method string|array getComment($lineNumber)
12
-  * @method void setText(string $value)
13
-  * @method void addTag(string $value)
7
+ * @method void addReference(string $name, $value)
8
+ * @method mixed getReference(string $name)
9
+ * @method array getAllReferences()
10
+ * @method void addComment($index, $value)
11
+ * @method string|array getComment($lineNumber)
12
+ * @method void setText(string $value)
13
+ * @method void addTag(string $value)
14 14
  */
15 15
 class YamlObject extends \ArrayIterator implements \JsonSerializable
16 16
 {
Please login to merge, or discard this patch.
Node.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-    *  CAUTION : the types assumed here are NOT FINAL : they CAN be adjusted according to parent
84
-    */
83
+     *  CAUTION : the types assumed here are NOT FINAL : they CAN be adjusted according to parent
84
+     */
85 85
     public function parse(String $nodeString):Node
86 86
     {
87 87
         $nodeValue = preg_replace("/^\t+/m", " ", $nodeString);//permissive to tabs but replacement
@@ -214,13 +214,13 @@  discard block
 block discarded – undo
214 214
     private static function getScalar($v)
215 215
     {
216 216
         $types = ['yes'   => true,
217
-                  'no'    => false,
218
-                  'true'  => true,
219
-                  'false' => false,
220
-                  'null'  => null,
221
-                  '.inf'  => INF,
222
-                  '-.inf' => -INF,
223
-                  '.nan'  => NAN
217
+                    'no'    => false,
218
+                    'true'  => true,
219
+                    'false' => false,
220
+                    'null'  => null,
221
+                    '.inf'  => INF,
222
+                    '-.inf' => -INF,
223
+                    '.nan'  => NAN
224 224
         ];
225 225
         if (in_array(strtolower($v), array_keys($types))) return $types[strtolower($v)];
226 226
         if (R::isDate($v))   return date_create($v);
Please login to merge, or discard this patch.