File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
Copyright (c) 2009 Chris Boulton <chris.boulton@interspire.com>
2
- Copyright (c) 2015 Mario Brandt <leet31337@web.de>
2
+ Copyright (c) 2020 Mario Brandt <leet31337@web.de>
3
+ Copyright (c) 2020 Ferry Cools <info@DigiLive.nl>
4
+
3
5
All rights reserved.
4
6
5
7
Redistribution and use in source and binary forms, with or without
Original file line number Diff line number Diff line change @@ -27,12 +27,16 @@ composer require jblond/php-diff
27
27
28
28
``` PHP
29
29
<?php
30
+ use jblond\Autoloader;
31
+ use jblond\Diff;
32
+ use jblond\Diff\Renderer\Html\SideBySide;
33
+
30
34
// Installed via composer...
31
35
require 'vendor/autoload.php';
32
36
// ...or installed manually.
33
37
require dirname(__FILE__).'/../lib/Autoloader.php';
34
38
35
- new \jblond\ Autoloader();
39
+ new Autoloader();
36
40
37
41
$a = file_get_contents(dirname(__FILE__).'/a.txt');
38
42
$b = file_get_contents(dirname(__FILE__).'/b.txt');
@@ -45,10 +49,10 @@ $options = [
45
49
];
46
50
47
51
// Initialize the diff class.
48
- $diff = new \jblond\ Diff($a, $b /*, $options */);
52
+ $diff = new Diff($a, $b /*, $options */);
49
53
50
54
// Choose Renderer.
51
- $renderer = new \jblond\Diff\Renderer\Html\ SideBySide([
55
+ $renderer = new SideBySide([
52
56
'title1' => 'Custom title for OLD version',
53
57
'title2' => 'Custom title for NEW version',
54
58
]);
You can’t perform that action at this time.
0 commit comments