Skip to content

Commit

Permalink
Use array in place of list where missed
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Jan 4, 2019
1 parent 79e54a1 commit 8659d31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ArchiveInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ArchiveReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion SzipInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8659d31

Please sign in to comment.