Skip to content

Commit

Permalink
Use short array deconstruction syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Oct 28, 2020
1 parent e74b873 commit 5c547b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ public function makePathRelative($endPath, $startPath)
return $result;
};

list($endPath, $endDriveLetter) = $splitDriveLetter($endPath);
list($startPath, $startDriveLetter) = $splitDriveLetter($startPath);
[$endPath, $endDriveLetter] = $splitDriveLetter($endPath);
[$startPath, $startDriveLetter] = $splitDriveLetter($startPath);

$startPathArr = $splitPath($startPath);
$endPathArr = $splitPath($endPath);
Expand Down Expand Up @@ -617,7 +617,7 @@ public function isAbsolutePath($file)
*/
public function tempnam($dir, $prefix)
{
list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir);
[$scheme, $hierarchy] = $this->getSchemeAndHierarchy($dir);

// If no scheme or scheme is "file" or "gs" (Google Cloud) create temp file in local filesystem
if (null === $scheme || 'file' === $scheme || 'gs' === $scheme) {
Expand Down

0 comments on commit 5c547b8

Please sign in to comment.