Upgrade to Laravel 10
This commit is contained in:
parent
c4d7dc31d5
commit
16b120bc73
142 changed files with 1676 additions and 2019 deletions
|
@ -25,22 +25,10 @@ class MigratePlaceDataFromPostgis extends Command
|
|||
*/
|
||||
protected $description = 'Copy Postgis data to normal latitude longitude fields';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle()
|
||||
public function handle(): int
|
||||
{
|
||||
$locationColumn = DB::selectOne(DB::raw("
|
||||
SELECT EXISTS (
|
||||
|
|
|
@ -6,6 +6,7 @@ namespace App\Console\Commands;
|
|||
|
||||
use App\Models\WebMention;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Contracts\Filesystem\FileNotFoundException;
|
||||
use Illuminate\FileSystem\FileSystem;
|
||||
|
||||
class ParseCachedWebMentions extends Command
|
||||
|
@ -27,9 +28,9 @@ class ParseCachedWebMentions extends Command
|
|||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
* @throws FileNotFoundException
|
||||
*/
|
||||
public function handle(FileSystem $filesystem)
|
||||
public function handle(FileSystem $filesystem): void
|
||||
{
|
||||
$htmlFiles = $filesystem->allFiles(storage_path() . '/HTML');
|
||||
foreach ($htmlFiles as $file) {
|
||||
|
@ -49,8 +50,6 @@ class ParseCachedWebMentions extends Command
|
|||
|
||||
/**
|
||||
* Determine the source URL from a filename.
|
||||
*
|
||||
* @param string
|
||||
*/
|
||||
private function urlFromFilename(string $filepath): string
|
||||
{
|
||||
|
|
|
@ -24,22 +24,10 @@ class ReDownloadWebMentions extends Command
|
|||
*/
|
||||
protected $description = 'Redownload the HTML content of webmentions';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
public function handle(): void
|
||||
{
|
||||
$webmentions = WebMention::all();
|
||||
foreach ($webmentions as $webmention) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue