From 43949c97b3da1a19930b700aaa50b1b9acf0d128 Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 24 Oct 2022 17:28:45 +0000 Subject: [PATCH] Remove unnecessary `$model` property --- database/factories/AlertScheduleFactory.php | 7 ------- database/factories/AlertTransportFactory.php | 2 -- database/factories/BgpPeerFactory.php | 7 ------- database/factories/BillFactory.php | 7 ------- database/factories/ComponentFactory.php | 7 ------- database/factories/DeviceFactory.php | 7 ------- database/factories/DeviceGroupFactory.php | 7 ------- database/factories/Ipv4AddressFactory.php | 7 ------- database/factories/Ipv4NetworkFactory.php | 7 ------- database/factories/LocationFactory.php | 7 ------- database/factories/OspfNbrFactory.php | 7 ------- database/factories/OspfPortFactory.php | 7 ------- database/factories/PortFactory.php | 7 ------- database/factories/SensorFactory.php | 7 ------- database/factories/SyslogFactory.php | 7 ------- database/factories/UserFactory.php | 7 ------- database/factories/VminfoFactory.php | 7 ------- 17 files changed, 114 deletions(-) diff --git a/database/factories/AlertScheduleFactory.php b/database/factories/AlertScheduleFactory.php index 5026957fef..cc39710d84 100644 --- a/database/factories/AlertScheduleFactory.php +++ b/database/factories/AlertScheduleFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class AlertScheduleFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = AlertSchedule::class; - /** * Define the model's default state. * diff --git a/database/factories/AlertTransportFactory.php b/database/factories/AlertTransportFactory.php index b60a92bda9..1f63a17d83 100644 --- a/database/factories/AlertTransportFactory.php +++ b/database/factories/AlertTransportFactory.php @@ -8,8 +8,6 @@ use LibreNMS\Alert\Transport; class AlertTransportFactory extends Factory { - protected $model = AlertTransport::class; - public function definition(): array { return [ diff --git a/database/factories/BgpPeerFactory.php b/database/factories/BgpPeerFactory.php index c0aeee19ab..4ad1742617 100644 --- a/database/factories/BgpPeerFactory.php +++ b/database/factories/BgpPeerFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class BgpPeerFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = BgpPeer::class; - /** * Define the model's default state. * diff --git a/database/factories/BillFactory.php b/database/factories/BillFactory.php index e3d23b0b67..b591ffdc2e 100644 --- a/database/factories/BillFactory.php +++ b/database/factories/BillFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class BillFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Bill::class; - /** * Define the model's default state. * diff --git a/database/factories/ComponentFactory.php b/database/factories/ComponentFactory.php index 613a3b0b57..3b547963c0 100644 --- a/database/factories/ComponentFactory.php +++ b/database/factories/ComponentFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class ComponentFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Component::class; - /** * Define the model's default state. * diff --git a/database/factories/DeviceFactory.php b/database/factories/DeviceFactory.php index 44307f6b4d..721a1cc4bc 100644 --- a/database/factories/DeviceFactory.php +++ b/database/factories/DeviceFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class DeviceFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Device::class; - /** * Define the model's default state. * diff --git a/database/factories/DeviceGroupFactory.php b/database/factories/DeviceGroupFactory.php index a845d1ae86..58dbd1b72b 100644 --- a/database/factories/DeviceGroupFactory.php +++ b/database/factories/DeviceGroupFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class DeviceGroupFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = DeviceGroup::class; - /** * Define the model's default state. * diff --git a/database/factories/Ipv4AddressFactory.php b/database/factories/Ipv4AddressFactory.php index 13da621b2f..68ce90d39c 100644 --- a/database/factories/Ipv4AddressFactory.php +++ b/database/factories/Ipv4AddressFactory.php @@ -11,13 +11,6 @@ use LibreNMS\Util\IPv4; /** @extends Factory */ class Ipv4AddressFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Ipv4Address::class; - /** * Define the model's default state. * diff --git a/database/factories/Ipv4NetworkFactory.php b/database/factories/Ipv4NetworkFactory.php index 922920efce..1f18e381c8 100644 --- a/database/factories/Ipv4NetworkFactory.php +++ b/database/factories/Ipv4NetworkFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class Ipv4NetworkFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Ipv4Network::class; - /** * Define the model's default state. * diff --git a/database/factories/LocationFactory.php b/database/factories/LocationFactory.php index 1f9ab29ba9..3ac9302579 100644 --- a/database/factories/LocationFactory.php +++ b/database/factories/LocationFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class LocationFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Location::class; - /** * Define the model's default state. * diff --git a/database/factories/OspfNbrFactory.php b/database/factories/OspfNbrFactory.php index 6bbc33c971..5694d377ab 100644 --- a/database/factories/OspfNbrFactory.php +++ b/database/factories/OspfNbrFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class OspfNbrFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = OspfNbr::class; - /** * Define the model's default state. * diff --git a/database/factories/OspfPortFactory.php b/database/factories/OspfPortFactory.php index 3412464365..33260a3f9a 100644 --- a/database/factories/OspfPortFactory.php +++ b/database/factories/OspfPortFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class OspfPortFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = OspfPort::class; - /** * Define the model's default state. * diff --git a/database/factories/PortFactory.php b/database/factories/PortFactory.php index a7f1628e43..8d68a2fe4e 100644 --- a/database/factories/PortFactory.php +++ b/database/factories/PortFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class PortFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Port::class; - /** * Define the model's default state. * diff --git a/database/factories/SensorFactory.php b/database/factories/SensorFactory.php index 6d15fdfb3e..4a6d5a7718 100644 --- a/database/factories/SensorFactory.php +++ b/database/factories/SensorFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class SensorFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Sensor::class; - /** * Define the model's default state. * diff --git a/database/factories/SyslogFactory.php b/database/factories/SyslogFactory.php index 8ac282824e..151305f864 100644 --- a/database/factories/SyslogFactory.php +++ b/database/factories/SyslogFactory.php @@ -10,13 +10,6 @@ use LibreNMS\Enum\SyslogSeverity; /** @extends Factory */ class SyslogFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Syslog::class; - /** * Define the model's default state. * diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 3d4fc8b18b..bdc9d98878 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory; /** @extends Factory */ class UserFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = User::class; - /** * Define the model's default state. * diff --git a/database/factories/VminfoFactory.php b/database/factories/VminfoFactory.php index bbdcbace89..04fc857a14 100644 --- a/database/factories/VminfoFactory.php +++ b/database/factories/VminfoFactory.php @@ -9,13 +9,6 @@ use LibreNMS\Enum\PowerState; /** @extends Factory */ class VminfoFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ - protected $model = Vminfo::class; - /** * Define the model's default state. *