Skip to content

Commit 70fd0e3

Browse files
authored
Merge pull request #10 from JBlond/development
Development
2 parents 7c62963 + 5231883 commit 70fd0e3

File tree

10 files changed

+21
-49
lines changed

10 files changed

+21
-49
lines changed

README.md

+3-32
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Example Use
2424
A quick usage example can be found in the example/ directory and under
2525
example.php.
2626

27-
![Example Image](https://github.com/jblond/php-diff/raw/master/readme.png "Example")
27+
![Example Image](readme.png "Example")
2828

29-
![Example 2 Image](https://github.com/jblond/php-diff/raw/master/readme2.png "Example2")
29+
![Example 2 Image](readme2.png "Example2")
3030

3131
Requirements
3232
-----------
@@ -54,34 +54,5 @@ Contributors since I forked the repo.
5454

5555
License (BSD License)
5656
---------------------
57-
Copyright (c) 2009 Chris Boulton <[email protected]>
5857

59-
Copyright (c) 2015 Mario Brandt <[email protected]>
60-
61-
All rights reserved.
62-
63-
Redistribution and use in source and binary forms, with or without
64-
modification, are permitted provided that the following conditions are met:
65-
66-
- Redistributions of source code must retain the above copyright notice,
67-
this list of conditions and the following disclaimer.
68-
- Redistributions in binary form must reproduce the above copyright notice,
69-
this list of conditions and the following disclaimer in the documentation
70-
and/or other materials provided with the distribution.
71-
- Neither the name of the Chris Boulton nor the names of its contributors
72-
may be used to endorse or promote products derived from this software
73-
without specific prior written permission.
74-
75-
```
76-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
77-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
78-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
79-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
80-
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
81-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
82-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
83-
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
84-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
85-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
86-
POSSIBILITY OF SUCH DAMAGE.
87-
```
58+
see [License](LICENSE)

lib/jblond/Diff.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* A comprehensive library for generating differences between two strings
1111
* in multiple formats (unified, side by side HTML etc)
1212
*
13-
* PHP version 5
13+
* PHP version 7.1 or greater
1414
*
1515
* Copyright (c) 2009 Chris Boulton <[email protected]>
1616
*
@@ -44,7 +44,7 @@
4444
* @author Chris Boulton <[email protected]>
4545
* @copyright (c) 2009 Chris Boulton
4646
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
47-
* @version 1.6
47+
* @version 1.8
4848
* @link https://github.com/JBlond/php-diff
4949
*/
5050
class Diff

lib/jblond/Diff/Renderer/Html/HtmlArray.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Base renderer for rendering HTML based diffs for PHP DiffLib.
99
*
10-
* PHP version 5
10+
* PHP version 7.1 or greater
1111
*
1212
* Copyright (c) 2009 Chris Boulton <[email protected]>
1313
*
@@ -41,7 +41,7 @@
4141
* @author Chris Boulton <[email protected]>
4242
* @copyright (c) 2009 Chris Boulton
4343
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
44-
* @version 1.6
44+
* @version 1.8
4545
* @link https://github.com/JBlond/php-diff
4646
*/
4747

lib/jblond/Diff/Renderer/Html/Inline.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Inline HTML diff generator for PHP DiffLib.
77
*
8-
* PHP version 5
8+
* PHP version 7.1 or greater
99
*
1010
* Copyright (c) 2009 Chris Boulton <[email protected]>
1111
*
@@ -39,7 +39,7 @@
3939
* @author Chris Boulton <[email protected]>
4040
* @copyright (c) 2009 Chris Boulton
4141
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
42-
* @version 1.6
42+
* @version 1.8
4343
* @link https://github.com/JBlond/php-diff
4444
*/
4545

lib/jblond/Diff/Renderer/Html/SideBySide.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Side by Side HTML diff generator for PHP DiffLib.
77
*
8-
* PHP version 5
8+
* PHP version 7.1 or greater
99
*
1010
* Copyright (c) 2009 Chris Boulton <[email protected]>
1111
*
@@ -39,7 +39,7 @@
3939
* @author Chris Boulton <[email protected]>
4040
* @copyright (c) 2009 Chris Boulton
4141
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
42-
* @version 1.6
42+
* @version 1.8
4343
* @link https://github.com/JBlond/php-diff
4444
*/
4545

lib/jblond/Diff/Renderer/RendererAbstract.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Abstract class for diff renderers in PHP DiffLib.
77
*
8-
* PHP version 5
8+
* PHP version 7.1 or greater
99
*
1010
* Copyright (c) 2009 Chris Boulton <[email protected]>
1111
*
@@ -39,7 +39,7 @@
3939
* @author Chris Boulton <[email protected]>
4040
* @copyright (c) 2009 Chris Boulton
4141
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
42-
* @version 1.6
42+
* @version 1.8
4343
* @link https://github.com/JBlond/php-diff
4444
*/
4545
abstract class RendererAbstract

lib/jblond/Diff/Renderer/Text/Context.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Context diff generator for PHP DiffLib.
99
*
10-
* PHP version 5
10+
* PHP version 7.1 or greater
1111
*
1212
* Copyright (c) 2009 Chris Boulton <[email protected]>
1313
*
@@ -41,7 +41,7 @@
4141
* @author Chris Boulton <[email protected]>
4242
* @copyright (c) 2009 Chris Boulton
4343
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
44-
* @version 1.6
44+
* @version 1.8
4545
* @link https://github.com/JBlond/php-diff
4646
*/
4747

lib/jblond/Diff/Renderer/Text/Unified.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Unified diff generator for PHP DiffLib.
99
*
10-
* PHP version 5
10+
* PHP version 7.1 or greater
1111
*
1212
* Copyright (c) 2009 Chris Boulton <[email protected]>
1313
*
@@ -41,7 +41,7 @@
4141
* @author Chris Boulton <[email protected]>
4242
* @copyright (c) 2009 Chris Boulton
4343
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
44-
* @version 1.6
44+
* @version 1.8
4545
* @link https://github.com/JBlond/php-diff
4646
*/
4747

lib/jblond/Diff/SequenceMatcher.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Sequence matcher for Diff
77
*
8-
* PHP version 5
8+
* PHP version 7.1 or greater
99
*
1010
* Copyright (c) 2009 Chris Boulton <[email protected]>
1111
*
@@ -39,7 +39,7 @@
3939
* @author Chris Boulton <[email protected]>
4040
* @copyright (c) 2009 Chris Boulton
4141
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
42-
* @version 1.6
42+
* @version 1.8
4343
* @link https://github.com/JBlond/php-diff
4444
*/
4545
class SequenceMatcher

tests/Diff/Renderer/ArrayTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
use jblond\Diff\Renderer\Html\HtmlArray;
66
use PHPUnit\Framework\TestCase;
77

8+
require "../../../lib/Autoloader.php";
9+
810
/**
911
* Class ArrayTest
1012
* @package Tests\Diff\Renderer\Html
@@ -20,7 +22,6 @@ class ArrayTest extends TestCase
2022
*/
2123
public function __construct($name = null, array $data = [], $dataName = '')
2224
{
23-
require "../../../lib/Autoloader.php";
2425
new \jblond\Autoloader();
2526
parent::__construct($name, $data, $dataName);
2627
}

0 commit comments

Comments
 (0)