Code Duplication    Length = 3-4 lines in 2 locations

src/wp-admin/includes/class-pclzip.php 1 location

@@ 3296-3299 (lines=4) @@
3293
    if (($p_path != "./") && ($p_path != "/"))
3294
    {
3295
      // ----- Look for the path end '/'
3296
      while (substr($p_path, -1) == "/")
3297
      {
3298
        $p_path = substr($p_path, 0, strlen($p_path)-1);
3299
      }
3300
    }
3301
3302
    // ----- Look for path to remove format (should end by /)

src/wp-includes/class-phpmailer.php 1 location

@@ 3853-3855 (lines=3) @@
3850
        $body = str_replace("\r\n", "\n", $body);
3851
        $body = str_replace("\n", "\r\n", $body);
3852
        // END stabilize line endings
3853
        while (substr($body, strlen($body) - 4, 4) == "\r\n\r\n") {
3854
            $body = substr($body, 0, strlen($body) - 2);
3855
        }
3856
        return $body;
3857
    }
3858