File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ protected function getParamType(array $paramRules)
19
19
{
20
20
if (in_array ('integer ' , $ paramRules )) {
21
21
return 'integer ' ;
22
- } else if (in_array ('numeric ' , $ paramRules )) {
22
+ } elseif (in_array ('numeric ' , $ paramRules )) {
23
23
return 'number ' ;
24
- } else if (in_array ('boolean ' , $ paramRules )) {
24
+ } elseif (in_array ('boolean ' , $ paramRules )) {
25
25
return 'boolean ' ;
26
- } else if (in_array ('array ' , $ paramRules )) {
26
+ } elseif (in_array ('array ' , $ paramRules )) {
27
27
return 'array ' ;
28
28
} else {
29
29
//date, ip, email, etc..
@@ -62,11 +62,11 @@ protected function getEnumValues(array $paramRules)
62
62
private function getInParameter (array $ paramRules )
63
63
{
64
64
foreach ($ paramRules as $ rule ) {
65
- if (Str::startsWith ($ rule , 'in: ' )) {
65
+ if (is_string ( $ rule ) && Str::startsWith ($ rule , 'in: ' )) {
66
66
return $ rule ;
67
67
}
68
68
}
69
69
70
70
return false ;
71
71
}
72
- }
72
+ }
You can’t perform that action at this time.
0 commit comments