@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $provider->expects($this->exactly(2))->method('getFakerData') |
54 | 54 | ->withConsecutive( |
55 | 55 | array('email', '[email protected]|[email protected]', true), |
56 | - array('name', '[email protected]|Mr. Email', false)); |
|
56 | + array('name', '[email protected]|Mr. Email', false)); |
|
57 | 57 | |
58 | 58 | $anonymizer = new Anonymizer($provider, 'de_DE'); |
59 | 59 | $anonymizer->anonymize([new AnonymizableMock(['email' => '[email protected]', 'name' => 'Mr. Email'], 'email')]); |
@@ -65,16 +65,16 @@ discard block |
||
65 | 65 | return array( |
66 | 66 | array( |
67 | 67 | 'inputData' => array( |
68 | - new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann']), |
|
69 | - new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann']), |
|
68 | + new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann']), |
|
69 | + new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann']), |
|
70 | 70 | new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Maxi', 'lastName' => 'Musterfrau']), |
71 | - new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann', 'streetAddress' => 'Musterstraße 42']), |
|
71 | + new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann', 'streetAddress' => 'Musterstraße 42']), |
|
72 | 72 | ), |
73 | 73 | 'expectedValues' => array( |
74 | - '[email protected]', '[email protected]', '[email protected]', |
|
74 | + '[email protected]', '[email protected]', '[email protected]', |
|
75 | 75 | '[email protected]', '[email protected]', '[email protected]', |
76 | 76 | '[email protected]', '[email protected]', '[email protected]', |
77 | - '[email protected]', '[email protected]', '[email protected]', '[email protected]' |
|
77 | + '[email protected]', '[email protected]', '[email protected]', '[email protected]' |
|
78 | 78 | ) |
79 | 79 | ) |
80 | 80 | ); |
@@ -45,6 +45,6 @@ |
||
45 | 45 | $randomDigits[] = $provider->getFakerData('randomDigit', '[email protected]', true); |
46 | 46 | } |
47 | 47 | sort($randomDigits); |
48 | - $this->assertEquals(range(0,9), $randomDigits, '10 unique digits should be all from 0..9'); |
|
48 | + $this->assertEquals(range(0, 9), $randomDigits, '10 unique digits should be all from 0..9'); |
|
49 | 49 | } |
50 | 50 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | private function _getFieldIdentifier(AnonymizableEntity $entity, AnonymizableValue $value) |
57 | 57 | { |
58 | - return sprintf('%s|%s', $entity->getIdentifier(), join('', (array)$value->getValue())); |
|
58 | + return sprintf('%s|%s', $entity->getIdentifier(), join('', (array) $value->getValue())); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | public function resetUniqueGenerator() |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** @var IntegerNet_Anonymizer_Model_Bridge_Entity_Enterprise_GiftregistryPerson $bridge */ |
62 | 62 | $bridge = Mage::getModel('integernet_anonymizer/bridge_entity_enterprise_giftregistryPerson'); |
63 | 63 | |
64 | - $dataProvider = Mage::getModel('enterprise_giftregistry/person');; |
|
64 | + $dataProvider = Mage::getModel('enterprise_giftregistry/person'); ; |
|
65 | 65 | $bridge->setRawData($dataProvider->load($registryId)->setId($registryId)->getData()); |
66 | 66 | $bridge->getValues()['email']->setValue($changedEmail); |
67 | 67 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | // Use this bootstrap file if you run the unit tests within a Magento installation |
3 | -define('CLASS_DIR', realpath(__DIR__ . '/../src/lib/')); |
|
3 | +define('CLASS_DIR', realpath(__DIR__.'/../src/lib/')); |
|
4 | 4 | set_include_path(get_include_path().PATH_SEPARATOR.CLASS_DIR); |
5 | 5 | spl_autoload_register(function($className) |
6 | 6 | { |
7 | - $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; |
|
7 | + $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $className).'.php'; |
|
8 | 8 | if (stream_resolve_include_path($fileName)) { |
9 | 9 | include $fileName; |
10 | 10 | return true; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | { |
34 | 34 | $entityId = $this->_entity->getId(); |
35 | 35 | if ($entityId) { |
36 | - $this->_identifier = '_gift_registry_' . $entityId; |
|
36 | + $this->_identifier = '_gift_registry_'.$entityId; |
|
37 | 37 | } else { |
38 | 38 | $this->_identifier = ''; |
39 | 39 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | $entityId = $this->_entity->getId(); |
40 | 40 | if ($entityId) { |
41 | - $this->_identifier = $this->getEntityName() . $entityId; |
|
41 | + $this->_identifier = $this->getEntityName().$entityId; |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 | $this->_identifier = null; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | */ |
79 | 79 | private function seedRng($identifier) |
80 | 80 | { |
81 | - $this->faker->seed(hexdec(hash("crc32b", $identifier . $this->salt))); |
|
81 | + $this->faker->seed(hexdec(hash("crc32b", $identifier.$this->salt))); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | private function resetRng() |
@@ -180,6 +180,6 @@ |
||
180 | 180 | */ |
181 | 181 | public function entityExists() |
182 | 182 | { |
183 | - return (bool)$this->_entity; |
|
183 | + return (bool) $this->_entity; |
|
184 | 184 | } |
185 | 185 | } |
186 | 186 | \ No newline at end of file |