Skip to content

Commit 09930f0

Browse files
author
Carlos Reynosa
committed
Cleanup code.
1 parent e4f07c6 commit 09930f0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎recipe/magento2.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,17 @@
144144
return false;
145145
});
146146

147-
set('full_upgrade_needed', function(){
147+
set('full_upgrade_needed', function () {
148148
//Some conditions, such as new RabittMQ services require a full upgrade and are not detecet by setup:db:status
149149
//TODO: Add checks, once implemented, for detecting necessary full upgrade process. See future RabbitMQ Check: https://github.com/magento/magento2/pull/39698
150150
return false;
151151
});
152152

153-
set('upgrade_needed', function(){
153+
set('upgrade_needed', function () {
154154
// Detect necessary upgrade, partial db or full upgrade
155-
try{
155+
try {
156156
return get('database_upgrade_needed') || get('full_upgrade_needed');
157-
}catch (RunException $e){
157+
} catch (RunException $e) {
158158
throw $e;
159159
}
160160
});
@@ -317,8 +317,8 @@ function magentoDeployAssetsSplit(string $area)
317317
task('magento:upgrade', function () {
318318
if (get('full_upgrade_needed')) {
319319
run("{{bin/php}} {{bin/magento}} setup:upgrade --keep-generated");
320-
} else if(get('database_upgrade_needed')) {
321-
invoke('magento:upgrade:db');
320+
} elseif (get('database_upgrade_needed')) {
321+
invoke('magento:upgrade:db');
322322
}
323323
})->once();
324324

0 commit comments

Comments
 (0)