GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 43-43 lines in 2 locations

modules/df/df_tools/df_tools_fpp/df_tools_fpp.raw_html.inc 1 location

@@ 8-50 (lines=43) @@
5
 *  Migrations for Fieldable Panel Panes.
6
 */
7
8
class DFRawHTMLFPP extends Migration {
9
10
  public function __construct($arguments) {
11
    parent::__construct($arguments);
12
    $this->description = t('Import Raw HTML FPPs.');
13
14
    // Create a map object for tracking the relationships between source rows
15
    $this->map = new MigrateSQLMap($this->machineName,
16
      array(
17
        'UUID' => array(
18
          'type' => 'varchar',
19
          'length' => 36,
20
          'not null' => FALSE,
21
          'description' => 'The Universally Unique Identifier.',
22
        )
23
      ),
24
      array(
25
        'uuid' => array(
26
          'type' => 'varchar',
27
          'length' => 36,
28
          'not null' => FALSE,
29
          'description' => 'The Universally Unique Identifier.',
30
        )
31
      )
32
    );
33
34
    // Create a MigrateSource object.
35
    if (isset($arguments['path'])) {
36
      $import_path = $arguments['path'];
37
    }
38
    else {
39
      $import_path = drupal_get_path('module', 'df_tools_fpp') . '/import/df_tools_fpp.raw_html.csv';
40
    }
41
    $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1));
42
    $this->destination = new MigrateDestinationFieldablePanelsPanes('raw_html', array('text_format' => 'raw_html'));
43
44
    $this->addFieldMapping('field_raw_html', 'Raw HTML');
45
    $this->addFieldMapping('title', 'Title');
46
    $this->addFieldMapping('uuid', 'UUID');
47
    $this->addFieldMapping('category', 'Category')->defaultValue('Add HTML');
48
  }
49
50
}
51

modules/df/df_tools/df_tools_fpp/df_tools_fpp.text.inc 1 location

@@ 8-50 (lines=43) @@
5
 *  Migrations for Fieldable Panel Panes.
6
 */
7
8
class DFTextFPP extends Migration {
9
10
  public function __construct($arguments) {
11
    parent::__construct($arguments);
12
    $this->description = t('Import Text FPPs.');
13
14
    // Create a map object for tracking the relationships between source rows
15
    $this->map = new MigrateSQLMap($this->machineName,
16
      array(
17
        'UUID' => array(
18
          'type' => 'varchar',
19
          'length' => 36,
20
          'not null' => FALSE,
21
          'description' => 'The Universally Unique Identifier.',
22
        )
23
      ),
24
      array(
25
        'uuid' => array(
26
          'type' => 'varchar',
27
          'length' => 36,
28
          'not null' => FALSE,
29
          'description' => 'The Universally Unique Identifier.',
30
        )
31
      )
32
    );
33
34
    // Create a MigrateSource object.
35
    if (isset($arguments['path'])) {
36
      $import_path = $arguments['path'];
37
    }
38
    else {
39
      $import_path = drupal_get_path('module', 'df_tools_fpp') . '/import/df_tools_fpp.text.csv';
40
    }
41
    $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1));
42
    $this->destination = new MigrateDestinationFieldablePanelsPanes('text', array('text_format' => 'full_html'));
43
44
    $this->addFieldMapping('field_basic_text_text', 'HTML');
45
    $this->addFieldMapping('title', 'Title');
46
    $this->addFieldMapping('uuid', 'UUID');
47
    $this->addFieldMapping('category', 'Category')->defaultValue('Add text');
48
  }
49
50
}
51