Browse Source

Remove unnecessary special case handling

master
Adam Pippin 3 years ago
parent
commit
fed2d6015b
  1. 15
      app/Engine/Engine.php

15
app/Engine/Engine.php

@ -27,12 +27,8 @@ class Engine
{
$file_helper = new File([dirname(realpath($input_file))]);
$input_document = $this->unserialize->unserialize(file_get_contents($file_helper->resolve($input_file)));
$files = $input_document->getMeta('stack');
$files[] = $input_file;
$processed = [$input_file];
$processed = [];
for ($i = 0; $i < sizeof($files); $i++)
{
@ -56,17 +52,8 @@ class Engine
}
}
echo '=> '.$files[$i].PHP_EOL;
if ($i == 0)
{
// Initial document load
$this->setInputDocument($document);
}
else
{
// Transform
$this->compileDocument($document, $options);
}
}
return $this->getOutput();
}

Loading…
Cancel
Save