Completed
Push — development ( e61a28...33f7b9 )
by Fabian
05:19
created
test/IntegerNet/Anonymizer/AnonymizerTest.php 1 patch
Spacing   +6 added lines, -6 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,16 +65,16 @@  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']),
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
         );
Please login to merge, or discard this patch.
test/IntegerNet/Anonymizer/ProviderTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * integer_net Magento Module
4
- *
5
- * @category   IntegerNet
6
- * @package    IntegerNet_Anonymizer
7
- * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
- * @author     Fabian Schmengler <[email protected]>
9
- */
3
+     * integer_net Magento Module
4
+     *
5
+     * @category   IntegerNet
6
+     * @package    IntegerNet_Anonymizer
7
+     * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
+     * @author     Fabian Schmengler <[email protected]>
9
+     */
10 10
 
11 11
 namespace IntegerNet\Anonymizer;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
test/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 define('CLASS_DIR', realpath(__DIR__ . '/../src/lib/'));
3
-set_include_path(get_include_path().PATH_SEPARATOR.CLASS_DIR);
3
+set_include_path(get_include_path() . PATH_SEPARATOR . CLASS_DIR);
4 4
 spl_autoload_register(function($className)
5 5
 {
6 6
     $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';
Please login to merge, or discard this patch.
IntegerNet_Anonymizer/src/IntegerNet/Anonymizer/AnonymizeCommand.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * integer_net Magento Module
4
- *
5
- * @category   IntegerNet
6
- * @package    
7
- * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
- * @author     Fabian Schmengler <[email protected]>
9
- */
3
+     * integer_net Magento Module
4
+     *
5
+     * @category   IntegerNet
6
+     * @package    
7
+     * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
+     * @author     Fabian Schmengler <[email protected]>
9
+     */
10 10
 
11 11
 namespace IntegerNet\Anonymizer;
12 12
 
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/Updater.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * integer_net Magento Module
4
- *
5
- * @category   IntegerNet
6
- * @package    IntegerNet_Anonymizer
7
- * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
- * @author     Fabian Schmengler <[email protected]>
9
- */
3
+     * integer_net Magento Module
4
+     *
5
+     * @category   IntegerNet
6
+     * @package    IntegerNet_Anonymizer
7
+     * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
+     * @author     Fabian Schmengler <[email protected]>
9
+     */
10 10
 namespace IntegerNet\Anonymizer;
11 11
 
12 12
 use IntegerNet\Anonymizer\Implementor\AnonymizableEntity;
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/Anonymizer.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: fs
5
- * Date: 16.03.2015
6
- * Time: 18:31
7
- */
3
+     * Created by PhpStorm.
4
+     * User: fs
5
+     * Date: 16.03.2015
6
+     * Time: 18:31
7
+     */
8 8
 
9 9
 namespace IntegerNet\Anonymizer;
10 10
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/Provider.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * integer_net Magento Module
4
- *
5
- * @category   IntegerNet
6
- * @package    IntegerNet_Anonymizer
7
- * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
- * @author     Fabian Schmengler <[email protected]>
9
- */
3
+     * integer_net Magento Module
4
+     *
5
+     * @category   IntegerNet
6
+     * @package    IntegerNet_Anonymizer
7
+     * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
+     * @author     Fabian Schmengler <[email protected]>
9
+     */
10 10
 
11 11
 namespace IntegerNet\Anonymizer;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         if ($unique) {
68 68
             $faker = $faker->unique();
69 69
         }
70
-        $this->seedRng($formatter.$identifier);
70
+        $this->seedRng($formatter . $identifier);
71 71
         $result = $faker->format($formatter);
72 72
         $this->resetRng();
73 73
         return $result;
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/AnonymizableValue.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * integer_net Magento Module
4
- *
5
- * @category   IntegerNet
6
- * @package    IntegerNet_Anonymizer
7
- * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
- * @author     Fabian Schmengler <[email protected]>
9
- */
3
+     * integer_net Magento Module
4
+     *
5
+     * @category   IntegerNet
6
+     * @package    IntegerNet_Anonymizer
7
+     * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
+     * @author     Fabian Schmengler <[email protected]>
9
+     */
10 10
 
11 11
 namespace IntegerNet\Anonymizer;
12 12
 
Please login to merge, or discard this patch.
src/lib/IntegerNet/Anonymizer/Implementor/AnonymizableEntity.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * integer_net Magento Module
4
- *
5
- * @category   IntegerNet
6
- * @package    IntegerNet_Anonymizer
7
- * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
- * @author     Fabian Schmengler <[email protected]>
9
- */
3
+     * integer_net Magento Module
4
+     *
5
+     * @category   IntegerNet
6
+     * @package    IntegerNet_Anonymizer
7
+     * @copyright  Copyright (c) 2015 integer_net GmbH (http://www.integer-net.de/)
8
+     * @author     Fabian Schmengler <[email protected]>
9
+     */
10 10
 
11 11
 namespace IntegerNet\Anonymizer\Implementor;
12 12
 
Please login to merge, or discard this patch.