@@ -133,8 +133,7 @@ |
||
| 133 | 133 | $clear = openssl_decrypt( $string, self::METHOD, $keyAndIv['key'], 0, $keyAndIv['iv'] ); |
| 134 | 134 | if ( $clear !== false ) { |
| 135 | 135 | $string = $clear; |
| 136 | - } |
|
| 137 | - else { |
|
| 136 | + } else { |
|
| 138 | 137 | break; |
| 139 | 138 | } |
| 140 | 139 | } |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | DELETE FROM `eav_attribute` WHERE `eav_attribute`.`attribute_code` IN('personnalized_suggestions','third_party'); |
| 17 | 17 | DELETE FROM `setup_module` WHERE `setup_module`.`module` = 'Adfab_Gdpr'; |
| 18 | - |
|
| 19 | 18 | */ |
| 20 | 19 | public function uninstall(SchemaSetupInterface $setup, ModuleContextInterface $context) |
| 21 | 20 | { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | } |
| 24 | 24 | $this->isRunning = true; |
| 25 | 25 | foreach( $collection->getItems() as $item ) { |
| 26 | - $this->decipher($item); |
|
| 26 | + $this->decipher($item); |
|
| 27 | 27 | } |
| 28 | 28 | $this->isRunning = false; |
| 29 | 29 | return $result; |
@@ -172,8 +172,7 @@ |
||
| 172 | 172 | foreach( $object->getData() as $key => & $value ) { |
| 173 | 173 | if ( in_array( $key, $this->fields ) ) { |
| 174 | 174 | $object->setData($key, $this->cipher->decipher( $value ) ); |
| 175 | - } |
|
| 176 | - else if ( in_array( $key, $this->specialFields ) ) { |
|
| 175 | + } else if ( in_array( $key, $this->specialFields ) ) { |
|
| 177 | 176 | $parts = explode(' ', $object->getData( $key) ); |
| 178 | 177 | foreach( $parts as & $part ) { |
| 179 | 178 | $clear = $this->cipher->decipher($part); |
@@ -61,8 +61,7 @@ discard block |
||
| 61 | 61 | $objectsToProcess[] = $address; |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | - } |
|
| 65 | - else if ( |
|
| 64 | + } else if ( |
|
| 66 | 65 | ( $value instanceof \Magento\Quote\Model\Quote\Address ) && |
| 67 | 66 | $value->getQuote()->hasData('is_ciphered') |
| 68 | 67 | ) { |
@@ -72,8 +71,7 @@ discard block |
||
| 72 | 71 | $objectsToProcess[] = $value; |
| 73 | 72 | } |
| 74 | 73 | $objectsToProcess[] = $quote; |
| 75 | - } |
|
| 76 | - else if ( |
|
| 74 | + } else if ( |
|
| 77 | 75 | ( $value instanceof \Magento\Sales\Model\Order\Address ) && |
| 78 | 76 | $value->getOrder()->hasData('is_ciphered') |
| 79 | 77 | ) { |