Refactor diffs
authorMax Semenik <maxsem.wiki@gmail.com>
Tue, 29 Oct 2013 22:25:28 +0000 (02:25 +0400)
committerMax Semenik <maxsem.wiki@gmail.com>
Wed, 30 Oct 2013 17:40:06 +0000 (21:40 +0400)
commitc37b4dc96418faffc7db5e78f79dc762cb83fb0c
treeafb10f2875ad1125535955156b9549e92629b526
parent0732467b6de636ed928cf590f7a37e0d8ddb378c
Refactor diffs

* Move some classes to separate files to avoid having a monstrous file with a
  dozen classes.
* Remove weird underscores from class names.
* Instead of prefixing members with underscores, specify visibility explicitly.
* Rename c_style -> camelCase per coding conventions.
* Throw exceptions instead of fataling out with trigger_error().
* Remove pointless constant used only once.

Change-Id: Icac23c0f6259c73f5fe07f201b83b9c332ba0469
includes/AutoLoader.php
includes/diff/ArrayDiffFormatter.php [new file with mode: 0644]
includes/diff/DairikiDiff.php
includes/diff/DiffFormatter.php [new file with mode: 0644]
includes/diff/TableDiffFormatter.php [new file with mode: 0644]
includes/diff/UnifiedDiffFormatter.php [new file with mode: 0644]