Pint
This commit is contained in:
@@ -3,11 +3,10 @@
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\PopularDaily;
|
||||
use App\Models\PopularWeekly;
|
||||
use App\Models\PopularMonthly;
|
||||
|
||||
use Illuminate\Support\Carbon;
|
||||
use App\Models\PopularWeekly;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class AutoStats extends Command
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Episode;
|
||||
use App\Models\Hentai;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Spatie\Sitemap\Sitemap;
|
||||
@@ -45,7 +44,7 @@ class GenerateSitemap extends Command
|
||||
->setLastModificationDate(Carbon::create('2023', '8', '1')))
|
||||
->add(Episode::all())
|
||||
->add(Hentai::all());
|
||||
|
||||
|
||||
$sitemap->writeToFile(public_path('sitemap.xml'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Downloads;
|
||||
use App\Jobs\GetFileSizeFromCDN;
|
||||
|
||||
use App\Models\Downloads;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class GetFileSize extends Command
|
||||
@@ -28,7 +27,7 @@ class GetFileSize extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
foreach(Downloads::whereNull('size')->get() as $download) {
|
||||
foreach (Downloads::whereNull('size')->get() as $download) {
|
||||
GetFileSizeFromCDN::dispatch($download->id);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,8 @@ namespace App\Console\Commands;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\UserDownload;
|
||||
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class ResetUserDownloads extends Command
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user