Skip to content

A free open source IT asset/license management system

remove comments, reorder command options

Godfrey M5c5414c9607b
diff --git a/app/Console/Commands/PurgeEulaPDFs.php b/app/Console/Commands/PurgeEulaPDFs.php
index c34a849520..b5de61bec1 100644
--- a/app/Console/Commands/PurgeEulaPDFs.php
+++ b/app/Console/Commands/PurgeEulaPDFs.php
@@ -15,12 +15,12 @@ class PurgeEulaPDFs extends Command
* @var string
*/
protected $signature = 'snipeit:purge-eula-pdfs
- {--older-than-days= : The number of days we should delete before }
+ {--older-than-days= : The number of days we should delete before }
+ {--company-id= : Only purge acceptances for users in this company}
+ {--only-deleted-users : Only purge acceptances for deleted users, including soft-deleted or missing users}
{--force : Skip the interactive yes/no prompt for confirmation}
{--dryrun : Show the records that would be deleted but don\'t update the database or delete files from disk}
- {--with-output : Display the results in a table in your console}
- {--company-id= : Only purge acceptances for users in this company}
- {--only-deleted-users : Only purge acceptances for deleted users, including soft-deleted or missing users}';
+ {--with-output : Display the results in a table in your console}';
/**
* The console command description.
diff --git a/database/factories/CheckoutAcceptanceFactory.php b/database/factories/CheckoutAcceptanceFactory.php
index 6f984dd802..885a18a372 100644
--- a/database/factories/CheckoutAcceptanceFactory.php
+++ b/database/factories/CheckoutAcceptanceFactory.php
@@ -103,7 +103,7 @@ class CheckoutAcceptanceFactory extends Factory
$acceptance->checkoutable->assetlog()->create([
'action_type' => 'checkout',
'target_id' => $acceptance->assigned_to_id,
- 'target_type' => User::class, // BEFORE: get_class($acceptance->assignedTo). a Checkout acceptance is only generated for Users, this avoids a null for testing soft-deleted users.
+ 'target_type' => User::class,
'item_id' => $acceptance->checkoutable_id,
'item_type' => $acceptance->checkoutable_type,
]);