Skip to content

Commit

Permalink
remove useless plaintext process
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsgsDesign committed Apr 3, 2021
1 parent edc33bf commit e0114d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/MOSS.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ public function saveTo($path, $id)
if (!is_dir($path)) mkdir($path, '0777', true);
foreach ($table->find('a') as $a) {
$a->href = explode("/results/$id/", $a->href)[1];
$tempArr=explode("/", $a->innertext);
$a->innertext = end($tempArr);
}
file_put_contents($path . DIRECTORY_SEPARATOR . 'index.html', $table->outertext);
$this->fetchDetails($path, $id, count($table->find('a')) / 2);
Expand Down

0 comments on commit e0114d7

Please sign in to comment.