Showing 11,545 of 11,545 total issues
Method configure
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure( array $params ): void {
$this->localDomain = isset( $params['localDomain'] )
? DatabaseDomain::newFromId( $params['localDomain'] )
: DatabaseDomain::newUnspecified();
Method placeBlockUnsafe
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function placeBlockUnsafe( bool $reblock = false ): Status {
$status = $this->blockUtils->validateTarget( $this->target );
if ( !$status->isOK() ) {
$this->logger->debug( 'placeBlockUnsafe: invalid target' );
Method getAction
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAction(
string $actionName,
$article,
IContextSource $context
) {
Method getCategoryLinks
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCategoryLinks() {
$out = $this->getOutput();
$allCats = $out->getCategoryLinks();
$title = $this->getTitle();
$services = MediaWikiServices::getInstance();
Method tryEndExpect
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function tryEndExpect( $token ) {
// @phan-suppress-next-line PhanTypeArraySuspiciousNullable
switch ( $this->startToken[0] ) {
case T_DOUBLE_COLON:
// Skip over T_CLASS after T_DOUBLE_COLON because this is something like
Method parseFlags
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseFlags() {
$text = $this->mText;
$flags = [];
$variantFlags = [];
Method parseRules
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseRules() {
$rules = $this->mRules;
$bidtable = [];
$unidtable = [];
$varsep_pattern = $this->mConverter->getVarSeparatorPattern();
Method getSearchResultData
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getSearchResultData( SearchResult $result, $prop ) {
// Silently skip broken and missing titles
if ( $result->isBrokenTitle() || $result->isMissingRevision() ) {
return null;
}
Method getAllowedParams
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
$params = [
'filename' => [
ParamValidator::PARAM_TYPE => 'string',
],
Method getAllowedParams
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
return [
'continue' => [
ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',
],
Method loadRedirectTargets
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function loadRedirectTargets() {
$titlesToResolve = [];
$db = $this->getDB();
if ( $this->mPendingRedirectIDs ) {
Method execute
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$params = $this->extractRequestParams();
$authority = $this->getAuthority();
// make sure the user is allowed
Method fetchBlobs
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function fetchBlobs( array $keys, bool $getCasToken = false ) {
/** @noinspection PhpUnusedLocalVariableInspection */
$silenceScope = $this->silenceTransactionProfiler();
// Initialize order-preserved per-key results; set values for live keys below
Method execute
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $par ) {
$this->useTransactionalTimeLimit();
$user = $this->getUser();
Method sendCacheControl
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sendCacheControl() {
$response = $this->getRequest()->response();
$config = $this->getConfig();
$this->addVaryHeader( 'Cookie' );
Method checkCondition
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkCondition( array $cond, User $user ): bool {
if ( count( $cond ) < 1 ) {
return false;
}
Method getShowHideLinks
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getShowHideLinks( $row ) {
// We don't want to see the links and
if ( $this->flags == self::NO_ACTION_LINK ) {
return '';
}
Method getThumbnailSource
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getThumbnailSource( $params ) {
if ( $this->repo
&& $this->getHandler()->supportsBucketing()
&& isset( $params['physicalWidth'] )
) {
Method execute
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(): Response {
$request = $this->getRequest();
$from = $request->getPathParam( 'from' );
$format = $request->getPathParam( 'format' );
Method checkPreconditions
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkPreconditions( RequestInterface $request ) {
$parser = new IfNoneMatch;
if ( $this->eTag !== null ) {
$resourceTag = $parser->parseETag( $this->eTag );
if ( !$resourceTag ) {