Skip to content

Commit 2f2c5cc

Browse files
authored
Update NewCommand.php
1 parent 8a6e90e commit 2f2c5cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NewCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ protected function extract($zipFile, $directory)
152152
{
153153
$archive = new ZipArchive;
154154

155-
$res = $archive->open($zipFile, ZipArchive::CHECKCONS);
155+
$response = $archive->open($zipFile, ZipArchive::CHECKCONS);
156156

157-
if ($res === ZipArchive::ER_NOZIP) {
158-
throw new RuntimeException('The zip file could not download. Check that you are able to access http://cabinet.laravel.com/latest.zip');
157+
if ($response === ZipArchive::ER_NOZIP) {
158+
throw new RuntimeException('The zip file could not download. Verify that you are able to access: http://cabinet.laravel.com/latest.zip');
159159
}
160160

161161
$archive->extractTo($directory);

0 commit comments

Comments
 (0)