Code Duplication    Length = 3-4 lines in 2 locations

main/inc/lib/pclzip/pclzip.lib.php 1 location

@@ 3313-3316 (lines=4) @@
3310
    if (($p_path != "./") && ($p_path != "/"))
3311
    {
3312
      // ----- Look for the path end '/'
3313
      while (substr($p_path, -1) == "/")
3314
      {
3315
        $p_path = substr($p_path, 0, strlen($p_path)-1);
3316
      }
3317
    }
3318
3319
    // ----- Look for path to remove format (should end by /)

main/inc/lib/phpmailer/class.phpmailer.php 1 location

@@ 2300-2302 (lines=3) @@
2297
    $body=str_replace("\r\n","\n",$body);
2298
    $body=str_replace("\n","\r\n",$body);
2299
    // END stabilize line endings
2300
    while (substr($body,strlen($body)-4,4) == "\r\n\r\n") {
2301
      $body=substr($body,0,strlen($body)-2);
2302
    }
2303
    return $body;
2304
  }
2305