Skip to content

Commit 99ce208

Browse files
committed
chore: typo fixe
1 parent a70c020 commit 99ce208

File tree

24 files changed

+38
-38
lines changed

24 files changed

+38
-38
lines changed

contexts/Authorization/Domain/Role/Models/Role.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function reconstitute(
6363

6464
public function subspend()
6565
{
66-
$this->transitionStatus(RoleStatus::subspended());
66+
$this->transitionStatus(RoleStatus::suspended());
6767
}
6868

6969
public function delete()

contexts/Authorization/Domain/UserIdentity/Models/UserIdentity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public static function createFromFactory(
138138

139139
public function subspend()
140140
{
141-
$this->transitionStatus(UserStatus::subspended());
141+
$this->transitionStatus(UserStatus::suspended());
142142
}
143143

144144
public function delete()

contexts/Authorization/Infrastructure/Migrations/2025_03_09_022301_create_users_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up(): void
1919
$table->string('password')->default('');
2020
$table->string('remember_token', 100)->nullable();
2121
$table->string('display_name')->default('');
22-
$table->tinyInteger('status')->default(0)->comment('0: subspended, 1: active, 2: deleted');
22+
$table->tinyInteger('status')->default(0)->comment('0: suspended, 1: active, 2: deleted');
2323
$table->timestamps();
2424
});
2525
}

contexts/Authorization/Infrastructure/Migrations/2025_03_10_022301_create_roles_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up(): void
1616
Schema::create('roles', function (Blueprint $table) {
1717
$table->increments('id');
1818
$table->string('label')->default('');
19-
$table->tinyInteger('status')->default(0)->comment('0: subspended, 1: active, 2: deleted');
19+
$table->tinyInteger('status')->default(0)->comment('0: suspended, 1: active, 2: deleted');
2020
$table->timestamps();
2121
});
2222
}

contexts/Authorization/Infrastructure/Records/RoleRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RoleRecord extends BaseRecord
3131
protected $fillable = ['label', 'status', 'created_at'];
3232

3333
public const STATUS_MAPPING = [
34-
0 => 'subspended',
34+
0 => 'suspended',
3535
1 => 'active',
3636
2 => 'deleted',
3737
];

contexts/Authorization/Infrastructure/Records/UserRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class UserRecord extends Authenticatable
4141
protected $fillable = ['display_name', 'status', 'email', 'password', 'created_at'];
4242

4343
public const STATUS_MAPPING = [
44-
0 => 'subspended',
44+
0 => 'suspended',
4545
1 => 'active',
4646
2 => 'deleted',
4747
];

contexts/Authorization/Presentation/Controllers/RoleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function subspendRole(RoleIdRequest $request)
6464
$result = app(RoleCoordinator::class)->subspendRole($id);
6565

6666
return $this->success(['id' => $result->getId()->getValue()])
67-
->message('Role subspended successfully')
67+
->message('Role suspended successfully')
6868
->send();
6969
}
7070

contexts/Authorization/Presentation/Controllers/UserIdentityController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function subspendUser(UserIdRequest $request)
6666
$result = app(UserIdentityCoordinator::class)->subspendUser($id);
6767

6868
return $this->success(['id' => $result->getId()->getValue()])
69-
->message('User subspended successfully')
69+
->message('User suspended successfully')
7070
->send();
7171
}
7272

contexts/Authorization/Presentation/Requests/Role/GetRoleListRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function rules(): array
1313
return [
1414
'id' => ['integer', 'gt:0'],
1515
'label' => ['string', 'max:255'],
16-
'status' => ['string', 'in:subspended,active'],
16+
'status' => ['string', 'in:suspended,active'],
1717
'created_at_range' => ['array', 'size:2'],
1818
'created_at_range.*' => ['date'],
1919
'current_page' => ['integer', 'gt:0'],

contexts/Authorization/Presentation/Requests/Role/UpdateRoleRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function rules(): array
1313
return [
1414
'id' => ['required', 'integer', 'gt:0'],
1515
'label' => ['string', 'max:255'],
16-
'status' => ['string', 'in:subspended,active'],
16+
'status' => ['string', 'in:suspended,active'],
1717
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
1818
];
1919
}

0 commit comments

Comments
 (0)