includes/Rest/Handler/Helper/RevisionContentHelper.php
Method getResponseBodySchema
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getResponseBodySchema() {
// TODO: we need to reference a re-usable "user" type. The license structure should also be re-usable.
return [
'description' => 'revision meta-data',
'required' => [
Method constructMetadata
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function constructMetadata(): array {
$page = $this->getPage();
$revision = $this->getTargetRevision();
$mainSlot = $revision->getSlot( SlotRecord::MAIN, RevisionRecord::RAW );