forked from eatvio/eatvio-infra
refactoring static analyse code
This commit is contained in:
@@ -6,9 +6,11 @@ use FakerRestaurant\Provider\en_US\Restaurant;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Http\File;
|
||||
use Faker\Generator;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Plan>
|
||||
* @property Generator|Restaurant $faker
|
||||
*/
|
||||
class PlanFactory extends Factory
|
||||
{
|
||||
@@ -16,6 +18,7 @@ class PlanFactory extends Factory
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
@@ -68,7 +71,7 @@ class PlanFactory extends Factory
|
||||
];
|
||||
}
|
||||
|
||||
private function generateImageFile(string $name = 'plans')
|
||||
private function generateImageFile(string $name = 'plans'): string
|
||||
{
|
||||
$images = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.jpg', '9.jpg', '10.jpg'];
|
||||
Storage::fake($name);
|
||||
|
||||
Reference in New Issue
Block a user