Showing 158 of 158 total issues

Missing class import via use statement (line '198', column '39').
Open

            $this->wikiPages[$pageTitle] = new RDFIOWikiPage( $pageTitle );

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 '62', column '14').
Open

            throw new RDFIOException( 'Datatype not in allowed datatypes: ' . $dataType );
Severity: Minor
Found in classes/RDFIO_WikiPage.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 '39', column '22').
Open

        $rdfImporter = new RDFIORDFImporter();
Severity: Minor
Found in maintenance/importRdf.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 '13', column '29').
    Open

            $this->storewrapper = new RDFIOARC2StoreWrapper();
    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 '25', column '14').
    Open

                throw new PermissionsError( 'rdfio-sparql', array( 'rdfio-specialpage-access-permission-missing' ) );
    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 '44', column '31').
    Open

                    $dataSourceImporter = new RDFIORDFImporter();
    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 '23', column '29').
    Open

            $uriToPropTitleConv = new RDFIOURIToPropertyTitleConverter( $arc2Triples, $arc2ResourceIndex, $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 '54', column '29').
    Open

                    $arc2storeWrapper = new RDFIOARC2StoreWrapper();
    Severity: Minor
    Found in maintenance/exportRdf.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 '43', column '25').
    Open

                        $rdfImporter = new RDFIORDFImporter();
    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 '65', column '22').
    Open

            $rdfImporter = new RDFIORDFImporter();
    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 '75', column '15').
    Open

                    throw new RDFIOException( 'RDF 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 '188', column '17').
    Open

            $parser = new ARC2_SPARQLPlusParser( 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

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

        public function getURIForEquivURI( $equivUri, $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 '22', column '15').
    Open

                    throw new MWException( 'Could not import page: Title is empty!' );
    Severity: Minor
    Found in classes/RDFIO_SMWPageWriter.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 array( $uri, '' );
    Severity: Major
    Found in classes/parsers/RDFIO_URIToWikiTitleConverter.php - About 30 mins to fix

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

              $rdfImporter = new RDFIORDFImporter();
      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 '18', column '14').
      Open

                  throw new PermissionsError( 'rdfio-import', array( 'rdfio-specialpage-access-permission-missing' ) );
      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 '76', column '30').
      Open

              $arc2towikiconverter = new RDFIOARC2ToWikiConverter();
      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

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

              $store = new SMWARC2Store();
      Severity: Minor
      Found in maintenance/exportRdf.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