Use JSON_UNESCAPED_SLASHES for lint commands output

This commit is contained in:
Robin Chalas 2016-09-12 23:15:58 +02:00
parent 3b5c353861
commit 04275945ef
No known key found for this signature in database
GPG Key ID: 89672113756EE03B
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ EOF
}
});
$output->writeln(json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0));
$output->writeln(json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : 0));
return min($errors, 1);
}

View File

@ -156,7 +156,7 @@ EOF
}
});
$output->writeln(json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0));
$output->writeln(json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : 0));
return min($errors, 1);
}