Remove unnecessary $model property

This commit is contained in:
Shift
2022-11-09 16:33:43 +01:00
committed by Jellyfrog
parent bb974b24f6
commit 43949c97b3
17 changed files with 0 additions and 114 deletions
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<AlertSchedule> */
class AlertScheduleFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = AlertSchedule::class;
/**
* Define the model's default state.
*
@@ -8,8 +8,6 @@ use LibreNMS\Alert\Transport;
class AlertTransportFactory extends Factory
{
protected $model = AlertTransport::class;
public function definition(): array
{
return [
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<BgpPeer> */
class BgpPeerFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = BgpPeer::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Bill> */
class BillFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Bill::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Component> */
class ComponentFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Component::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Device> */
class DeviceFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Device::class;
/**
* Define the model's default state.
*
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<DeviceGroup> */
class DeviceGroupFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = DeviceGroup::class;
/**
* Define the model's default state.
*
@@ -11,13 +11,6 @@ use LibreNMS\Util\IPv4;
/** @extends Factory<Ipv4Address> */
class Ipv4AddressFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Ipv4Address::class;
/**
* Define the model's default state.
*
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Ipv4Network> */
class Ipv4NetworkFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Ipv4Network::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Location> */
class LocationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Location::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<OspfNbr> */
class OspfNbrFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = OspfNbr::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<OspfPort> */
class OspfPortFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = OspfPort::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Port> */
class PortFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Port::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Sensor> */
class SensorFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Sensor::class;
/**
* Define the model's default state.
*
-7
View File
@@ -10,13 +10,6 @@ use LibreNMS\Enum\SyslogSeverity;
/** @extends Factory<Syslog> */
class SyslogFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Syslog::class;
/**
* Define the model's default state.
*
-7
View File
@@ -8,13 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<User> */
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;
/**
* Define the model's default state.
*
-7
View File
@@ -9,13 +9,6 @@ use LibreNMS\Enum\PowerState;
/** @extends Factory<Vminfo> */
class VminfoFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Vminfo::class;
/**
* Define the model's default state.
*