File tree Expand file tree Collapse file tree 5 files changed +95
-101
lines changed Expand file tree Collapse file tree 5 files changed +95
-101
lines changed Original file line number Diff line number Diff line change 10
10
* PHP version 7.2 or greater
11
11
*
12
12
* @package jblond
13
- * @author Chris Boulton <chris.boulton@interspire.com >
14
- * @copyright (c) 2009 Chris Boulton
13
+ * @author Mario Brandt <leet31337@web.de >
14
+ * @copyright (c) 2015 Mario Brandt
15
15
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
16
16
* @version 1.16
17
17
* @link https://github.com/JBlond/php-diff
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public function render(object $renderer)
186
186
* End of the range is defined by the second parameter.
187
187
*
188
188
* If the arguments for both parameters are omitted, the entire array will be returned.
189
- * If the argument for the second parameter is ommitted , the element defined as start will be returned.
189
+ * If the argument for the second parameter is omitted , the element defined as start will be returned.
190
190
*
191
191
* @param array $array The source array.
192
192
* @param int $start The first element of the range to get.
Original file line number Diff line number Diff line change @@ -30,23 +30,23 @@ abstract class RendererAbstract
30
30
/**
31
31
* @var array Array of the default options that apply to this renderer.
32
32
*/
33
- protected $ defaultOptions = array (
33
+ protected $ defaultOptions = [
34
34
'title1 ' => 'Version1 ' ,
35
35
'title2 ' => 'Version2 ' ,
36
- ) ;
36
+ ] ;
37
37
38
38
/**
39
39
* @var array Array containing the user applied and merged default options for the renderer.
40
40
*/
41
- protected $ options = array () ;
41
+ protected $ options = [] ;
42
42
43
43
/**
44
44
* The constructor. Instantiates the rendering engine and if options are passed,
45
45
* sets the options for the renderer.
46
46
*
47
47
* @param array $options Optionally, an array of the options for the renderer.
48
48
*/
49
- public function __construct (array $ options = array () )
49
+ public function __construct (array $ options = [] )
50
50
{
51
51
$ this ->setOptions ($ options );
52
52
}
You can’t perform that action at this time.
0 commit comments