- Added Psalm suppression annotations to multiple controller classes - Added PHPDoc comment blocks to seeders and factories - Added comments to indicate unused classes and methods - Removed unused annotations and imports
35 lines
774 B
PHP
35 lines
774 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\WebMention;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @psalm-suppress UnusedClass
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\WebMention>
|
|
*/
|
|
class WebMentionFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = WebMention::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'source' => $this->faker->url,
|
|
'target' => url('notes/1'),
|
|
'type' => 'in-reply-to',
|
|
'content' => $this->faker->paragraph,
|
|
];
|
|
}
|
|
}
|