Skip to content

Commit 3e243f1

Browse files
authored
Merge pull request #31 from JBlond/development
Development
2 parents 926bd61 + 8c2c88a commit 3e243f1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

LICENSE

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Copyright (c) 2009 Chris Boulton <[email protected]>
2-
Copyright (c) 2015 Mario Brandt <[email protected]>
2+
Copyright (c) 2020 Mario Brandt <[email protected]>
3+
Copyright (c) 2020 Ferry Cools <[email protected]>
4+
35
All rights reserved.
46

57
Redistribution and use in source and binary forms, with or without

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ composer require jblond/php-diff
2727

2828
```PHP
2929
<?php
30+
use jblond\Autoloader;
31+
use jblond\Diff;
32+
use jblond\Diff\Renderer\Html\SideBySide;
33+
3034
// Installed via composer...
3135
require 'vendor/autoload.php';
3236
// ...or installed manually.
3337
require dirname(__FILE__).'/../lib/Autoloader.php';
3438

35-
new \jblond\Autoloader();
39+
new Autoloader();
3640

3741
$a = file_get_contents(dirname(__FILE__).'/a.txt');
3842
$b = file_get_contents(dirname(__FILE__).'/b.txt');
@@ -45,10 +49,10 @@ $options = [
4549
];
4650

4751
// Initialize the diff class.
48-
$diff = new \jblond\Diff($a, $b /*, $options */);
52+
$diff = new Diff($a, $b /*, $options */);
4953

5054
// Choose Renderer.
51-
$renderer = new \jblond\Diff\Renderer\Html\SideBySide([
55+
$renderer = new SideBySide([
5256
'title1' => 'Custom title for OLD version',
5357
'title2' => 'Custom title for NEW version',
5458
]);

0 commit comments

Comments
 (0)