From 8659d3168a949f2733fd48d96ca9e8997be94e92 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 4 Jan 2019 15:19:43 +0100 Subject: [PATCH] Use array in place of list where missed --- ArchiveInfo.php | 2 +- ArchiveReader.php | 2 +- SzipInfo.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiveInfo.php b/ArchiveInfo.php index 8b87266..5aa658f 100644 --- a/ArchiveInfo.php +++ b/ArchiveInfo.php @@ -895,7 +895,7 @@ protected function extractArchives() if ($files = $archive->reader->getFileList()) { foreach ($files as $file) { if (!empty($file['compressed']) && empty($file['pass'])) { - list($hash, $temp) = $this->getTempFileName("{$name}:{$archive->start}-{$archive->end}"); + [$hash, $temp] = $this->getTempFileName("{$name}:{$archive->start}-{$archive->end}"); if (!isset($this->tempFiles[$hash])) { $archive->reader->saveRange([$archive->start, $archive->end], $temp); @chmod($temp, 0777); diff --git a/ArchiveReader.php b/ArchiveReader.php index 92e347e..f9ff774 100644 --- a/ArchiveReader.php +++ b/ArchiveReader.php @@ -765,7 +765,7 @@ protected function rewind() */ protected function createTempDataFile() { - list($hash, $dest) = $this->getTempFileName(); + [$hash, $dest] = $this->getTempFileName(); if (file_exists($dest)) { return $this->tempFiles[$hash] = $dest; diff --git a/SzipInfo.php b/SzipInfo.php index 1f9899c..d05716b 100644 --- a/SzipInfo.php +++ b/SzipInfo.php @@ -393,7 +393,7 @@ public function extractFile($filename, $destination = null, $password = null) .escapeshellarg($source).' '.escapeshellarg($filename); // Set STDERR to write to a temporary file - list($hash, $errorFile) = $this->getTempFileName($source.'errors'); + [$hash, $errorFile] = $this->getTempFileName($source.'errors'); $this->tempFiles[$hash] = $errorFile; $command .= ' 2> '.escapeshellarg($errorFile);