@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | $storeCode = $input->getArgument('store'); |
| 33 | - $interaction = ! $input->getOption('no-interaction'); |
|
| 33 | + $interaction = !$input->getOption('no-interaction'); |
|
| 34 | 34 | |
| 35 | 35 | /** @var $questionHelper QuestionHelper */ |
| 36 | 36 | $questionHelper = $this->getHelper('question'); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $question |
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | - if (! $shouldContinue) { |
|
| 50 | + if (!$shouldContinue) { |
|
| 51 | 51 | return self::INVALID; |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $question |
| 84 | 84 | ); |
| 85 | 85 | |
| 86 | - if (! $shouldRemove) { |
|
| 86 | + if (!$shouldRemove) { |
|
| 87 | 87 | continue; |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -277,7 +277,7 @@ |
||
| 277 | 277 | */ |
| 278 | 278 | protected function runMagerunCommand(InputInterface $input, OutputInterface $output, $commandString) |
| 279 | 279 | { |
| 280 | - $noInteraction = ! $input->getOption('no-interaction'); |
|
| 280 | + $noInteraction = !$input->getOption('no-interaction'); |
|
| 281 | 281 | $this->getApplication()->setAutoExit(false); |
| 282 | 282 | $commandString = $this->_replaceScriptVars($commandString); |
| 283 | 283 | $input = new StringInput($commandString); |
@@ -510,7 +510,7 @@ |
||
| 510 | 510 | return $input->getOption('keep-definer') |
| 511 | 511 | ? '' |
| 512 | 512 | : ' | LANG=C LC_CTYPE=C LC_ALL=C sed -E ' |
| 513 | - . escapeshellarg('s/DEFINER[ ]*=[ ]*`[^`]+`@`[^`]+`/DEFINER=CURRENT_USER/g'); |
|
| 513 | + . escapeshellarg('s/DEFINER[ ]*=[ ]*`[^`]+`@`[^`]+`/DEFINER=CURRENT_USER/g'); |
|
| 514 | 514 | } |
| 515 | 515 | |
| 516 | 516 | /** |
@@ -113,19 +113,19 @@ |
||
| 113 | 113 | // Initial call contains only the sections and need to extract the tabs |
| 114 | 114 | if (is_array($structureElement)) { |
| 115 | 115 | if (isset($structureElement['tab'])) { |
| 116 | - $pathLabel = $this->tabMap[$structureElement['tab']]['label']; |
|
| 116 | + $pathLabel = $this->tabMap[$structureElement['tab']]['label']; |
|
| 117 | 117 | } |
| 118 | 118 | $structureElement = $this->configStructure->getElement($structureElement['id']); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - if (mb_stripos((string)$structureElement->getLabel(), $searchTerm) !== false |
|
| 122 | - || mb_stripos((string)$structureElement->getComment(), $searchTerm) !== false |
|
| 121 | + if (mb_stripos((string) $structureElement->getLabel(), $searchTerm) !== false |
|
| 122 | + || mb_stripos((string) $structureElement->getComment(), $searchTerm) !== false |
|
| 123 | 123 | ) { |
| 124 | 124 | $elementData = $structureElement->getData(); |
| 125 | 125 | $this->results[] = [ |
| 126 | 126 | 'id' => trim($structureElement->getPath(), '/'), |
| 127 | 127 | 'type' => $elementData['_elementType'], |
| 128 | - 'name' => trim($pathLabel . ' / ' . trim((string)$structureElement->getLabel()), '/'), |
|
| 128 | + 'name' => trim($pathLabel . ' / ' . trim((string) $structureElement->getLabel()), '/'), |
|
| 129 | 129 | ]; |
| 130 | 130 | } |
| 131 | 131 | |
@@ -73,10 +73,10 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | $shellCommand = escapeshellarg(OperatingSystem::getPhpBinary()) |
| 76 | - . ' ' |
|
| 77 | - . escapeshellarg($this->magentoRootDir . '/bin/magento') |
|
| 78 | - . ' ' |
|
| 79 | - . $magentoCoreCommandInput->__toString(); |
|
| 76 | + . ' ' |
|
| 77 | + . escapeshellarg($this->magentoRootDir . '/bin/magento') |
|
| 78 | + . ' ' |
|
| 79 | + . $magentoCoreCommandInput->__toString(); |
|
| 80 | 80 | $process = Process::fromShellCommandline( |
| 81 | 81 | $shellCommand, |
| 82 | 82 | $this->magentoRootDir, |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | if (!isset($this->infos[$settingArgument])) { |
| 194 | 194 | throw new InvalidArgumentException('Unknown key: ' . $settingArgument); |
| 195 | 195 | } |
| 196 | - $output->writeln((string)$this->infos[$settingArgument]); |
|
| 196 | + $output->writeln((string) $this->infos[$settingArgument]); |
|
| 197 | 197 | } else { |
| 198 | 198 | $this->getHelper('table') |
| 199 | 199 | ->setHeaders(['name', 'value']) |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function __construct(?InputInterface $input = null) |
| 21 | 21 | { |
| 22 | - $this->compressionLevel = $input ? (int)$input->getOption('zstd-level') : 10; |
|
| 23 | - $this->extraArgs = $input ? (string)$input->getOption('zstd-extra-args') : ''; |
|
| 22 | + $this->compressionLevel = $input ? (int) $input->getOption('zstd-level') : 10; |
|
| 23 | + $this->extraArgs = $input ? (string) $input->getOption('zstd-extra-args') : ''; |
|
| 24 | 24 | |
| 25 | 25 | parent::__construct($input); |
| 26 | 26 | } |
@@ -84,10 +84,10 @@ discard block |
||
| 84 | 84 | public function additionalColumnsProvider() |
| 85 | 85 | { |
| 86 | 86 | return [ |
| 87 | - 'single_column' => [ ['firstname'], ['firstname'] ], |
|
| 87 | + 'single_column' => [['firstname'], ['firstname']], |
|
| 88 | 88 | 'multiple_columns' => [ |
| 89 | 89 | ['firstname', 'lastname', 'email'], |
| 90 | - ['firstname', 'lastname', 'email'] ], |
|
| 90 | + ['firstname', 'lastname', 'email']], |
|
| 91 | 91 | 'all_columns' => [ |
| 92 | 92 | [ |
| 93 | 93 | 'user_id', 'firstname', 'lastname', 'email', 'username', 'password', 'created', 'modified', |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | 'interface_locale', 'failures_num', 'first_failure', 'lock_expires' |
| 101 | 101 | ] |
| 102 | 102 | ], |
| 103 | - 'mixed_case_columns' => [ ['FirstName', 'LastName'], ['firstname', 'lastname'] ], |
|
| 103 | + 'mixed_case_columns' => [['FirstName', 'LastName'], ['firstname', 'lastname']], |
|
| 104 | 104 | ]; |
| 105 | 105 | } |
| 106 | 106 | } |