Showing 1,432 of 2,096 total issues
Method validateFormData
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function validateFormData( array $formData ): Status {
$status = Status::newGood();
if ( $formData[ self::FIELD_LABEL ] == ''
&& $formData[ self::FIELD_DESCRIPTION ] == ''
File SetReference.php
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
namespace Wikibase\Repo\Api;
Method execute
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(): void {
if ( !WikibaseSettings::isRepoEnabled() ) {
$this->output( "You need to have Wikibase enabled in order to use this maintenance script!\n\n" );
exit;
}
Method cleanTextInLangIds
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function cleanTextInLangIds( array $textInLangIds ): void {
if ( $textInLangIds === [] ) {
return;
}
File DateFormatParser.php
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Repo\Parsers;
use DataValues\IllegalValueException;
Function 7c73
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
var defineProperties = __webpack_require__("37e8");
var enumBugKeys = __webpack_require__("7839");
Method validateFormData
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function validateFormData( array $formData ) {
$status = Status::newGood();
if ( $formData[ self::FIELD_LABEL ] == ''
&& $formData[ self::FIELD_DESCRIPTION ] == ''
SqlStore
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SqlStore implements Store {
/**
* @var EntityChangeFactory
*/
SpecialSetLabelDescriptionAliases
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SpecialSetLabelDescriptionAliases extends SpecialModifyEntity {
use ParameterizedDescriptionTrait;
public const BUTTON_MESSAGE_PUBLISH = 'publishchanges';
DeserializedRequestAdapter
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class DeserializedRequestAdapter implements
DeserializedAddItemStatementRequest,
DeserializedAddPropertyStatementRequest,
DeserializedGetItemRequest,
DeserializedGetSitelinksRequest,
DataTypeDefinitions
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class DataTypeDefinitions {
/**
* Constant for indicating that callback maps should be returned with the "VT:" and "PT:"
* prefixes in the array keys indicating whether the callback applies to a value type or a
Function exports
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor(IteratorConstructor, NAME, next);
var getIterationMethod = function (KIND) {
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
Method acquireAndInsertTerms
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function acquireAndInsertTerms( Int32EntityId $entityId, Fingerprint $fingerprint ): array {
$entityNumericId = $entityId->getNumericId();
$dbw = $this->getDbw();
$queryBuilder = $dbw->newSelectQueryBuilder()
Method getTermMatchQueries
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getTermMatchQueries(
IReadableDatabase $dbr,
TermIndexSearchCriteria $mask,
string $entityType,
$termType = null,
Method __construct
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EntityIdFormatterFactory $htmlIdFormatterFactory,
EntityIdFormatterFactory $plainTextIdFormatterFactory,
HtmlSnakFormatterFactory $htmlSnakFormatterFactory,
StatementGrouper $statementGrouper,
PropertyOrderProvider $propertyOrderProvider,
Method __construct
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
FormatterLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
LanguageNameLookupFactory $languageNameLookupFactory,
EntityIdParser $itemUriParser,
string $geoShapeStorageBaseUrl,
string $tabularDataStorageBaseUrl,
File jquery.wikibase.edittoolbar.js
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license GPL-2.0-or-later
* @author H. Snater < mediawiki@snater.com >
*/
( function ( wb ) {
Function dispatch
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Store.prototype.dispatch = function dispatch (_type, _payload) {
var this$1$1 = this;
// check object-style dispatch
var ref = unifyObjectStyle(_type, _payload);
Method addFilter
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function addFilter( ChangesListSpecialPage $specialPage ): void {
$filterName = $this->getFilterName();
$changeTypeGroup = $specialPage->getFilterGroup( 'changeType' );
$out = $specialPage->getOutput();
Method cleanTermInLangIdsInner
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function cleanTermInLangIdsInner( array $termInLangIds ): void {
$this->logger->debug(
'{method}: deleting {count} term_in_lang rows',
[
'method' => __METHOD__,