Produced by Araxis Merge on 2023-07-12 04:42:38 +0000. 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 | Porto v4.0.5/Theme Files/Porto Theme/app/code/Smartwave/Dailydeals/Model/Dailydeal/Source | SwDiscountType.php | 2018-03-14 03:57:02 +0000 |
| 2 | Porto v4.0.6/Theme Files/Porto Theme/app/code/Smartwave/Dailydeals/Model/Dailydeal/Source | SwDiscountType.php | 2018-03-14 03:57:02 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 64 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| 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 |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | namespace Smartwave\Dailydeals\Model\Dailydeal\Source; | 2 | namespace Smartwave\Dailydeals\Model\Dailydeal\Source; | |||
| 3 | 3 | |||||
| 4 | class SwDiscountType implements \Magento\Framework\Option\ArrayInterface | 4 | class SwDiscountType implements \Magento\Framework\Option\ArrayInterface | |||
| 5 | { | 5 | { | |||
| 6 | const FIXED = 1; | 6 | const FIXED = 1; | |||
| 7 | const PERCENTAGE = 2; | 7 | const PERCENTAGE = 2; | |||
| 8 | 8 | |||||
| 9 | 9 | |||||
| 10 | /** | 10 | /** | |||
| 11 | * to option array | 11 | * to option array | |||
| 12 | * | 12 | * | |||
| 13 | * @return array | 13 | * @return array | |||
| 14 | */ | 14 | */ | |||
| 15 | public function toOptionArray() | 15 | public function toOptionArray() | |||
| 16 | { | 16 | { | |||
| 17 | $options = [ | 17 | $options = [ | |||
| 18 | [ 'value'=>'', | 18 | [ 'value'=>'', | |||
| 19 | 'label'=>__('Select Options') | 19 | 'label'=>__('Select Options') | |||
| 20 | ], | 20 | ], | |||
| 21 | [ | 21 | [ | |||
| 22 | 'value' => self::FIXED, | 22 | 'value' => self::FIXED, | |||
| 23 | 'label' => __('Fixed') | 23 | 'label' => __('Fixed') | |||
| 24 | ], | 24 | ], | |||
| 25 | [ | 25 | [ | |||
| 26 | 'value' => self::PERCENTAGE, | 26 | 'value' => self::PERCENTAGE, | |||
| 27 | 'label' => __('Percentage') | 27 | 'label' => __('Percentage') | |||
| 28 | ], | 28 | ], | |||
| 29 | ]; | 29 | ]; | |||
| 30 | return $options; | 30 | return $options; | |||
| 31 | } | 31 | } | |||
| 32 | } | 32 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.