Skip to content

Commit 022230c

Browse files
peterjaapviktym
andauthored
Apply suggestions from code review
Co-authored-by: Viktor Tymchynskyi <[email protected]>
1 parent 2666464 commit 022230c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Command/Process/Action/ReviewAppliedAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function ($patch) {
7373
$appliedOptionalPatches
7474
);
7575
$totalNumber = count(array_unique(array_merge($ids, $patchFilter)));
76-
if ($totalNumber >= self::UPGRADE_THRESHOLD && $input->getOption('format') !== 'json') {
76+
if ($totalNumber >= self::UPGRADE_THRESHOLD) {
7777
$message = 'Warning for those on a previous minor line! Magento recommends installing a limited'.
7878
' number of quality patches to ensure a smooth upgrade to the latest line. Please begin planning'.
7979
' an upgrade to the latest release line.';

src/Command/Process/ShowStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ public function run(InputInterface $input, OutputInterface $output)
105105
{
106106
if ($input->getOption('format') !== 'json') {
107107
$this->printDetailsInfo($output);
108+
$this->reviewAppliedAction->execute($input, $output, []);
108109
}
109110

110-
$this->reviewAppliedAction->execute($input, $output, []);
111111

112112
$patches = $this->aggregator->aggregate(
113113
array_merge($this->optionalPool->getList(), $this->localPool->getList())

0 commit comments

Comments
 (0)