Completed
Push — development ( bff125...0f5c1f )
by Fabian
07:22
created
test/IntegerNet/Anonymizer/AnonymizerTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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,18 +65,18 @@  discard block
 block discarded – undo
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']),
72
-                    new AnonymizableMock(['email' => '[email protected]',  'firstName' => 'Max',  'lastName' => 'Mustermann'], null, false),
71
+                    new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann', 'streetAddress' => 'Musterstraße 42']),
72
+                    new AnonymizableMock(['email' => '[email protected]', 'firstName' => 'Max', 'lastName' => 'Mustermann'], null, false),
73 73
                 ),
74 74
                 'expectedValues' => array(
75
-                    '[email protected]',  '[email protected]',  '[email protected]',
75
+                    '[email protected]', '[email protected]', '[email protected]',
76 76
                     '[email protected]', '[email protected]', '[email protected]',
77 77
                     '[email protected]', '[email protected]', '[email protected]',
78
-                    '[email protected]',  '[email protected]',  '[email protected]', '[email protected]',
79
-                    '[email protected]',  'Max',  'Mustermann',
78
+                    '[email protected]', '[email protected]', '[email protected]', '[email protected]',
79
+                    '[email protected]', 'Max', 'Mustermann',
80 80
                 )
81 81
             )
82 82
         );
Please login to merge, or discard this patch.
test/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
IntegerNet/Anonymizer/Model/Bridge/Entity/Enterprise/Giftregistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/app/code/community/IntegerNet/Anonymizer/Model/Bridge/Entity/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     function isAnonymizable()
38 38
     {
39
-        return ! $this->excludedEmailDomains->matches($this->_entity->getData('customer_email'));
39
+        return !$this->excludedEmailDomains->matches($this->_entity->getData('customer_email'));
40 40
     }
41 41
 
42 42
     protected function _setIdentifier()
Please login to merge, or discard this patch.
app/code/community/IntegerNet/Anonymizer/Model/Bridge/Entity/Customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     function isAnonymizable()
34 34
     {
35
-        return ! $this->excludedEmailDomains->matches($this->_entity->getData('email'));
35
+        return !$this->excludedEmailDomains->matches($this->_entity->getData('email'));
36 36
     }
37 37
 
38 38
     protected function _setIdentifier()
Please login to merge, or discard this patch.
IntegerNet/Anonymizer/Model/Bridge/Entity/NewsletterSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     function isAnonymizable()
28 28
     {
29
-        return ! $this->excludedEmailDomains->matches($this->_entity->getData('subscriber_email'));
29
+        return !$this->excludedEmailDomains->matches($this->_entity->getData('subscriber_email'));
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
community/IntegerNet/Anonymizer/Model/Bridge/Entity/Address/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/Anonymizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function anonymize(array $inputData)
39 39
     {
40 40
         foreach ($inputData as $entity) {
41
-            if (! $entity->isAnonymizable()) {
41
+            if (!$entity->isAnonymizable()) {
42 42
                 continue;
43 43
             }
44 44
             foreach ($entity->getValues() as $value) {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private function _getFieldIdentifier(AnonymizableEntity $entity, AnonymizableValue $value)
60 60
     {
61
-        return sprintf('%s|%s', $entity->getIdentifier(), join('', (array)$value->getValue()));
61
+        return sprintf('%s|%s', $entity->getIdentifier(), join('', (array) $value->getValue()));
62 62
     }
63 63
 
64 64
     public function resetUniqueGenerator()
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/Provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.