@@ -54,7 +54,7 @@ |
||
| 54 | 54 | ->setDescription('Converts the value to the format expected by the given column') |
| 55 | 55 | ->addArgument(InputArgumentKeysInterface::ENTITY_TYPE_CODE, InputArgument::REQUIRED, 'The entity type code to use, e. g. catalog_product') |
| 56 | 56 | ->addArgument(InputArgumentKeysInterface::COLUMN, InputArgument::REQUIRED, 'The column name to convert the value for') |
| 57 | - ->addArgument(InputArgumentKeysInterface::VALUES, InputArgument::REQUIRED|InputArgument::IS_ARRAY, 'The value to convert'); |
|
| 57 | + ->addArgument(InputArgumentKeysInterface::VALUES, InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'The value to convert'); |
|
| 58 | 58 | |
| 59 | 59 | // invoke the parent method |
| 60 | 60 | parent::configure(); |
@@ -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 |
| 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; |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | // if at least one recipient has been accepted |
| 131 | 131 | if ($recipientsAccepted > 0) { |
| 132 | 132 | // cast 'to' into an array if not already |
| 133 | - is_array($recipient) ? : $recipient = (array) $recipient; |
|
| 133 | + is_array($recipient) ?: $recipient = (array) $recipient; |
|
| 134 | 134 | // remove the NOT accepted recipients |
| 135 | 135 | $acceptedRecipients = array_diff($recipient, $failedRecipients); |
| 136 | 136 | |