Skip to content

Development #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* PHP version 7.2 or greater
*
* @package jblond
* @author Chris Boulton <[email protected]>
* @copyright (c) 2009 Chris Boulton
* @author Mario Brandt <[email protected]>
* @copyright (c) 2015 Mario Brandt
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
* @version 1.16
* @link https://github.com/JBlond/php-diff
Expand Down
2 changes: 1 addition & 1 deletion lib/jblond/Diff.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function render(object $renderer)
* End of the range is defined by the second parameter.
*
* If the arguments for both parameters are omitted, the entire array will be returned.
* If the argument for the second parameter is ommitted, the element defined as start will be returned.
* If the argument for the second parameter is omitted, the element defined as start will be returned.
*
* @param array $array The source array.
* @param int $start The first element of the range to get.
Expand Down
8 changes: 4 additions & 4 deletions lib/jblond/Diff/Renderer/RendererAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ abstract class RendererAbstract
/**
* @var array Array of the default options that apply to this renderer.
*/
protected $defaultOptions = array(
protected $defaultOptions = [
'title1' => 'Version1',
'title2' => 'Version2',
);
];

/**
* @var array Array containing the user applied and merged default options for the renderer.
*/
protected $options = array();
protected $options = [];

/**
* The constructor. Instantiates the rendering engine and if options are passed,
* sets the options for the renderer.
*
* @param array $options Optionally, an array of the options for the renderer.
*/
public function __construct(array $options = array())
public function __construct(array $options = [])
{
$this->setOptions($options);
}
Expand Down
Loading