includes/Rest/Handler/UpdateHandler.php
Method getConflictData
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getConflictData() {
$body = $this->getValidatedBody();
'@phan-var array $body';
$baseRevId = $body['latest']['id'] ?? 0;
$title = $this->titleParser->parseTitle( $this->getValidatedParams()['title'] );
Method getParamSettings
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParamSettings() {
return [
'title' => [
self::PARAM_SOURCE => 'path',
ParamValidator::PARAM_TYPE => 'string',
Method getActionModuleParameters
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getActionModuleParameters() {
$body = $this->getValidatedBody();
'@phan-var array $body';
$title = $this->getTitleParameter();
Avoid too many return
statements within this method. Open
Open
return [
'base' => $baseRev->getId(),
'current' => $currentRev->getId(),
'local' => $localDiff,
'remote' => $remoteDiff,