Completed
Push — master ( d5e18b...36bd6b )
by stéphane
04:01
created
sources/Dumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $dumpHandler = new DumperHandlers($options);
50 50
         if (is_scalar($dataType)) {
51 51
             // TODO: what to woth comments ???
52
-            return "--- ".$dumpHandler->dumpScalar($dataType). self::LINEFEED ;
52
+            return "--- ".$dumpHandler->dumpScalar($dataType).self::LINEFEED;
53 53
         }
54 54
         return $dumpHandler->dump($dataType, 0);
55 55
     }
Please login to merge, or discard this patch.
sources/nodes/DocStart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             throw new \Exception(__METHOD__." expects a YamlObject as parent", 1);
40 40
         }
41 41
         if (!is_null($this->value)) {
42
-            if ($this->value instanceof Tag){
42
+            if ($this->value instanceof Tag) {
43 43
                 if (!preg_match(Regex::TAG_PARTS, $this->value->raw, $matches)) {
44 44
                     throw new \UnexpectedValueException("Tag '".$this->value->raw."' is invalid", 1);
45 45
                 }
Please login to merge, or discard this patch.
examples/write.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 define('PROJECT_ROOT', __DIR__."/../");
3 3
 
4
-require_once PROJECT_ROOT . 'vendor/autoload.php';
4
+require_once PROJECT_ROOT.'vendor/autoload.php';
5 5
 
6 6
 use Dallgoot\Yaml;
7 7
 // use Dallgoot\Yaml\{Loader, Dumper};
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 // $yaml = (new Loader('./dummy.yml', null, 0))->parse();
15 15
 // var_dump($yaml);
16 16
 $testName = 'yamlObject_properties';
17
-$yamlObject = (include PROJECT_ROOT . "tests/cases/dumping/$testName.php");
17
+$yamlObject = (include PROJECT_ROOT."tests/cases/dumping/$testName.php");
18 18
 $text = Yaml::dump($yamlObject, 0);
19 19
 
20
-$nameResultPair = get_object_vars(/** @scrutinizer ignore-type */ Yaml::parseFile(PROJECT_ROOT . 'tests/definitions/dumping_tests.yml'));
20
+$nameResultPair = get_object_vars(/** @scrutinizer ignore-type */ Yaml::parseFile(PROJECT_ROOT.'tests/definitions/dumping_tests.yml'));
21 21
 
22 22
 // var_dump($nameResultPair);
23 23
 
Please login to merge, or discard this patch.
sources/tag/CoreSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                 $list[] = $this->str($child);
70 70
             }
71 71
             // return new Nodes\Scalar(implode('',$list), 0);
72
-            return implode('',$list);
72
+            return implode('', $list);
73 73
         }
74 74
     }
75 75
 
Please login to merge, or discard this patch.