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

protected/models/menu/CustomMenuItem.php 1 location

@@ 42-43 (lines=2) @@
39
   */
40
  public function getMenuUrl()
41
  {
42
    if( substr($this->url, 0, 1) === '/' && substr($this->url, -1, 1) === '/' )
43
      return $this->url;
44
45
    $url = array($this->url);
46

protected/models/menu/Menu.php 1 location

@@ 108-111 (lines=4) @@
105
    if( empty($this->url) )
106
      return '';
107
108
    if( substr($this->url, 0, 1) === '/' && substr($this->url, -1, 1) === '/' )
109
      return $this->url;
110
    else
111
      return array($this->url);
112
  }
113
114
  /**