lib/includes/Formatters/WikibaseValueFormatterBuilders.php
File WikibaseValueFormatterBuilders.php
has 335 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
namespace Wikibase\Lib\Formatters;
WikibaseValueFormatterBuilders
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WikibaseValueFormatterBuilders {
/**
* @var FormatterLabelDescriptionLookupFactory
*/
Method __construct
has 17 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
FormatterLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
LanguageNameLookupFactory $languageNameLookupFactory,
EntityIdParser $itemUriParser,
string $geoShapeStorageBaseUrl,
string $tabularDataStorageBaseUrl,
Method newGlobeCoordinateFormatter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function newGlobeCoordinateFormatter( $format, FormatterOptions $options ) {
$isHtmlVerboseFormat = $this->snakFormat->isPossibleFormat( SnakFormatter::FORMAT_HTML_VERBOSE, $format );
if ( $isHtmlVerboseFormat && $this->kartographerEmbeddingHandler ) {
$isPreview = $format === SnakFormatter::FORMAT_HTML_VERBOSE_PREVIEW;