Skip to content

Wrong dependencies shown #51

@JeroenDeDauw

Description

@JeroenDeDauw

The visualization shows Item and Entity as dependency, while it should be ItemId and EntityIdParsingException.

wrongdeps

Code from https://github.com/wmde/WikibaseDataModel at fa45c0e2426b6f386581d26e30cebb9abefee822

class ItemIdParser implements EntityIdParser {

    /**
     * @param string $idSerialization
     *
     * @throws EntityIdParsingException
     * @return ItemId
     */
    public function parse( $idSerialization ) {
        try {
            return new ItemId( $idSerialization );
        } catch ( InvalidArgumentException $ex ) {
            throw new EntityIdParsingException( $ex->getMessage() );
        }
    }

}

Quality Analyzer at 38525e7

Report generated with

bin/analyze analyze ../WikibaseDataModel/src/
bin/analyze serve

FireFox 41.0.2, Kubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions