lib/includes/Formatters/OutputFormatSnakFormatterFactory.php
Method getSnakFormatter
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSnakFormatter( $format, FormatterOptions $options ) {
$options->defaultOption( SnakFormatter::OPT_ON_ERROR, SnakFormatter::ON_ERROR_WARN );
$this->valueFormatterFactory->applyLanguageDefaults( $options );
$lang = $options->getOption( ValueFormatter::OPT_LANG );
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
array $snakFormatterConstructorCallbacks,
OutputFormatValueFormatterFactory $valueFormatterFactory,
PropertyDataTypeLookup $propertyDataTypeLookup,
DataTypeFactory $dataTypeFactory,
MessageInLanguageProvider $messageInLanguageProvider