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 = 6-7 lines in 2 locations

protected/models/product/behaviors/ModificationBehavior.php 2 locations

@@ 102-107 (lines=6) @@
99
        return $this->getParentModel()->asa('imagesBehavior')->getImage($type);
100
      }
101
    }
102
    else if( $this->isParent() )
103
    {
104
      $modification = $this->getFirstModification();
105
      if( !empty($modification->asa('imagesBehavior')->getImage($type)->name) )
106
        return $modification->asa('imagesBehavior')->getImage($type);
107
    }
108
109
    return $this->owner->asa('imagesBehavior')->getImage($type);
110
  }
@@ 127-133 (lines=7) @@
124
        return $images;
125
      }
126
    }
127
    else if( $this->isParent() )
128
    {
129
      $modification = $this->getFirstModification();
130
      $images = $modification->asa('imagesBehavior')->getImages($type);
131
      if( !empty($images) )
132
        return $images;
133
    }
134
135
    return $this->owner->asa('imagesBehavior')->getImages($type);
136
  }