formatting
This commit is contained in:
@ -70,11 +70,9 @@ class Bill extends Factory
|
||||
*/
|
||||
public function draft()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => 'draft',
|
||||
];
|
||||
});
|
||||
return $this->state([
|
||||
'status' => 'draft',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -84,11 +82,9 @@ class Bill extends Factory
|
||||
*/
|
||||
public function received()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => 'received',
|
||||
];
|
||||
});
|
||||
return $this->state([
|
||||
'status' => 'received',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -98,11 +94,9 @@ class Bill extends Factory
|
||||
*/
|
||||
public function partial()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => 'partial',
|
||||
];
|
||||
});
|
||||
return $this->state([
|
||||
'status' => 'partial',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -112,11 +106,9 @@ class Bill extends Factory
|
||||
*/
|
||||
public function paid()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => 'paid',
|
||||
];
|
||||
});
|
||||
return $this->state([
|
||||
'status' => 'paid',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -126,11 +118,9 @@ class Bill extends Factory
|
||||
*/
|
||||
public function cancelled()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => 'cancelled',
|
||||
];
|
||||
});
|
||||
return $this->state([
|
||||
'status' => 'cancelled',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -140,16 +130,12 @@ class Bill extends Factory
|
||||
*/
|
||||
public function recurring()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
$frequencies = ['monthly', 'weekly'];
|
||||
|
||||
return [
|
||||
'recurring_frequency' => 'yes',
|
||||
'recurring_interval' => '1',
|
||||
'recurring_custom_frequency' => $this->faker->randomElement($frequencies),
|
||||
'recurring_count' => '1',
|
||||
];
|
||||
});
|
||||
return $this->state([
|
||||
'recurring_frequency' => 'yes',
|
||||
'recurring_interval' => '1',
|
||||
'recurring_custom_frequency' => $this->faker->randomElement(['monthly', 'weekly']),
|
||||
'recurring_count' => '1',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user