Changeset 42027 for trunk/src/wp-includes/Text/Diff/Engine/native.php
- Timestamp:
- 10/26/2017 11:31:20 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Text/Diff/Engine/native.php
r42022 r42027 331 331 $j = 0; 332 332 333 assert( 'count($lines) == count($changed)');333 assert(count($lines) == count($changed)); 334 334 $len = count($lines); 335 335 $other_len = count($other_changed); … … 352 352 353 353 while ($i < $len && ! $changed[$i]) { 354 assert( '$j < $other_len && ! $other_changed[$j]');354 assert($j < $other_len && ! $other_changed[$j]); 355 355 $i++; $j++; 356 356 while ($j < $other_len && $other_changed[$j]) { … … 384 384 $start--; 385 385 } 386 assert( '$j > 0');386 assert($j > 0); 387 387 while ($other_changed[--$j]) { 388 388 continue; 389 389 } 390 assert( '$j >= 0 && !$other_changed[$j]');390 assert($j >= 0 && !$other_changed[$j]); 391 391 } 392 392 … … 409 409 } 410 410 411 assert( '$j < $other_len && ! $other_changed[$j]');411 assert($j < $other_len && ! $other_changed[$j]); 412 412 $j++; 413 413 if ($j < $other_len && $other_changed[$j]) { … … 425 425 $changed[--$start] = 1; 426 426 $changed[--$i] = 0; 427 assert( '$j > 0');427 assert($j > 0); 428 428 while ($other_changed[--$j]) { 429 429 continue; 430 430 } 431 assert( '$j >= 0 && !$other_changed[$j]');431 assert($j >= 0 && !$other_changed[$j]); 432 432 } 433 433 }
Note: See TracChangeset
for help on using the changeset viewer.