php-diff
php-diff copied to clipboard
A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc). Based on the difflib implementation in Python
When I try to invoke `composer install` on the newly cloned project, I get the following error-message: ``` [Composer\Json\JsonValidationException] "./composer.json" does not match the expected JSON schema: - authors[0].email :...
The code tries to replace multiple spaces with "nbsp; " and "nbsp;" depending on whether it is odd or even. The original preg_replace is only capturing the trailing spaces, but...
Could you configure this package in packagist. It is added, but i can't download it. I think that the problem is in source link.
There are two commits: first - remove uneeded /span tag second - addede utf-8 string correct handling. I add as function. But if you want then I can restyle or...
Fix warning with PHP 7.2 when trying to count NULL. Initializing the variables to an empty array avoids the warning and yields the same behavior.
[](https://reviewable.io/reviews/chrisboulton/php-diff/17)
The replace strings only hold the full set string, with this change the string location for the changes is stored on the array and can be used without the html...
When looking at the Side by Side diff, it shows me something like: --- 1 2 3 4 5 6 … 54 55 56 --- You can see it "compacted"...
I use this script recursively on several files, all good except when I create a new file, this one does not appear because there is no file to create a...