File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1313 $ includeChildren = option ('splorp.paperback-export.includeChildren ' , []);
1414 $ excludeTemplate = option ('splorp.paperback-export.excludeTemplate ' , []);
1515
16+ if (! is_string ($ prefix )) {
17+ throw new Exception ('The option “splorp.paperback-export.prefix” must be a string. ' );
18+ }
19+ if (! is_bool ($ includeUnlisted )) {
20+ throw new Exception ('The option “splorp.paperback-export.includeUnlisted” must be a boolean. ' );
21+ }
1622 if (! is_array ($ includeChildren )) {
17- throw new Exception ('The option " splorp.paperback-export.includeChildren" must be an array. ' );
23+ throw new Exception ('The option “ splorp.paperback-export.includeChildren” must be an array. ' );
1824 }
1925 if (! is_array ($ excludeTemplate )) {
20- throw new Exception ('The option " splorp.paperback-export.excludeTemplate" must be an array. ' );
26+ throw new Exception ('The option “ splorp.paperback-export.excludeTemplate” must be an array. ' );
2127 }
2228
2329 $ languages = site ()->languages ();
You can’t perform that action at this time.
0 commit comments