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

backend/protected/modules/dealer/frontend/DealerBehavior.php 1 location

@@ 104-114 (lines=11) @@
101
      $filial['href'] = $filialData['site_url'];
102
    }
103
104
    if( !empty($filialData['phone']) || !empty($filialData['phone_additional']) )
105
    {
106
      $phones = array();
107
108
      if( !empty($filialData['phone']) )
109
        $phones[] = $filialData['phone'];
110
111
      if( !empty($filialData['phone_additional']) )
112
        $phones[] = $filialData['phone_additional'];
113
      $filial['phones'] = implode(',', $phones);
114
    }
115
116
    return $filial;
117
  }

protected/extensions/retailcrm/RetailCrm.php 1 location

@@ 227-239 (lines=13) @@
224
      $filter['name'] = $data['phone'];
225
    else if( !empty($data['email']) )
226
      $filter['email'] = $data['email'];
227
    else
228
    {
229
      $nameArray = array();
230
      if( !empty($data['lastName']) )
231
        $nameArray[] = $data['lastName'];
232
      if( !empty($data['firstName']) )
233
        $nameArray[] = $data['firstName'];
234
      if( !empty($data['patronymic']) )
235
        $nameArray[] = $data['patronymic'];
236
237
      if( !empty($nameArray) )
238
        $filter['name'] = implode(' ', $nameArray);
239
    }
240
241
    if( empty($filter) )
242
      return;