public function setOldName($old_name)
public function setOldName($old_name)
Set the name to identify the old file with. Primarily cosmetic.
Parameters
string | $old_name | Old file name. |
Return
this |
public function setNewName($new_name)
public function setNewName($new_name)
Set the name to identify the new file with. Primarily cosmetic.
Parameters
string | $new_name | New file name. |
Return
this |
public function setNormalize($normalize)
public function setNormalize($normalize)
Parameters
$normalize |
Return
wild |
public function getNormalize()
public function getNormalize()
Return
wild |
public function generateRawDiffFromFileContent($old, $new)
public function generateRawDiffFromFileContent($old, $new)
Generate a raw diff from two raw files. This is a lower-level API than generateChangesetFromFileContent(), but may be useful if you need to use a custom parser configuration, as with Diffusion.
Parameters
string | $old | Entire previous file content. |
string | $new | Entire current file content. |
Return
string | Raw diff between the two files. |
public function generateChangesetFromFileContent($old, $new)
public function generateChangesetFromFileContent($old, $new)
Generate an DifferentialChangeset from two raw files. This is principally useful because you can feed the output to DifferentialChangesetParser in order to render it.
Parameters
string | $old | Entire previous file content. |
string | $new | Entire current file content. |
Return
@{class:DifferentialChangeset} | Synthetic changeset. |
private function normalizeFile($corpus)
private function normalizeFile($corpus)
Parameters
$corpus |
Return
wild |