@@ -48,7 +48,7 @@ |
||
48 | 48 | // initialize the command with the required/optional options |
49 | 49 | $this->setName(CommandNames::IMPORT_EXECUTE) |
50 | 50 | ->setDescription('Executes the operations passed as argument') |
51 | - ->addArgument(InputArgumentKeysInterface::OPERATION_NAMES, InputArgument::IS_ARRAY|InputArgument::OPTIONAL, 'The operation(s) that has to be executed'); |
|
51 | + ->addArgument(InputArgumentKeysInterface::OPERATION_NAMES, InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'The operation(s) that has to be executed'); |
|
52 | 52 | |
53 | 53 | // invoke the parent method |
54 | 54 | parent::configure(); |
@@ -455,7 +455,7 @@ |
||
455 | 455 | $editionSortOrder = array_flip($this->editionSortOrder); |
456 | 456 | |
457 | 457 | // sort the packages according the default sort order |
458 | - uksort($packages, function ($a, $b) use ($editionSortOrder) { |
|
458 | + uksort($packages, function($a, $b) use ($editionSortOrder) { |
|
459 | 459 | return $editionSortOrder[$a] <=> $editionSortOrder[$b]; |
460 | 460 | }); |
461 | 461 |
@@ -112,11 +112,11 @@ |
||
112 | 112 | |
113 | 113 | // load the ZIP artefacts from the archive directory |
114 | 114 | foreach (glob(sprintf('%s/*.zip', $archiveDir)) as $possibleArtefact) { |
115 | - $availableSerials[ basename($possibleArtefact, '.zip')] = filemtime($possibleArtefact); |
|
115 | + $availableSerials[basename($possibleArtefact, '.zip')] = filemtime($possibleArtefact); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | // sort the available serials by modification time |
119 | - uasort($availableSerials, function ($a, $b) { |
|
119 | + uasort($availableSerials, function($a, $b) { |
|
120 | 120 | // return zero, if the passed values are equal |
121 | 121 | if ($a == $b) { |
122 | 122 | return 0; |
@@ -129,7 +129,7 @@ |
||
129 | 129 | // if at least one recipient has been accepted |
130 | 130 | if ($recipientsAccepted > 0) { |
131 | 131 | // cast 'to' into an array if not already |
132 | - is_array($recipient) ?: $recipient = (array)$recipient; |
|
132 | + is_array($recipient) ?: $recipient = (array) $recipient; |
|
133 | 133 | |
134 | 134 | // remove the NOT accepted recipients |
135 | 135 | $acceptedRecipients = array_diff($recipient, $failedRecipients); |
@@ -48,7 +48,7 @@ discard block |
||
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 |
||
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 |