Skip to content

Commit c62b025

Browse files
fixed #16 removed end-date shortcut
1 parent 54afc7e commit c62b025

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
* dev-master
4+
* HOTFIX #18 Fixed command issues (sorting and shortcut)
5+
36
* 0.2.0 (2016-02-27)
47
* ENHANCEMENT #-- Added debug tasks command and extended storage
58
* ENHANCEMENT #-- Moved command name to service definition

src/Command/DebugTasksCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5353
}
5454

5555
$table = new Table($output);
56-
$table->setHeaders(array('uuid', 'key', 'task-name', 'execution-date', 'completed', 'start', 'duration'));
56+
$table->setHeaders(['uuid', 'key', 'task-name', 'execution-date', 'completed', 'start', 'duration']);
5757

5858
foreach ($tasks as $task) {
5959
$start = null;

src/Command/ScheduleTaskCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function configure()
3838
->addArgument('handler', InputArgument::REQUIRED)
3939
->addArgument('workload', InputArgument::OPTIONAL)
4040
->addOption('cron-expression', 'c', InputOption::VALUE_REQUIRED)
41-
->addOption('end-date', 'e', InputOption::VALUE_REQUIRED)
41+
->addOption('end-date', null, InputOption::VALUE_REQUIRED)
4242
->addOption('key', 'k', InputOption::VALUE_REQUIRED);
4343
}
4444

src/Storage/DoctrineStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function (TaskEntity $entity) {
7070
/**
7171
* {@inheritdoc}
7272
*/
73-
public function findAll($limit = null, $sortOrder= 'ASC')
73+
public function findAll($limit = null, $sortOrder = 'ASC')
7474
{
7575
return array_map(
7676
function (TaskEntity $entity) {
@@ -83,7 +83,7 @@ function (TaskEntity $entity) {
8383
/**
8484
* {@inheritdoc}
8585
*/
86-
public function findByKey($key, $limit = null, $sortOrder= 'ASC')
86+
public function findByKey($key, $limit = null, $sortOrder = 'ASC')
8787
{
8888
return array_map(
8989
function (TaskEntity $entity) {

0 commit comments

Comments
 (0)