modules/custom/deims_d6_migration/migration/DeimsContentResearchSiteMigration.php
Method __construct
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
}
- Exclude checks
Expected 1 blank line after function; 0 found Open
Open
}
- Exclude checks
Missing class doc comment Open
Open
class DeimsContentResearchSiteMigration extends DrupalNode6Migration {
- Exclude checks
No space found before comment text; expected "// $query = $connection->select('content_type_research_site');" but found "//$query = $connection->select('content_type_research_site');" Open
Open
//$query = $connection->select('content_type_research_site');
- Exclude checks
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
Open
//$query->addExpression('AsText(field_research_site_pt_coords_geo)');
- Exclude checks
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
Open
//dpm(unpack('Lpadding/corder/Lgtype/dlongitude/dlatitude', $row->field_research_site_pt_coords));
- Exclude checks
No space found before comment text; expected "// $query->condition('vid', $row->vid);" but found "//$query->condition('vid', $row->vid);" Open
Open
//$query->condition('vid', $row->vid);
- Exclude checks
Missing function doc comment Open
Open
public function prepareRow($row) {
- Exclude checks
Missing function doc comment Open
Open
public function __construct(array $arguments) {
- Exclude checks
Missing function doc comment Open
Open
public function getSiteDetails($node, $row) {
- Exclude checks
Missing function doc comment Open
Open
public function getCoordinates($node, $row) {
- Exclude checks
No space found before comment text; expected "// $connection = Database::getConnection('default', $this->sourceConnection);" but found "//$connection = Database::getConnection('default', $this->sourceConnection);" Open
Open
//$connection = Database::getConnection('default', $this->sourceConnection);
- Exclude checks
No space found before comment text; expected "// $wkt = $query->execute()->fetchField();" but found "//$wkt = $query->execute()->fetchField();" Open
Open
//$wkt = $query->execute()->fetchField();
- Exclude checks
Missing function doc comment Open
Open
public function prepare($node, $row) {
- Exclude checks
No space found before comment text; expected "// $query->condition('nid', $row->nid);" but found "//$query->condition('nid', $row->nid);" Open
Open
//$query->condition('nid', $row->nid);
- Exclude checks