@@ -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 | } |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | // Prepare cURL options: force HTTP/1.1 |
| 374 | 374 | $curlOpts = [ |
| 375 | 375 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, |
| 376 | - CURLOPT_BUFFERSIZE => 128*1024, // 128 KB chunks instead of default 16 KB |
|
| 376 | + CURLOPT_BUFFERSIZE => 128 * 1024, // 128 KB chunks instead of default 16 KB |
|
| 377 | 377 | // Increase timeouts for large files |
| 378 | 378 | CURLOPT_CONNECTTIMEOUT => 60, |
| 379 | 379 | CURLOPT_TIMEOUT => 300, |
@@ -389,10 +389,10 @@ discard block |
||
| 389 | 389 | foreach ($options as $i => $option) { |
| 390 | 390 | if (strpos($option, '--http1.1') === 0) { |
| 391 | 391 | $curlOpts[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1; |
| 392 | - } elseif (strpos($option, '--connect-timeout') === 0 && isset($options[$i+1]) && is_numeric($options[$i+1])) { |
|
| 393 | - $curlOpts[CURLOPT_CONNECTTIMEOUT] = (int) $options[$i+1]; |
|
| 394 | - } elseif (strpos($option, '--max-time') === 0 && isset($options[$i+1]) && is_numeric($options[$i+1])) { |
|
| 395 | - $curlOpts[CURLOPT_TIMEOUT] = (int) $options[$i+1]; |
|
| 392 | + } elseif (strpos($option, '--connect-timeout') === 0 && isset($options[$i + 1]) && is_numeric($options[$i + 1])) { |
|
| 393 | + $curlOpts[CURLOPT_CONNECTTIMEOUT] = (int) $options[$i + 1]; |
|
| 394 | + } elseif (strpos($option, '--max-time') === 0 && isset($options[$i + 1]) && is_numeric($options[$i + 1])) { |
|
| 395 | + $curlOpts[CURLOPT_TIMEOUT] = (int) $options[$i + 1]; |
|
| 396 | 396 | } |
| 397 | 397 | } |
| 398 | 398 | } |