Passed
Push — master ( 6f8ed4...5a306e )
by
unknown
06:24 queued 02:09
created
src/Command/ImportConvertValueCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
              ->setDescription('Converts the value to the format expected by the given column')
49 49
              ->addArgument(InputArgumentKeysInterface::ENTITY_TYPE_CODE, InputArgument::REQUIRED, 'The entity type code to use, e. g. catalog_product')
50 50
              ->addArgument(InputArgumentKeysInterface::COLUMN, InputArgument::REQUIRED, 'The column name to convert the value for')
51
-             ->addArgument(InputArgumentKeysInterface::VALUES, InputArgument::REQUIRED|InputArgument::IS_ARRAY, 'The value to convert');
51
+             ->addArgument(InputArgumentKeysInterface::VALUES, InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'The value to convert');
52 52
 
53 53
         // invoke the parent method
54 54
         parent::configure();
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                     // clean-up (means to remove surrounding + double quotes)
100 100
                     // because we've no delimiter within the value
101 101
                     if (strstr($val, $delimiter) === false) {
102
-                        $val = preg_replace("/^(\'(.*)\'|".$enclosure."(.*)".$enclosure.")$/", '$2$3', $val);
102
+                        $val = preg_replace("/^(\'(.*)\'|" . $enclosure . "(.*)" . $enclosure . ")$/", '$2$3', $val);
103 103
                         $val = str_replace('""', '"', $val);
104 104
                     }
105 105
 
Please login to merge, or discard this patch.