Showing 158 of 158 total issues

Missing class import via use statement (line '129', column '17').
Open

                        throw new RDFIOARC2ToWikiConverterException( 'Error in ARC2ToWikiConverter: Unknown type ("' . $triple['o_type'] . '") of object ("' . $triple['o'] . '") in triple! (not "uri" nor "literal")!' );

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '68', column '15').
Open

                throw new RDFIOException( 'URL field is empty!' );
Severity: Minor
Found in specials/SpecialRDFImport.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '102', column '22').
Open

        $requestData = new RDFIORequestData();
Severity: Minor
Found in specials/SpecialRDFImport.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '9', column '31').
Open

        $this->sparqlendpoint = new ARC2_StoreEndpoint( $this->getSPARQLEndpointConfig(), $this );
Severity: Minor
Found in specials/SpecialSPARQLEndpoint.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '131', column '14').
Open

            throw new RDFIOARC2StoreException( $error );
Severity: Minor
Found in stores/SMW_ARC2Store.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '157', column '20').
Open

        $seOptions = new RDFIOSPARQLEndpointOptions();
Severity: Minor
Found in specials/SpecialSPARQLEndpoint.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '18', column '14').
Open

            throw new PermissionsError( 'rdfio-import', array( 'rdfio-specialpage-access-permission-missing' ) );
Severity: Minor
Found in specials/SpecialSPARQLImport.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '22', column '14').
Open

            throw new PermissionsError( 'rdfio-admin', array( 'rdfio-specialpage-access-permission-missing' ) );
Severity: Minor
Found in specials/SpecialRDFIOAdmin.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '70', column '15').
Open

                throw new RDFIOException( 'Invalid URL provided!' );
Severity: Minor
Found in specials/SpecialRDFImport.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '373', column '14').
Open

        $ser = new ARC2_RDFXMLSerializer();
Severity: Minor
Found in specials/SpecialSPARQLEndpoint.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '304', column '26').
Open

            $uriToTitleConv = new RDFIOURIToWikiTitleConverter( $this->arc2Triples, $this->arc2ResourceIndex, $this->arc2NSPrefixes );

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '78', column '14').
Open

            throw new RDFIOException( 'Import source is not selected!' );
Severity: Minor
Found in specials/SpecialRDFImport.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '312', column '22').
Open

        $rdfImporter = new RDFIORDFImporter();
Severity: Minor
Found in specials/SpecialSPARQLEndpoint.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '74', column '14').
Open

            throw new RDFIOException( wfMessage( 'rdfio-error-empty-sparql-url' )->parse() );
Severity: Minor
Found in specials/SpecialSPARQLImport.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Avoid too many return statements within this method.
Open

                return;
Severity: Major
Found in specials/SpecialSPARQLEndpoint.php - About 30 mins to fix

    Missing class import via use statement (line '120', column '16').
    Open

                $arc2 = new ARC2_Class( array(), $this );
    Severity: Minor
    Found in specials/SpecialSPARQLEndpoint.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '212', column '27').
    Open

            $sparqlserializer = new ARC2_SPARQLSerializerPlugin( array(), $this );
    Severity: Minor
    Found in specials/SpecialSPARQLEndpoint.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '109', column '15').
    Open

                    throw new RDFIOARC2StoreWrapperException( $error );
    Severity: Minor
    Found in classes/RDFIO_ARC2StoreWrapper.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    The method getWikiTitleByEquivalentURI has a boolean flag argument $isProperty, which is a certain sign of a Single Responsibility Principle violation.
    Open

        public function getWikiTitleByEquivalentURI( $uri, $isProperty = false ) {
    Severity: Minor
    Found in classes/RDFIO_ARC2StoreWrapper.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

    A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

    Example

    class Foo {
        public function bar($flag = true) {
        }
    }

    Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

    Missing class import via use statement (line '80', column '24').
    Open

            $smwPageWriter = new RDFIOSMWPageWriter();
    Severity: Minor
    Found in classes/RDFIO_RDFImporter.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Severity
    Category
    Status
    Source
    Language