diff --git a/TemplateDataBlob.php b/TemplateDataBlob.php index 949063a5..cec94ef1 100644 --- a/TemplateDataBlob.php +++ b/TemplateDataBlob.php @@ -55,6 +55,7 @@ class TemplateDataBlob { 'params', 'sets', ); + static $paramKeys = array( 'label', 'required', @@ -65,6 +66,7 @@ class TemplateDataBlob { 'inherits', 'type', ); + static $types = array( 'unknown', 'string', @@ -249,9 +251,9 @@ class TemplateDataBlob { return Status::newFatal( 'templatedata-invalid-unknown', $key ); } if ( !isset( $unnormalizedParams->$paramName->$key ) ) { - $paramObj->$key = is_object( $parentParamObj->$key ) - ? clone $parentParamObj->$key - : $parentParamObj->$key; + $paramObj->$key = is_object( $parentParamObj->$key ) ? + clone $parentParamObj->$key : + $parentParamObj->$key; } } unset( $paramObj->inherits ); @@ -406,9 +408,9 @@ class TemplateDataBlob { $html .= '