src/DiffMatchPatch.php
public function patch_make($a, $b = null, $c = null)
    {
        return $this->patch->make($a, $b, $c);
    }
public function patch_make($a, $b = null, $c = null)
    {
        return $this->patch->make($a, $b, $c);
    }
Compute a list of patches to turn text1 into text2.
Use diffs if provided, otherwise compute it ourselves.
There are four ways to call this function, depending on what data is
available to the caller:
Method 1:
a = text1, b = text2
Method 2:
a = diffs
Method 3 (optimal):
a = text1, b = diffs
Method 4 (deprecated, use method 3):
a = text1, b = text2, c = diffs

@param string|array      $a text1 (methods 1,3,4) or Array of diff arrays for text1 to text2 (method 2).
@param string|array|null $b text2 (methods 1,4) or Array of diff arrays for text1 to text2 (method 3)
or null (method 2).
@param array|null        $c Array of diff arrays for text1 to text2 (method 4) or null (methods 1,2,3).

@throws \InvalidArgumentException If unknown call format.
@return PatchObject[] Array of PatchObjects.