modules/custom/deims_d6_migration/migration/DeimsContentResearchSiteMigration.php

Summary

Maintainability
A
1 hr
Test Coverage

Method __construct has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public function __construct(array $arguments) {
    $arguments += array(
      'description' => '',
      'source_connection' => 'drupal6',
      'source_version' => 6,

    The closing brace for the class must have an empty line before it
    Open

    }

    Expected 1 blank line after function; 0 found
    Open

      }

    Missing class doc comment
    Open

    class DeimsContentResearchSiteMigration extends DrupalNode6Migration {

    No space found before comment text; expected "// $query = $connection->select('content_type_research_site');" but found "//$query = $connection->select('content_type_research_site');"
    Open

          //$query = $connection->select('content_type_research_site');

    No space found before comment text; expected "// $query->addExpression('AsText(field_research_site_pt_coords_geo)');" but found "//$query->addExpression('AsText(field_research_site_pt_coords_geo)');"
    Open

          //$query->addExpression('AsText(field_research_site_pt_coords_geo)');

    No space found before comment text; expected "// dpm(unpack('Lpadding/corder/Lgtype/dlongitude/dlatitude', $row->field_research_site_pt_coords));" but found "//dpm(unpack('Lpadding/corder/Lgtype/dlongitude/dlatitude', $row->field_research_site_pt_coords));"
    Open

          //dpm(unpack('Lpadding/corder/Lgtype/dlongitude/dlatitude', $row->field_research_site_pt_coords));

    No space found before comment text; expected "// $query->condition('vid', $row->vid);" but found "//$query->condition('vid', $row->vid);"
    Open

          //$query->condition('vid', $row->vid);

    Missing function doc comment
    Open

      public function prepareRow($row) {

    Missing function doc comment
    Open

      public function __construct(array $arguments) {

    Missing function doc comment
    Open

      public function getSiteDetails($node, $row) {

    Missing function doc comment
    Open

      public function getCoordinates($node, $row) {

    No space found before comment text; expected "// $connection = Database::getConnection('default', $this->sourceConnection);" but found "//$connection = Database::getConnection('default', $this->sourceConnection);"
    Open

          //$connection = Database::getConnection('default', $this->sourceConnection);

    No space found before comment text; expected "// $wkt = $query->execute()->fetchField();" but found "//$wkt = $query->execute()->fetchField();"
    Open

          //$wkt = $query->execute()->fetchField();

    Missing function doc comment
    Open

      public function prepare($node, $row) {

    No space found before comment text; expected "// $query->condition('nid', $row->nid);" but found "//$query->condition('nid', $row->nid);"
    Open

          //$query->condition('nid', $row->nid);

    There are no issues that match your filters.

    Category
    Status