Skip to content

Commit 2aa3dfc

Browse files
committed
fix: remove space in date_format for created_at validation rules
1 parent 327c185 commit 2aa3dfc

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

contexts/ArticlePublishing/Presentation/Requests/CreateArticleRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function rules(): array
1717
'category_ids' => ['array'],
1818
'category_ids.*' => ['integer', 'gt:0'],
1919
'author_id' => ['integer', 'gt:0'],
20-
'created_at' => ['date', 'date_format: Y-m-d H:i:s'],
20+
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
2121
];
2222
}
2323
}

contexts/ArticlePublishing/Presentation/Requests/UpdateArticleRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function rules(): array
1818
'category_ids' => ['array'],
1919
'category_ids.*' => ['integer', 'gt:0'],
2020
'author_id' => ['integer', 'gt:0'],
21-
'created_at' => ['date', 'date_format: Y-m-d H:i:s'],
21+
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
2222
];
2323
}
2424
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function rules(): array
1212
{
1313
return [
1414
'label' => ['required', 'string', 'max:255'],
15-
'created_at' => ['date', 'date_format: Y-m-d H:i:s'],
15+
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
1616
];
1717
}
1818
}

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

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

contexts/Authorization/Presentation/Requests/User/CreateUserRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function rules(): array
1414
'email' => ['required', 'email', 'min:4', 'max:255'],
1515
'password' => ['required', 'string', 'min:8'],
1616
'display_name' => ['required', 'string', 'max:255'],
17-
'created_at' => ['date', 'date_format: Y-m-d H:i:s'],
17+
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
1818
];
1919
}
2020
}

contexts/Authorization/Presentation/Requests/User/UpdateUserRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function rules(): array
1515
'email' => ['email', 'max:255'],
1616
'display_name' => ['string', 'max:255'],
1717
'status' => ['string', 'in:subspended,active'],
18-
'created_at' => ['date', 'date_format: Y-m-d H:i:s'],
18+
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
1919
];
2020
}
2121
}

contexts/CategoryManagement/Presentation/Requests/CreateCategoryRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function rules(): array
1212
{
1313
return [
1414
'label' => ['required', 'string', 'max:255'],
15-
'created_at' => ['date', 'date_format: Y-m-d H:i:s'],
15+
'created_at' => ['date', 'date_format:Y-m-d H:i:s'],
1616
];
1717
}
1818
}

contexts/CategoryManagement/Presentation/Requests/UpdateCategoryRequest.php

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

0 commit comments

Comments
 (0)