Test Failed
Push — master ( 1880dd...42571c )
by stéphane
02:35
created
sources/nodes/Quoted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
     public function build(&$parent = null)
14 14
     {
15 15
         // return substr(Scalar::replaceSequences(trim($this->raw)), 1,-1);
16
-        return (new Scalar('', 0))->replaceSequences(substr(trim($this->raw), 1,-1));
16
+        return (new Scalar('', 0))->replaceSequences(substr(trim($this->raw), 1, -1));
17 17
     }
18 18
 }
19 19
\ No newline at end of file
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,19 +1,19 @@
 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
 
8 8
 
9 9
 $testName = 'yamlObject_properties';
10
-$yamlObject = (include PROJECT_ROOT . "tests/cases/dumping/$testName.php");
10
+$yamlObject = (include PROJECT_ROOT."tests/cases/dumping/$testName.php");
11 11
 
12 12
 
13 13
 $text = Yaml::dump($yamlObject, 0);
14 14
 
15 15
 
16
-$nameResultPair = get_object_vars(/** @scrutinizer ignore-type */ Yaml::parseFile(PROJECT_ROOT . 'tests/definitions/dumping_tests.yml'));
16
+$nameResultPair = get_object_vars(/** @scrutinizer ignore-type */ Yaml::parseFile(PROJECT_ROOT.'tests/definitions/dumping_tests.yml'));
17 17
 
18 18
 
19 19
 if ($nameResultPair[$testName] === $text) {
Please login to merge, or discard this patch.
examples/batch_read.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 // USE CASE 3
8 8
 $yamlObjList = [];
9 9
 $yloader = new Loader(null, 0, $debug);
10
-foreach(['examples/dummy.yml', 'examples/config.yml'] as $key => $fileName)
10
+foreach (['examples/dummy.yml', 'examples/config.yml'] as $key => $fileName)
11 11
 {
12
-    $yamlObjList[] =  $yloader->load($fileName)->parse();
12
+    $yamlObjList[] = $yloader->load($fileName)->parse();
13 13
 }
14 14
 
15 15
 var_dump($yamlObjList);
Please login to merge, or discard this patch.