@@ -52,7 +52,7 @@ public function __construct(
5252 /**
5353 * Process an uploaded file to create a new pack from a JSON or ZIP format.
5454 *
55- * @param int $option
55+ * @param int $egg
5656 * @param \Illuminate\Http\UploadedFile $file
5757 * @return \Pterodactyl\Models\Pack
5858 *
@@ -63,7 +63,7 @@ public function __construct(
6363 * @throws \Pterodactyl\Exceptions\Service\Pack\UnreadableZipArchiveException
6464 * @throws \Pterodactyl\Exceptions\Service\Pack\InvalidPackArchiveFormatException
6565 */
66- public function handle ($ option , UploadedFile $ file )
66+ public function handle ($ egg , UploadedFile $ file )
6767 {
6868 if (! $ file ->isValid ()) {
6969 throw new InvalidFileUploadException (trans ('exceptions.packs.invalid_upload ' ));
@@ -76,10 +76,10 @@ public function handle($option, UploadedFile $file)
7676 }
7777
7878 if ($ file ->getMimeType () === 'application/zip ' ) {
79- return $ this ->handleArchive ($ option , $ file );
79+ return $ this ->handleArchive ($ egg , $ file );
8080 } else {
8181 $ json = json_decode ($ file ->openFile ()->fread ($ file ->getSize ()), true );
82- $ json ['option_id ' ] = $ option ;
82+ $ json ['egg_id ' ] = $ egg ;
8383
8484 return $ this ->creationService ->handle ($ json );
8585 }
@@ -88,7 +88,7 @@ public function handle($option, UploadedFile $file)
8888 /**
8989 * Process a ZIP file to create a pack and stored archive.
9090 *
91- * @param int $option
91+ * @param int $egg
9292 * @param \Illuminate\Http\UploadedFile $file
9393 * @return \Pterodactyl\Models\Pack
9494 *
@@ -99,7 +99,7 @@ public function handle($option, UploadedFile $file)
9999 * @throws \Pterodactyl\Exceptions\Service\Pack\UnreadableZipArchiveException
100100 * @throws \Pterodactyl\Exceptions\Service\Pack\InvalidPackArchiveFormatException
101101 */
102- protected function handleArchive ($ option , $ file )
102+ protected function handleArchive ($ egg , $ file )
103103 {
104104 if (! $ this ->archive ->open ($ file ->getRealPath ())) {
105105 throw new UnreadableZipArchiveException (trans ('exceptions.packs.unreadable ' ));
@@ -110,7 +110,7 @@ protected function handleArchive($option, $file)
110110 }
111111
112112 $ json = json_decode ($ this ->archive ->getFromName ('import.json ' ), true );
113- $ json ['option_id ' ] = $ option ;
113+ $ json ['egg_id ' ] = $ egg ;
114114
115115 $ pack = $ this ->creationService ->handle ($ json );
116116 if (! $ this ->archive ->extractTo (storage_path ('app/packs/ ' . $ pack ->uuid ), 'archive.tar.gz ' )) {
0 commit comments