forked from chrisboulton/php-diff
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of defining constants with the same name and values at different namespaces, they're now defined at an interface which can be shared among classes by implementing this interface.
- Loading branch information
DigiLive
authored and
DigiLive
committed
Dec 18, 2020
1 parent
dabb467
commit 3591515
Showing
3 changed files
with
48 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace jblond\Diff; | ||
/** | ||
* Constant Interface | ||
* | ||
* Defines the library constants which needs to be shared across the different classes. | ||
* | ||
* PHP version 7.2 or greater | ||
* | ||
* @package jblond | ||
* @author Ferry Cools <[email protected]> | ||
* @copyright (c) 2020 Mario Brandt | ||
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php | ||
* @version 2.3.0 | ||
* @link https://github.com/JBlond/php-diff | ||
*/ | ||
interface ConstantsInterface | ||
{ | ||
/** | ||
* Flag to disable ignore of successive empty/blank lines. | ||
*/ | ||
public const DIFF_IGNORE_LINE_NONE = 0; | ||
/** | ||
* Flag to ignore empty lines. | ||
*/ | ||
public const DIFF_IGNORE_LINE_EMPTY = 1; | ||
/** | ||
* Flag to ignore blank lines. (Lines which contain no or only non printable characters.) | ||
*/ | ||
public const DIFF_IGNORE_LINE_BLANK = 2; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters