8000 CS Fixer · symfony/symfony@fe0882a · GitHub
[go: up one dir, main page]

Skip to content

Commit fe0882a

Browse files
CS Fixer
1 parent 3c0a1b9 commit fe0882a

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

src/Symfony/Component/AssetMapper/Command/ImportMapOutdatedCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7777
'name' => $packageUpdateInfo->importName,
7878
'current' => $packageUpdateInfo->currentVersion,
7979
'latest' => $packageUpdateInfo->latestVersion,
80-
'latest-status' => $packageUpdateInfo->updateType === PackageUpdateInfo::UPDATE_TYPE_MAJOR ? 'update-possible' : 'semver-safe-update',
80+
'latest-status' => PackageUpdateInfo::UPDATE_TYPE_MAJOR === $packageUpdateInfo->updateType ? 'update-possible' : 'semver-safe-update',
8181
], array_values($packagesUpdateInfos));
8282

8383
if ('json' === $input->getOption('format')) {
@@ -93,6 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9393
));
9494
}
9595
}
96+
9697
return Command::FAILURE;
9798
}
9899

src/Symfony/Component/AssetMapper/ImportMap/ImportMapUpdateChecker.php

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function __construct(
2727

2828
/**
2929
* @param string[] $packages
30+
*
3031
* @return PackageUpdateInfo[]
3132
*/
3233
public function getAvailableUpdates(array $packages = []): array

src/Symfony/Component/AssetMapper/ImportMap/PackageUpdateInfo.php

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class PackageUpdateInfo
1919
public const UPDATE_TYPE_MAJOR = 'major';
2020
public const UPDATE_TYPE_MINOR = 'minor';
2121
public const UPDATE_TYPE_PATCH = 'patch';
22+
2223
public function __construct(
2324
public readonly string $importName,
2425
public readonly string $url,

src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapUpdateCheckerTest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public function testGetAvailableUpdates()
109109

110110
/**
111111
* @dataProvider provideImportMapEntry
112+
*
112113
* @param ImportMapEntry[] $entries
113114
* @param PackageUpdateInfo[] $expectedUpdateInfo
114115
*/
@@ -140,8 +141,8 @@ private function provideImportMapEntry()
140141
currentVersion: '3.2.1',
141142
latestVersion: '4.0.1',
142143
updateType: 'major'
143-
),],
144-
null
144+
), ],
145+
C0A2 null,
145146
];
146147
yield [
147148
[
@@ -157,7 +158,7 @@ private function provideImportMapEntry()
157158
currentVersion: '5.3.1',
158159
latestVersion: '5.3.2',
159160
updateType: 'patch'
160-
),],
161+
), ],
161162
null,
162163
];
163164
yield [
@@ -174,7 +175,7 @@ private function provideImportMapEntry()
174175
currentVersion: 'not_a_version',
175176
latestVersion: '5.3.2',
176177
updateType: 'unknown'
177-
),],
178+
), ],
178179
null,
179180
];
180181
yield [

0 commit comments

Comments
 (0)
0