@@ -48,8 +46,14 @@ public function __construct($from_lines, $to_lines) {
* $rev = $diff->reverse();
* @return object
* A Diff object representing the inverse of the original diff.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
publicfunctionreverse(){
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
$rev=$this;
$rev->edits=[];
foreach($this->editsas$edit){
@@ -62,8 +66,14 @@ public function reverse() {
* Check for empty diff.
*
* @return bool True iff two sequences were identical.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
publicfunctionisEmpty(){
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
foreach($this->editsas$edit){
if($edit->type!='copy'){
returnFALSE;
@@ -78,8 +88,14 @@ public function isEmpty() {
* This is mostly for diagnostic purposed.
*
* @return int The length of the LCS.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
publicfunctionlcs(){
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
$lcs=0;
foreach($this->editsas$edit){
if($edit->type=='copy'){
@@ -96,8 +112,14 @@ public function lcs() {
* constructor.
*
* @return array The original sequence of strings.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
publicfunctionorig(){
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
$lines=[];
foreach($this->editsas$edit){
@@ -115,8 +137,14 @@ public function orig() {
* constructor.
*
* @return array The sequence of strings.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
publicfunctionclosing(){
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
$lines=[];
foreach($this->editsas$edit){
@@ -131,8 +159,14 @@ public function closing() {
* Check a Diff for validity.
*
* This is here only for debugging purposes.
*
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
publicfunctioncheck($from_lines,$to_lines){
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);