formatting

This commit is contained in:
Denis Duliçi
2020-10-15 00:08:41 +03:00
parent b83c566608
commit 3432ce26b8
12 changed files with 148 additions and 242 deletions

View File

@@ -41,11 +41,9 @@ class Account extends Factory
*/
public function enabled()
{
return $this->state(function (array $attributes) {
return [
'enabled' => 1,
];
});
return $this->state([
'enabled' => 1,
]);
}
/**
@@ -55,11 +53,9 @@ class Account extends Factory
*/
public function disabled()
{
return $this->state(function (array $attributes) {
return [
'enabled' => 0,
];
});
return $this->state([
'enabled' => 0,
]);
}
/**
@@ -69,10 +65,8 @@ class Account extends Factory
*/
public function default_currency()
{
return $this->state(function (array $attributes) {
return [
'currency_code' => setting('default.currency'),
];
});
return $this->state([
'currency_code' => setting('default.currency'),
]);
}
}