mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Remove unused methods
This commit is contained in:
parent
a50ddb4a5d
commit
ca677038b0
|
@ -288,44 +288,35 @@ class AssetFactory extends Factory
|
|||
});
|
||||
}
|
||||
|
||||
public function assignedToUser()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'model_id' => function () {
|
||||
return AssetModel::where('name', 'Macbook Pro 13')->first() ?? AssetModel::factory()->mbp13Model();
|
||||
},
|
||||
'assigned_to' => \App\Models\User::factory()->create()->id,
|
||||
'assigned_type' => \App\Models\User::class,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function assignedToLocation()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'model_id' => function () {
|
||||
return AssetModel::where('name', 'Macbook Pro 13')->first() ?? AssetModel::factory()->mbp13Model();
|
||||
},
|
||||
'assigned_to' => Location::factory(),
|
||||
'assigned_type' => Location::class,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function assignedToAsset()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'model_id' => function () {
|
||||
return AssetModel::where('name', 'Macbook Pro 13')->first() ?? AssetModel::factory()->mbp13Model();
|
||||
},
|
||||
'assigned_to' => \App\Models\Asset::factory()->create()->id,
|
||||
'assigned_type' => \App\Models\Asset::class,
|
||||
];
|
||||
});
|
||||
}
|
||||
// public function assignedToUser()
|
||||
// {
|
||||
// return $this->state(function () {
|
||||
// return [
|
||||
// 'assigned_to' => User::factory(),
|
||||
// 'assigned_type' => User::class,
|
||||
// ];
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// public function assignedToLocation()
|
||||
// {
|
||||
// return $this->state(function () {
|
||||
// return [
|
||||
// 'assigned_to' => Location::factory(),
|
||||
// 'assigned_type' => Location::class,
|
||||
// ];
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// public function assignedToAsset()
|
||||
// {
|
||||
// return $this->state(function () {
|
||||
// return [
|
||||
// 'assigned_to' => Asset::factory(),
|
||||
// 'assigned_type' => Asset::class,
|
||||
// ];
|
||||
// });
|
||||
// }
|
||||
|
||||
public function requiresAcceptance()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue