@@ -38,7 +38,8 @@ private function mandatoryAttributes(): self
38
38
39
39
if ($ diff ->isNotEmpty ()) {
40
40
throw Template::missingMetaAttributes (
41
- $ this ->field ->get ('name ' ), $ diff ->implode ('", " ' )
41
+ $ this ->field ->get ('name ' ),
42
+ $ diff ->implode ('", " ' )
42
43
);
43
44
}
44
45
@@ -55,7 +56,8 @@ private function optionalAttributes(): self
55
56
56
57
if ($ diff ->isNotEmpty ()) {
57
58
throw Template::unknownMetaAttributes (
58
- $ this ->field ->get ('name ' ), $ diff ->implode ('", " ' )
59
+ $ this ->field ->get ('name ' ),
60
+ $ diff ->implode ('", " ' )
59
61
);
60
62
}
61
63
@@ -65,8 +67,8 @@ private function optionalAttributes(): self
65
67
private function format (): self
66
68
{
67
69
if ($ this ->meta ->get ('type ' ) === 'input ' ) {
68
- if ($ this ->inputMetaParameterMissing ( $ this -> field )) {
69
- throw Template::missingInputAttribute ($ this ->field ->geT ('name ' ));
70
+ if (! $ this ->meta -> has ( ' content ' )) {
71
+ throw Template::missingInputContent ($ this ->field ->get ('name ' ));
70
72
}
71
73
72
74
return $ this ;
@@ -92,11 +94,6 @@ private function type(): void
92
94
}
93
95
}
94
96
95
- private function inputMetaParameterMissing (): bool
96
- {
97
- return $ this ->meta === null || ! $ this ->meta ->has ('content ' );
98
- }
99
-
100
97
private function selectMetaParameterMissing (): bool
101
98
{
102
99
return $ this ->meta === null
0 commit comments