@@ -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() |
@@ -43,7 +43,7 @@ |
||
43 | 43 | public function testUpdateValues($customerAddressId) |
44 | 44 | { |
45 | 45 | static $changedMiddlename = 'trouble', |
46 | - $changedStreet = "New Street\nSecond Line"; |
|
46 | + $changedStreet = "New Street\nSecond Line"; |
|
47 | 47 | |
48 | 48 | /** @var IntegerNet_Anonymizer_Model_Bridge_Entity_Address_CustomerAddress $bridge */ |
49 | 49 | $bridge = Mage::getModel('integernet_anonymizer/bridge_entity_address_customerAddress'); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | public function testUpdateValues($orderAddressId) |
44 | 44 | { |
45 | 45 | static $changedMiddlename = 'trouble', |
46 | - $changedStreet = "New Street\nSecond Line"; |
|
46 | + $changedStreet = "New Street\nSecond Line"; |
|
47 | 47 | |
48 | 48 | /** @var IntegerNet_Anonymizer_Model_Bridge_Entity_Address_OrderAddress $bridge */ |
49 | 49 | $bridge = Mage::getModel('integernet_anonymizer/bridge_entity_address_orderAddress'); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | public function testUpdateValues($orderId, $customerId) |
45 | 45 | { |
46 | 46 | static $changedEmail = '[email protected]', |
47 | - $changedMiddlename = 'trouble'; |
|
47 | + $changedMiddlename = 'trouble'; |
|
48 | 48 | |
49 | 49 | /** @var IntegerNet_Anonymizer_Model_Bridge_Entity_Order $bridge */ |
50 | 50 | $bridge = Mage::getModel('integernet_anonymizer/bridge_entity_order'); |
@@ -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 |