Produced by Araxis Merge on 8/16/2019 12:01:56 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Direct_DSM.zip\Direct_DSM\api\application\libraries | DAAS_Validator.php | Tue Aug 13 17:30:18 2019 UTC |
| 2 | Direct_DSM.zip\Direct_DSM\api\application\libraries | DAAS_Validator.php | Fri Aug 16 14:41:21 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 48 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | <?php if ( ! defined ('BASEPATH ')) exit(' No direct script acc ess allowe d'); | |
| 2 | /** | |
| 3 | * @package direct-as -a-service | |
| 4 | * @subpack age librar ies | |
| 5 | */ | |
| 6 | ||
| 7 | /** | |
| 8 | * @package direct-as -a-service | |
| 9 | * @subpack age librar ies | |
| 10 | */ | |
| 11 | class DAAS _Validator extends V alidator { | |
| 12 | ||
| 13 | // this shoul d NOT be i ncorporate d into the main vali dator - it 's not a v ery good r egex for p hones, and we're jus t making i t availabl e here in the API fo r historic al reasons | |
| 14 | fu nction str ing_like_a _phone_num ber($value ){ | |
| 15 | retu rn preg_ma tch('/^(?: \((\+?\d+) ?\)|\+?\d+ ) ?\d*(-?\ d{2,3} ?){ 0,4}$/', $ value); | |
| 16 | } | |
| 17 | ||
| 18 | fu nction str ing_like_a _va_email_ address($v alue){ | |
| 19 | if(! $this->str ing_like_a n_email_ad dress($val ue)) retur n false; | |
| 20 | return str ing_ends_w ith(' DNS . URL ', strtolo wer($value )); | |
| 21 | } | |
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.