| @@ -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 | |
| @@ -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 | } | 
| @@ -379,7 +379,7 @@ | ||
| 379 | 379 |                  [$this->equalTo('SET FOREIGN_KEY_CHECKS = 1;')] | 
| 380 | 380 | ) | 
| 381 | 381 | ->willReturnOnConsecutiveCalls( | 
| 382 | - $this->returnValue(1), // SET FOREIGN_KEY_CHECKS = 0; | |
| 382 | + $this->returnValue(1), // SET FOREIGN_KEY_CHECKS = 0; | |
| 383 | 383 |                  $this->throwException(new PDOException('Drop failed')), // DROP VIEW problem_view | 
| 384 | 384 | $this->returnValue(1) // SET FOREIGN_KEY_CHECKS = 1; | 
| 385 | 385 | ); | 
| @@ -159,7 +159,7 @@ discard block | ||
| 159 | 159 |                  list($host, $port) = explode(':', $this->dbSettings['host'], 2); | 
| 160 | 160 | $this->dbSettings['host'] = $host; | 
| 161 | 161 |                  if (is_numeric($port)) { | 
| 162 | - $this->dbSettings['port'] = (int)$port; | |
| 162 | + $this->dbSettings['port'] = (int) $port; | |
| 163 | 163 | } | 
| 164 | 164 | } | 
| 165 | 165 | } | 
| @@ -206,7 +206,7 @@ discard block | ||
| 206 | 206 |                  list($host, $port) = explode(':', $this->dbSettings['host'], 2); | 
| 207 | 207 | $this->dbSettings['host'] = $host; | 
| 208 | 208 |                  if (is_numeric($port)) { | 
| 209 | - $this->dbSettings['port'] = (int)$port; | |
| 209 | + $this->dbSettings['port'] = (int) $port; | |
| 210 | 210 | } | 
| 211 | 211 | } | 
| 212 | 212 | } | 
| @@ -451,7 +451,7 @@ discard block | ||
| 451 | 451 | . ' ' | 
| 452 | 452 | . '-u' . escapeshellarg($this->dbSettings['username']) | 
| 453 | 453 | . ' ' | 
| 454 | - . (isset($this->dbSettings['port']) && is_numeric($this->dbSettings['port']) && (int)$this->dbSettings['port'] > 0 | |
| 454 | + . (isset($this->dbSettings['port']) && is_numeric($this->dbSettings['port']) && (int) $this->dbSettings['port'] > 0 | |
| 455 | 455 | ? '-P' . escapeshellarg($this->dbSettings['port']) . ' ' : '') | 
| 456 | 456 | . (strlen($this->dbSettings['password']) | 
| 457 | 457 | ? '--password=' . escapeshellarg($this->dbSettings['password']) . ' ' : '') | 
| @@ -405,7 +405,7 @@ | ||
| 405 | 405 | |
| 406 | 406 | $excludeTablesUserInput = $this->excludeTables($input, $output); // Unprefixed | 
| 407 | 407 | $includeTablesUserInput = $this->includeTables($input, $output); // Unprefixed | 
| 408 | - $stripTablesUserInput = $this->stripTables($input, $output); // Unprefixed | |
| 408 | + $stripTablesUserInput = $this->stripTables($input, $output); // Unprefixed | |
| 409 | 409 | $stripTablesUserInput = array_diff($stripTablesUserInput, $excludeTablesUserInput); | 
| 410 | 410 | |
| 411 | 411 | // Filter out any tables that should be excluded entirely |