src/Patch.php
protected  function deepCopy($patches)
    {
        $patchesCopy = array();
        foreach ($patches as $patch) {
            $patchCopy = clone $patch;
            $patchesCopy[] = $patchCopy;
        }
        return $patchesCopy;
    }
protected  function deepCopy($patches)
    {
        $patchesCopy = array();
        foreach ($patches as $patch) {
            $patchCopy = clone $patch;
            $patchesCopy[] = $patchCopy;
        }
        return $patchesCopy;
    }
Given an array of patches, return another array that is identical.

@param PatchObject[] $patches Array of PatchObjects.

@return PatchObject[] Array of PatchObjects.