From 0bfe649aa5afa178b614beead0324adf055b4833 Mon Sep 17 00:00:00 2001 From: Jakub Turek Date: Sat, 21 Feb 2015 22:33:26 +0100 Subject: [PATCH] Fix code style for LockCommand --- Mage/Command/BuiltIn/LockCommand.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Mage/Command/BuiltIn/LockCommand.php b/Mage/Command/BuiltIn/LockCommand.php index 6c2a59e..e39001d 100644 --- a/Mage/Command/BuiltIn/LockCommand.php +++ b/Mage/Command/BuiltIn/LockCommand.php @@ -35,14 +35,26 @@ class LockCommand extends AbstractCommand implements RequiresEnvironment $reason = Console::readInput(); $lockmsg = PHP_EOL; - if ($name) $lockmsg .= 'Locked by ' . $name . ' '; - if ($email) $lockmsg .= '(' . $email . ')'; - if ($reason) $lockmsg .= PHP_EOL . $reason . PHP_EOL; + if ($name) { + $lockmsg .= 'Locked by ' . $name . ' '; + } + if ($email) { + $lockmsg .= '(' . $email . ')'; + } + if ($reason) { + $lockmsg .= PHP_EOL . $reason . PHP_EOL; + } $lockFile = getcwd() . '/.mage/' . $this->getConfig()->getEnvironment() . '.lock'; file_put_contents($lockFile, 'Locked environment at date: ' . date('Y-m-d H:i:s') . $lockmsg); - Console::output('Locked deployment to ' . $this->getConfig()->getEnvironment() . ' environment', 1, 2); + Console::output( + 'Locked deployment to ' + . $this->getConfig()->getEnvironment() + . ' environment', + 1, + 2 + ); return 0; }