Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib/Diff/Renderer
File: Abstract.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Abstract class for diff renderers in PHP DiffLib.
[2] Fix | Delete
*
[3] Fix | Delete
* PHP version 5
[4] Fix | Delete
*
[5] Fix | Delete
* Copyright (c) 2009 Chris Boulton <chris.boulton@interspire.com>
[6] Fix | Delete
*
[7] Fix | Delete
* All rights reserved.
[8] Fix | Delete
*
[9] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[10] Fix | Delete
* modification, are permitted provided that the following conditions are met:
[11] Fix | Delete
*
[12] Fix | Delete
* - Redistributions of source code must retain the above copyright notice,
[13] Fix | Delete
* this list of conditions and the following disclaimer.
[14] Fix | Delete
* - Redistributions in binary form must reproduce the above copyright notice,
[15] Fix | Delete
* this list of conditions and the following disclaimer in the documentation
[16] Fix | Delete
* and/or other materials provided with the distribution.
[17] Fix | Delete
* - Neither the name of the Chris Boulton nor the names of its contributors
[18] Fix | Delete
* may be used to endorse or promote products derived from this software
[19] Fix | Delete
* without specific prior written permission.
[20] Fix | Delete
*
[21] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
[22] Fix | Delete
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[23] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[24] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
[25] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[26] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
[27] Fix | Delete
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
[28] Fix | Delete
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
[29] Fix | Delete
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
[30] Fix | Delete
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
[31] Fix | Delete
* POSSIBILITY OF SUCH DAMAGE.
[32] Fix | Delete
*
[33] Fix | Delete
* @package DiffLib
[34] Fix | Delete
* @author Chris Boulton <chris.boulton@interspire.com>
[35] Fix | Delete
* @copyright (c) 2009 Chris Boulton
[36] Fix | Delete
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
[37] Fix | Delete
* @version 1.1
[38] Fix | Delete
* @link http://github.com/chrisboulton/php-diff
[39] Fix | Delete
*/
[40] Fix | Delete
[41] Fix | Delete
abstract class Diff_Renderer_Abstract
[42] Fix | Delete
{
[43] Fix | Delete
/**
[44] Fix | Delete
* @var object Instance of the diff class that this renderer is generating the rendered diff for.
[45] Fix | Delete
*/
[46] Fix | Delete
public $diff;
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* @var array Array of the default options that apply to this renderer.
[50] Fix | Delete
*/
[51] Fix | Delete
protected $defaultOptions = array();
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* @var array Array containing the user applied and merged default options for the renderer.
[55] Fix | Delete
*/
[56] Fix | Delete
protected $options = array();
[57] Fix | Delete
[58] Fix | Delete
/**
[59] Fix | Delete
* The constructor. Instantiates the rendering engine and if options are passed,
[60] Fix | Delete
* sets the options for the renderer.
[61] Fix | Delete
*
[62] Fix | Delete
* @param array $options Optionally, an array of the options for the renderer.
[63] Fix | Delete
*/
[64] Fix | Delete
public function __construct(array $options = array())
[65] Fix | Delete
{
[66] Fix | Delete
$this->setOptions($options);
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* Set the options of the renderer to those supplied in the passed in array.
[71] Fix | Delete
* Options are merged with the default to ensure that there aren't any missing
[72] Fix | Delete
* options.
[73] Fix | Delete
*
[74] Fix | Delete
* @param array $options Array of options to set.
[75] Fix | Delete
*/
[76] Fix | Delete
public function setOptions(array $options)
[77] Fix | Delete
{
[78] Fix | Delete
$this->options = array_merge($this->defaultOptions, $options);
[79] Fix | Delete
}
[80] Fix | Delete
}
[81] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function