Skip to content

Commit 08466e7

Browse files
Fix styles
1 parent 9f8ee64 commit 08466e7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

recipe/magento2.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
// detect if app:config:import is needed on the current (live) release
144144
// do not use {{bin/magento}} as it resolves via release_or_current_path which is unreliable in failure scenarios
145145
run('{{bin/php}} {{current_path}}/{{magento_dir}}/bin/magento app:config:status');
146-
} catch (RunException | TimeoutException $e) {
146+
} catch (RunException|TimeoutException $e) {
147147
if ($e instanceof RunException && $e->getExitCode() == CONFIG_IMPORT_NEEDED_EXIT_CODE) {
148148
return true;
149149
}
@@ -330,9 +330,9 @@ function magentoDeployAssetsSplit(string $area)
330330

331331
desc('Set maintenance mode if needed');
332332
task('magento:maintenance:enable-if-needed', function () {
333-
! get('enable_zerodowntime') || get('upgrade_needed') || get('config_import_needed') ?
334-
invoke('magento:maintenance:enable') :
335-
writeln('Config and database up to date => no maintenance mode');
333+
! get('enable_zerodowntime') || get('upgrade_needed') || get('config_import_needed')
334+
? invoke('magento:maintenance:enable')
335+
: writeln('Config and database up to date => no maintenance mode');
336336
});
337337

338338
desc('Config Import');
@@ -353,7 +353,7 @@ function magentoDeployAssetsSplit(string $area)
353353
} else {
354354
writeln('App config import skipped');
355355
}
356-
} catch (RunException | TimeoutException $e) {
356+
} catch (RunException|TimeoutException $e) {
357357
writeln('Unable to import app config on current release => import skipped');
358358
}
359359
});

0 commit comments

Comments
 (0)