Completed
Push — development ( bff125...0f5c1f )
by Fabian
07:22
created

excludedEmailDomains()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 2
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * integer_net Magento Module
4
 *
5
 * @category   IntegerNet
6
 * @package    IntegerNet_Anonymizer
7
 * @copyright  Copyright (c) 2016 integer_net GmbH (http://www.integer-net.de/)
8
 * @author     Fabian Schmengler <[email protected]>
9
 */ 
10
class IntegerNet_Anonymizer_Helper_Data extends Mage_Core_Helper_Abstract
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
11
{
12
    const ALIAS = 'integernet_anonymizer';
13
    const CONFIG_EXCLUDED_EMAIL_DOMAINS = 'dev/integernet_anonymizer/excluded_email_domains';
14
15
    public function excludedEmailDomains()
16
    {
17
        return new \IntegerNet\Anonymizer\Config\ExcludedEmailDomains(
18
            array_map(
19
                'trim',
20
                explode(',', Mage::getStoreConfig(self::CONFIG_EXCLUDED_EMAIL_DOMAINS)) ?: []
21
            )
22
        );
23
    }
24
}