Skip to content

Commit 72926fc

Browse files
committed
Use spaces for indentation
1 parent 89c1139 commit 72926fc

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

downloads-get-instructions.php

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,52 +11,52 @@
1111
}
1212

1313
if ($options['os'] === 'windows') {
14-
if ($options['osvariant'] === 'windows-wsl-debian') {
15-
$options['os'] = 'linux';
16-
$options['osvariant'] = 'linux-debian';
17-
}
18-
if ($options['osvariant'] === 'windows-wsl-ubuntu') {
19-
$options['os'] = 'linux';
20-
$options['osvariant'] = 'linux-ubuntu';
21-
}
14+
if ($options['osvariant'] === 'windows-wsl-debian') {
15+
$options['os'] = 'linux';
16+
$options['osvariant'] = 'linux-debian';
17+
}
18+
if ($options['osvariant'] === 'windows-wsl-ubuntu') {
19+
$options['os'] = 'linux';
20+
$options['osvariant'] = 'linux-ubuntu';
21+
}
2222
}
2323
if ($options['os'] === 'osx' || $options['os'] === 'windows') {
2424
if ($options['version'] === 'default') {
25-
$options['version'] = $latestPhpVersion;
26-
}
25+
$options['version'] = $latestPhpVersion;
26+
}
2727
}
2828

2929
if (in_array($options['usage'], ['fw-drupal', 'fw-laravel', 'fw-symfony', 'fw-wordpress'])) {
30-
$file = "{$options['usage']}";
31-
$options['os'] = null;
30+
$file = "{$options['usage']}";
31+
$options['os'] = null;
3232
}
3333

3434
$multiversion = false;
3535

3636
if (array_key_exists('multiversion', $options)) {
37-
$multiversion = $options['multiversion'] === 'Y';
37+
$multiversion = $options['multiversion'] === 'Y';
3838
}
3939

4040
$source = false;
4141

4242
if (array_key_exists('source', $options)) {
43-
if ($options['source'] === 'Y') {
44-
$source = $options['source'] === 'Y';
45-
}
43+
if ($options['source'] === 'Y') {
44+
$source = $options['source'] === 'Y';
45+
}
4646
}
4747

4848
switch ($options['os']) {
49-
case 'linux':
50-
$defaultOrCommunity = ($options['version'] !== 'default' || $multiversion) ? 'community' : 'default';
51-
if ($defaultOrCommunity === 'community' && $options['version'] == 'default') {
52-
$options['version'] = $latestPhpVersion;
53-
}
54-
$file = "{$options['osvariant']}-{$options['usage']}-{$defaultOrCommunity}";
55-
break;
56-
case 'osx':
57-
case 'windows':
58-
$file = "{$options['osvariant']}";
59-
break;
49+
case 'linux':
50+
$defaultOrCommunity = ($options['version'] !== 'default' || $multiversion) ? 'community' : 'default';
51+
if ($defaultOrCommunity === 'community' && $options['version'] == 'default') {
52+
$options['version'] = $latestPhpVersion;
53+
}
54+
$file = "{$options['osvariant']}-{$options['usage']}-{$defaultOrCommunity}";
55+
break;
56+
case 'osx':
57+
case 'windows':
58+
$file = "{$options['osvariant']}";
59+
break;
6060
}
6161

6262
if ($source) {
@@ -67,17 +67,17 @@
6767
$versionNoDot = str_replace('.', '', $version);
6868

6969
if (file_exists(__DIR__ . "/include/download-instructions/{$file}.php")) {
70-
include __DIR__ . "/include/download-instructions/{$file}.php";
71-
if ($source) {
72-
return false;
73-
}
74-
return true;
70+
include __DIR__ . "/include/download-instructions/{$file}.php";
71+
if ($source) {
72+
return false;
73+
}
74+
return true;
7575
} else {
7676
?>
7777
<p>
7878
There are no instructions yet. Try using the <a href="https://www.php.net/manual/en/install.php">generic installation from source</a>.
7979
</p>
8080
<?php
81-
return false;
81+
return false;
8282
}
8383
?>

downloads.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,23 @@ function option(string $value, string $desc, $attributes = []): string
6767
'linux-debian' => 'Debian',
6868
'linux-fedora' => 'Fedora',
6969
'linux-redhat' => 'RedHat',
70-
'linux-ubuntu' => 'Ubuntu',
70+
'linux-ubuntu' => 'Ubuntu',
7171
],
7272
],
7373
'osx' => [
7474
'name' => 'macOS',
7575
'variants' => [
7676
'osx-homebrew' => 'Homebrew/Brew',
77-
'osx-homebrew-php' => 'Homebrew/Homebrew-PHP',
78-
'osx-macports' => 'MacPorts',
77+
'osx-homebrew-php' => 'Homebrew/Homebrew-PHP',
78+
'osx-macports' => 'MacPorts',
7979
],
8080
],
8181
'windows' => [
8282
'name' => 'Windows',
8383
'variants' => [
84-
'windows-native' => 'Windows Native Build',
85-
'windows-chocolatey' => 'Windows with Chocolatey',
86-
'windows-scoop' => 'Windows with Scoop',
84+
'windows-native' => 'Windows Native Build',
85+
'windows-chocolatey' => 'Windows with Chocolatey',
86+
'windows-scoop' => 'Windows with Scoop',
8787
'windows-wsl-debian' => 'Windows with WSL/Debian',
8888
'windows-wsl-ubuntu' => 'Windows with WSL/Ubuntu',
8989
],

0 commit comments

Comments
 (0)