Code Duplication    Length = 6-6 lines in 2 locations

src/Drupal/Driver/Fields/Drupal7/DatetimeHandler.php 1 location

@@ 16-21 (lines=6) @@
13
  public function expand($values) {
14
    $return = [];
15
    if (isset($this->fieldInfo['columns']['value2'])) {
16
      foreach ($values as $value) {
17
        $return[$this->language][] = [
18
          'value' => $value[0],
19
          'value2' => $value[1],
20
        ];
21
      }
22
    }
23
    else {
24
      foreach ($values as $value) {

src/Drupal/Driver/Fields/Drupal7/LinkFieldHandler.php 1 location

@@ 15-20 (lines=6) @@
12
   */
13
  public function expand($values) {
14
    $return = [];
15
    foreach ($values as $value) {
16
      $return[$this->language][] = [
17
        'title' => $value[0],
18
        'url' => $value[1],
19
      ];
20
    }
21
    return $return;
22
  }
23