Skip to content

Commit 5c547b8

Browse files
committed
Use short array deconstruction syntax.
1 parent e74b873 commit 5c547b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Filesystem.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ public function makePathRelative($endPath, $startPath)
474474
return $result;
475475
};
476476

477-
list($endPath, $endDriveLetter) = $splitDriveLetter($endPath);
478-
list($startPath, $startDriveLetter) = $splitDriveLetter($startPath);
477+
[$endPath, $endDriveLetter] = $splitDriveLetter($endPath);
478+
[$startPath, $startDriveLetter] = $splitDriveLetter($startPath);
479479

480480
$startPathArr = $splitPath($startPath);
481481
$endPathArr = $splitPath($endPath);
@@ -617,7 +617,7 @@ public function isAbsolutePath($file)
617617
*/
618618
public function tempnam($dir, $prefix)
619619
{
620-
list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir);
620+
[$scheme, $hierarchy] = $this->getSchemeAndHierarchy($dir);
621621

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

0 commit comments

Comments
 (0)