Файловый менеджер - Редактировать - /home/avadvi5/calendar.aeronextgen.com/diff.zip
Ðазад
PK �n�\�Zx x README.mdnu �[��� [](https://packagist.org/packages/sebastian/diff) [](https://github.com/sebastianbergmann/diff/actions) [](https://shepherd.dev/github/sebastianbergmann/diff) [](https://codecov.io/gh/sebastianbergmann/diff) # sebastian/diff Diff implementation for PHP, factored out of PHPUnit into a stand-alone component. ## Installation You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): ``` composer require sebastian/diff ``` If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: ``` composer require --dev sebastian/diff ``` ### Usage #### Generating diff The `Differ` class can be used to generate a textual representation of the difference between two strings: ```php <?php use SebastianBergmann\Diff\Differ; $differ = new Differ; print $differ->diff('foo', 'bar'); ``` The code above yields the output below: ```diff --- Original +++ New @@ @@ -foo +bar ``` There are three output builders available in this package: #### UnifiedDiffOutputBuilder This is default builder, which generates the output close to udiff and is used by PHPUnit. ```php <?php use SebastianBergmann\Diff\Differ; use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder; $builder = new UnifiedDiffOutputBuilder( "--- Original\n+++ New\n", // custom header false // do not add line numbers to the diff ); $differ = new Differ($builder); print $differ->diff('foo', 'bar'); ``` #### StrictUnifiedDiffOutputBuilder Generates (strict) Unified diff's (unidiffs) with hunks, similar to `diff -u` and compatible with `patch` and `git apply`. ```php <?php use SebastianBergmann\Diff\Differ; use SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilder; $builder = new StrictUnifiedDiffOutputBuilder([ 'collapseRanges' => true, // ranges of length one are rendered with the trailing `,1` 'commonLineThreshold' => 6, // number of same lines before ending a new hunk and creating a new one (if needed) 'contextLines' => 3, // like `diff: -u, -U NUM, --unified[=NUM]`, for patch/git apply compatibility best to keep at least @ 3 'fromFile' => '', 'fromFileDate' => null, 'toFile' => '', 'toFileDate' => null, ]); $differ = new Differ($builder); print $differ->diff('foo', 'bar'); ``` #### DiffOnlyOutputBuilder Output only the lines that differ. ```php <?php use SebastianBergmann\Diff\Differ; use SebastianBergmann\Diff\Output\DiffOnlyOutputBuilder; $builder = new DiffOnlyOutputBuilder( "--- Original\n+++ New\n" ); $differ = new Differ($builder); print $differ->diff('foo', 'bar'); ``` #### DiffOutputBuilderInterface You can pass any output builder to the `Differ` class as longs as it implements the `DiffOutputBuilderInterface`. #### Parsing diff The `Parser` class can be used to parse a unified diff into an object graph: ```php use SebastianBergmann\Diff\Parser; use SebastianBergmann\Git; $git = new Git('/usr/local/src/money'); $diff = $git->getDiff( '948a1a07768d8edd10dcefa8315c1cbeffb31833', 'c07a373d2399f3e686234c4f7f088d635eb9641b' ); $parser = new Parser; print_r($parser->parse($diff)); ``` The code above yields the output below: Array ( [0] => SebastianBergmann\Diff\Diff Object ( [from:SebastianBergmann\Diff\Diff:private] => a/tests/MoneyTest.php [to:SebastianBergmann\Diff\Diff:private] => b/tests/MoneyTest.php [chunks:SebastianBergmann\Diff\Diff:private] => Array ( [0] => SebastianBergmann\Diff\Chunk Object ( [start:SebastianBergmann\Diff\Chunk:private] => 87 [startRange:SebastianBergmann\Diff\Chunk:private] => 7 [end:SebastianBergmann\Diff\Chunk:private] => 87 [endRange:SebastianBergmann\Diff\Chunk:private] => 7 [lines:SebastianBergmann\Diff\Chunk:private] => Array ( [0] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 3 [content:SebastianBergmann\Diff\Line:private] => * @covers SebastianBergmann\Money\Money::add ) [1] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 3 [content:SebastianBergmann\Diff\Line:private] => * @covers SebastianBergmann\Money\Money::newMoney ) [2] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 3 [content:SebastianBergmann\Diff\Line:private] => */ ) [3] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 2 [content:SebastianBergmann\Diff\Line:private] => public function testAnotherMoneyWithSameCurrencyObjectCanBeAdded() ) [4] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 1 [content:SebastianBergmann\Diff\Line:private] => public function testAnotherMoneyObjectWithSameCurrencyCanBeAdded() ) [5] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 3 [content:SebastianBergmann\Diff\Line:private] => { ) [6] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 3 [content:SebastianBergmann\Diff\Line:private] => $a = new Money(1, new Currency('EUR')); ) [7] => SebastianBergmann\Diff\Line Object ( [type:SebastianBergmann\Diff\Line:private] => 3 [content:SebastianBergmann\Diff\Line:private] => $b = new Money(2, new Currency('EUR')); ) ) ) ) ) ) Note: If the chunk size is 0 lines, i.e., `getStartRange()` or `getEndRange()` return 0, the number of line returned by `getStart()` or `getEnd()` is one lower than one would expect. It is the line number after which the chunk should be inserted or deleted; in all other cases, it gives the first line number of the replaced range of lines. PK �n�\�ܡ7� � LICENSEnu �[��� BSD 3-Clause License Copyright (c) 2002-2024, Sebastian Bergmann All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PK �n�\��A ChangeLog.mdnu �[��� # ChangeLog All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. ## [5.1.1] - 2024-03-02 ### Changed * Do not use implicitly nullable parameters ## [5.1.0] - 2023-12-22 ### Added * `SebastianBergmann\Diff\Chunk::start()`, `SebastianBergmann\Diff\Chunk::startRange()`, `SebastianBergmann\Diff\Chunk::end()`, `SebastianBergmann\Diff\Chunk::endRange()`, and `SebastianBergmann\Diff\Chunk::lines()` * `SebastianBergmann\Diff\Diff::from()`, `SebastianBergmann\Diff\Diff::to()`, and `SebastianBergmann\Diff\Diff::chunks()` * `SebastianBergmann\Diff\Line::content()` and `SebastianBergmann\Diff\Diff::type()` * `SebastianBergmann\Diff\Line::isAdded()`,`SebastianBergmann\Diff\Line::isRemoved()`, and `SebastianBergmann\Diff\Line::isUnchanged()` ### Changed * `SebastianBergmann\Diff\Diff` now implements `IteratorAggregate`, iterating over it yields the aggregated `SebastianBergmann\Diff\Chunk` objects * `SebastianBergmann\Diff\Chunk` now implements `IteratorAggregate`, iterating over it yields the aggregated `SebastianBergmann\Diff\Line` objects ### Deprecated * `SebastianBergmann\Diff\Chunk::getStart()`, `SebastianBergmann\Diff\Chunk::getStartRange()`, `SebastianBergmann\Diff\Chunk::getEnd()`, `SebastianBergmann\Diff\Chunk::getEndRange()`, and `SebastianBergmann\Diff\Chunk::getLines()` * `SebastianBergmann\Diff\Diff::getFrom()`, `SebastianBergmann\Diff\Diff::getTo()`, and `SebastianBergmann\Diff\Diff::getChunks()` * `SebastianBergmann\Diff\Line::getContent()` and `SebastianBergmann\Diff\Diff::getType()` ## [5.0.3] - 2023-05-01 ### Changed * [#119](https://github.com/sebastianbergmann/diff/pull/119): Improve performance of `TimeEfficientLongestCommonSubsequenceCalculator` ## [5.0.2] - 2023-05-01 ### Changed * [#118](https://github.com/sebastianbergmann/diff/pull/118): Improve performance of `MemoryEfficientLongestCommonSubsequenceCalculator` ## [5.0.1] - 2023-03-23 ### Fixed * [#115](https://github.com/sebastianbergmann/diff/pull/115): `Parser::parseFileDiff()` does not handle diffs correctly that only add lines or only remove lines ## [5.0.0] - 2023-02-03 ### Changed * Passing a `DiffOutputBuilderInterface` instance to `Differ::__construct()` is no longer optional ### Removed * Removed support for PHP 7.3, PHP 7.4, and PHP 8.0 ## [4.0.4] - 2020-10-26 ### Fixed * `SebastianBergmann\Diff\Exception` now correctly extends `\Throwable` ## [4.0.3] - 2020-09-28 ### Changed * Changed PHP version constraint in `composer.json` from `^7.3 || ^8.0` to `>=7.3` ## [4.0.2] - 2020-06-30 ### Added * This component is now supported on PHP 8 ## [4.0.1] - 2020-05-08 ### Fixed * [#99](https://github.com/sebastianbergmann/diff/pull/99): Regression in unified diff output of identical strings ## [4.0.0] - 2020-02-07 ### Removed * Removed support for PHP 7.1 and PHP 7.2 ## [3.0.2] - 2019-02-04 ### Changed * `Chunk::setLines()` now ensures that the `$lines` array only contains `Line` objects ## [3.0.1] - 2018-06-10 ### Fixed * Removed `"minimum-stability": "dev",` from `composer.json` ## [3.0.0] - 2018-02-01 * The `StrictUnifiedDiffOutputBuilder` implementation of the `DiffOutputBuilderInterface` was added ### Changed * The default `DiffOutputBuilderInterface` implementation now generates context lines (unchanged lines) ### Removed * Removed support for PHP 7.0 ### Fixed * [#70](https://github.com/sebastianbergmann/diff/issues/70): Diffing of arrays no longer works ## [2.0.1] - 2017-08-03 ### Fixed * [#66](https://github.com/sebastianbergmann/diff/pull/66): Restored backwards compatibility for PHPUnit 6.1.4, 6.2.0, 6.2.1, 6.2.2, and 6.2.3 ## [2.0.0] - 2017-07-11 [YANKED] ### Added * [#64](https://github.com/sebastianbergmann/diff/pull/64): Show line numbers for chunks of a diff ### Removed * This component is no longer supported on PHP 5.6 [5.1.1]: https://github.com/sebastianbergmann/diff/compare/5.1.0...5.1.1 [5.1.0]: https://github.com/sebastianbergmann/diff/compare/5.0.3...5.1.0 [5.0.3]: https://github.com/sebastianbergmann/diff/compare/5.0.2...5.0.3 [5.0.2]: https://github.com/sebastianbergmann/diff/compare/5.0.1...5.0.2 [5.0.1]: https://github.com/sebastianbergmann/diff/compare/5.0.0...5.0.1 [5.0.0]: https://github.com/sebastianbergmann/diff/compare/4.0.4...5.0.0 [4.0.4]: https://github.com/sebastianbergmann/diff/compare/4.0.3...4.0.4 [4.0.3]: https://github.com/sebastianbergmann/diff/compare/4.0.2...4.0.3 [4.0.2]: https://github.com/sebastianbergmann/diff/compare/4.0.1...4.0.2 [4.0.1]: https://github.com/sebastianbergmann/diff/compare/4.0.0...4.0.1 [4.0.0]: https://github.com/sebastianbergmann/diff/compare/3.0.2...4.0.0 [3.0.2]: https://github.com/sebastianbergmann/diff/compare/3.0.1...3.0.2 [3.0.1]: https://github.com/sebastianbergmann/diff/compare/3.0.0...3.0.1 [3.0.0]: https://github.com/sebastianbergmann/diff/compare/2.0...3.0.0 [2.0.1]: https://github.com/sebastianbergmann/diff/compare/c341c98ce083db77f896a0aa64f5ee7652915970...2.0.1 [2.0.0]: https://github.com/sebastianbergmann/diff/compare/1.4...c341c98ce083db77f896a0aa64f5ee7652915970 PK �n�\u�\�g g src/error_lognu �[��� [10-Apr-2025 21:07:08 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php on line 17 [11-Apr-2025 08:12:37 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [19-Apr-2025 17:30:29 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [19-Apr-2025 22:08:29 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php on line 17 [22-Apr-2025 04:11:08 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [22-Apr-2025 09:51:39 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php on line 17 [27-Apr-2025 19:01:58 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [28-Apr-2025 16:09:55 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php on line 17 [30-Apr-2025 02:30:08 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [12-May-2025 19:21:37 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [12-May-2025 23:46:55 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php on line 17 [14-May-2025 01:02:12 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php:20 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/MemoryEfficientLongestCommonSubsequenceCalculator.php on line 20 [14-May-2025 01:22:49 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\LongestCommonSubsequenceCalculator" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/TimeEfficientLongestCommonSubsequenceCalculator.php on line 17 PK �n�\����i i src/Exception/error_lognu �[��� [13-Apr-2025 18:35:20 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 [13-Apr-2025 20:51:41 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [19-Apr-2025 12:47:09 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 [19-Apr-2025 16:02:45 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [24-Apr-2025 23:44:49 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 [25-Apr-2025 07:58:49 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [30-Apr-2025 11:39:20 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 [30-Apr-2025 11:42:26 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [30-Apr-2025 12:18:24 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 [30-Apr-2025 14:28:03 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [13-May-2025 10:48:39 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 [13-May-2025 11:03:27 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [14-May-2025 01:26:40 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Exception" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php:12 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/InvalidArgumentException.php on line 12 [14-May-2025 01:47:59 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\InvalidArgumentException" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php:17 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Exception/ConfigurationException.php on line 17 PK �n�\�>fa a src/Exception/Exception.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/diff. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Diff; use Throwable; interface Exception extends Throwable { } PK �n�\�)�� � ( src/Exception/ConfigurationException.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/diff. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Diff; use function gettype; use function is_object; use function sprintf; use Exception; final class ConfigurationException extends InvalidArgumentException { public function __construct( string $option, string $expected, $value, int $code = 0, ?Exception $previous = null ) { parent::__construct( sprintf( 'Option "%s" must be %s, got "%s".', $option, $expected, is_object($value) ? $value::class : (null === $value ? '<null>' : gettype($value) . '#' . $value), ), $code, $previous, ); } } PK �n�\L}f� � * src/Exception/InvalidArgumentException.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/diff. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Diff; class InvalidArgumentException extends \InvalidArgumentException implements Exception { } PK �n�\�M'1 1 $ src/Output/DiffOnlyOutputBuilder.phpnu �[��� <?php declare(strict_types=1); /* * This file is part of sebastian/diff. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Diff\Output; use function fclose; use function fopen; use function fwrite; use function str_ends_with; use function stream_get_contents; use function substr; use SebastianBergmann\Diff\Differ; /** * Builds a diff string representation in a loose unified diff format * listing only changes lines. Does not include line numbers. */ final class DiffOnlyOutputBuilder implements DiffOutputBuilderInterface { private string $header; public function __construct(string $header = "--- Original\n+++ New\n") { $this->header = $header; } public function getDiff(array $diff): string { $buffer = fopen('php://memory', 'r+b'); if ('' !== $this->header) { fwrite($buffer, $this->header); if (!str_ends_with($this->header, "\n")) { fwrite($buffer, "\n"); } } foreach ($diff as $diffEntry) { if ($diffEntry[1] === Differ::ADDED) { fwrite($buffer, '+' . $diffEntry[0]); } elseif ($diffEntry[1] === Differ::REMOVED) { fwrite($buffer, '-' . $diffEntry[0]); } elseif ($diffEntry[1] === Differ::DIFF_LINE_END_WARNING) { fwrite($buffer, ' ' . $diffEntry[0]); continue; // Warnings should not be tested for line break, it will always be there } else { /* Not changed (old) 0 */ continue; // we didn't write the not-changed line, so do not add a line break either } $lc = substr($diffEntry[0], -1); if ($lc !== "\n" && $lc !== "\r") { fwrite($buffer, "\n"); // \No newline at end of file } } $diff = stream_get_contents($buffer, -1, 0); fclose($buffer); return $diff; } } PK �n�\%44+ + src/Output/error_lognu �[��� [13-Apr-2025 16:48:36 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php:24 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php on line 24 [13-Apr-2025 18:31:26 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 [13-Apr-2025 18:36:49 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [13-Apr-2025 21:34:39 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [22-Apr-2025 03:14:02 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [22-Apr-2025 03:59:25 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 [22-Apr-2025 04:44:05 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php:24 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php on line 24 [22-Apr-2025 11:17:36 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [24-Apr-2025 22:25:03 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [25-Apr-2025 05:09:43 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 [25-Apr-2025 05:38:32 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [25-Apr-2025 07:09:41 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php:24 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php on line 24 [30-Apr-2025 11:39:20 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 [30-Apr-2025 11:39:20 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [30-Apr-2025 11:39:21 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php:24 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php on line 24 [30-Apr-2025 11:39:21 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [30-Apr-2025 16:17:41 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [30-Apr-2025 17:52:52 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php:24 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php on line 24 [30-Apr-2025 19:14:16 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 [30-Apr-2025 19:14:51 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [13-May-2025 11:00:26 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [13-May-2025 11:00:52 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [13-May-2025 11:02:33 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php:24 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/DiffOnlyOutputBuilder.php on line 24 [13-May-2025 11:03:43 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 [14-May-2025 00:45:49 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php:14 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/AbstractChunkOutputBuilder.php on line 14 [14-May-2025 00:57:06 UTC] PHP Fatal error: Uncaught Error: Interface "SebastianBergmann\Diff\Output\DiffOutputBuilderInterface" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php:34 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/StrictUnifiedDiffOutputBuilder.php on line 34 [14-May-2025 01:38:52 UTC] PHP Fatal error: Uncaught Error: Class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder" not found in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php:27 Stack trace: #0 {main} thrown in /home/avadvi5/calendar.aeronextgen.com/davis/vendor/sebastian/diff/src/Output/UnifiedDiffOutputBuilder.php on line 27 PK �n�\�s� � '