File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class {{ class }} extends ValueObject
67
67
{
68
68
// TODO: Implement validate() method.
69
69
70
- if (empty( $this->value()) ) {
70
+ if ($this->value() === '' ) {
71
71
throw ValidationException::withMessages(['Value of {{ class }} cannot be empty.']);
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public function value(): string
114
114
*/
115
115
protected function validate (): void
116
116
{
117
- if (empty ( $ this ->value ()) ) {
117
+ if ($ this ->value () === '' ) {
118
118
throw ValidationException::withMessages (['Class string cannot be empty. ' ]);
119
119
}
120
120
}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public function toArray(): array
102
102
*/
103
103
protected function validate (): void
104
104
{
105
- if (empty ( $ this ->value ()) ) {
105
+ if ($ this ->value () === '' ) {
106
106
throw ValidationException::withMessages (['Full name cannot be empty. ' ]);
107
107
}
108
108
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function toArray(): array
141
141
*/
142
142
protected function validate (): void
143
143
{
144
- if (empty ( $ this ->value ()) ) {
144
+ if ($ this ->value () === '' ) {
145
145
throw ValidationException::withMessages (['Tax number cannot be empty. ' ]);
146
146
}
147
147
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function value(): string
74
74
*/
75
75
protected function validate (): void
76
76
{
77
- if (empty ( $ this ->value ()) ) {
77
+ if ($ this ->value () === '' ) {
78
78
throw new InvalidArgumentException ('Text cannot be empty. ' );
79
79
}
80
80
}
You can’t perform that action at this time.
0 commit comments