|
|
@ -329,8 +329,14 @@ class HelpController extends Controller |
|
|
|
// show as integer to avoid confusion |
|
|
|
// show as integer to avoid confusion |
|
|
|
$defaultValue = (int) $defaultValue; |
|
|
|
$defaultValue = (int) $defaultValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if ($type === 'boolean') { |
|
|
|
|
|
|
|
$type = 'boolean, 0 or 1'; |
|
|
|
|
|
|
|
} |
|
|
|
$doc = "$type (defaults to " . var_export($defaultValue, true) . ")"; |
|
|
|
$doc = "$type (defaults to " . var_export($defaultValue, true) . ")"; |
|
|
|
} elseif (trim($type) !== '') { |
|
|
|
} elseif (trim($type) !== '') { |
|
|
|
|
|
|
|
if ($type === 'boolean') { |
|
|
|
|
|
|
|
$type = 'boolean, 0 or 1'; |
|
|
|
|
|
|
|
} |
|
|
|
$doc = $type; |
|
|
|
$doc = $type; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|