Skip to content

Commit cabff1e

Browse files
committed
code review fixes
1 parent 1b85dcd commit cabff1e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

system/Commands/Encryption/GenerateKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function run(array $params)
8989
CLI::write($encodedKey, 'yellow');
9090
CLI::newLine();
9191

92-
return EXIT_ERROR;
92+
return EXIT_SUCCESS;
9393
}
9494

9595
if (! $this->setNewEncryptionKey($encodedKey, $params)) {

system/Commands/Generators/Views/command.tpl.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ public function run(array $params)
6868
$this->directory = 'Commands';
6969
$this->template = 'command.tpl.php';
7070

71-
$this->execute($params);
71+
$this->generateClass($params);
7272
<?php else: ?>
73-
//
73+
// your command logic here
7474
<?php endif ?>
75+
76+
return EXIT_SUCCESS;
7577
}
7678
}

0 commit comments

Comments
 (0)