Remove unused variable $valid from ConfigValidator::validate
parent
59bda2bb9b
commit
8eda0aa8c9
|
@ -49,7 +49,6 @@ class ConfigValidator
|
||||||
|
|
||||||
// validate json schema
|
// validate json schema
|
||||||
$laxValid = false;
|
$laxValid = false;
|
||||||
$valid = false;
|
|
||||||
try {
|
try {
|
||||||
$json = new JsonFile($file, new RemoteFilesystem($this->io));
|
$json = new JsonFile($file, new RemoteFilesystem($this->io));
|
||||||
$manifest = $json->read();
|
$manifest = $json->read();
|
||||||
|
@ -57,7 +56,6 @@ class ConfigValidator
|
||||||
$json->validateSchema(JsonFile::LAX_SCHEMA);
|
$json->validateSchema(JsonFile::LAX_SCHEMA);
|
||||||
$laxValid = true;
|
$laxValid = true;
|
||||||
$json->validateSchema();
|
$json->validateSchema();
|
||||||
$valid = true;
|
|
||||||
} catch (JsonValidationException $e) {
|
} catch (JsonValidationException $e) {
|
||||||
foreach ($e->getErrors() as $message) {
|
foreach ($e->getErrors() as $message) {
|
||||||
if ($laxValid) {
|
if ($laxValid) {
|
||||||
|
|
Loading…
Reference in New Issue