diff --git a/README.md b/README.md
index 158dd45..f0b7dd7 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# PHP Cron tasks manager
-The PHP cron tasks manager designed for MVC-type applications. It's used instead of standard linux *crontab* command.
+This is a flexible tasks manager designed for MVC-type applications. It's used instead of standard linux *crontab* command.
The purpose of this tool is to provide an easy way to manipulate repetitive tasks.
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 588f7d6..9b75111 100644
--- a/composer.json
+++ b/composer.json
@@ -1,8 +1,10 @@
{
- "name": "mult1mate/crontab-manager",
- "description": "Yet another crontab manager",
+ "name": "mult1mate/cron-manager",
+ "description": "Flexible cron tasks manager for MVC-type applications",
"minimum-stability": "stable",
- "license": "proprietary",
+ "keywords": ["cron","crontab","task manager"],
+ "homepage": "https://cron.multimate.ru",
+ "license": "MIT",
"authors": [
{
"name": "MUlt1mate",
@@ -10,6 +12,7 @@
}
],
"require": {
+ "php": ">=5.4.0",
"mtdowling/cron-expression": "v1.0.4"
},
"autoload": {
diff --git a/examples/active_record/views/report.php b/examples/active_record/views/report.php
index 3898603..8f74b1c 100644
--- a/examples/active_record/views/report.php
+++ b/examples/active_record/views/report.php
@@ -30,7 +30,7 @@
Error |
All |
- foreach ($report as $r): ?>
+
= $r['command'] ?> |
= $r['completed'] ?> |
@@ -38,5 +38,5 @@
= $r['error'] ?> |
= $r['runs'] ?> |
- endforeach; ?>
+
diff --git a/examples/active_record/views/runs_list.php b/examples/active_record/views/runs_list.php
index 01a3c3b..44b90d6 100644
--- a/examples/active_record/views/runs_list.php
+++ b/examples/active_record/views/runs_list.php
@@ -29,10 +29,10 @@
= $r->execution_time ?> |
= $r->ts->format('Y-m-d H:i:s') ?> |
- if (!empty($r->output)): ?>
+ output)): ?>
Show output
- endif; ?>
+
|
diff --git a/examples/active_record/views/task_edit.php b/examples/active_record/views/task_edit.php
index cdd2bbd..066dc2c 100644
--- a/examples/active_record/views/task_edit.php
+++ b/examples/active_record/views/task_edit.php
@@ -13,13 +13,13 @@
diff --git a/examples/active_record/views/tasks_list.php b/examples/active_record/views/tasks_list.php
index 64bfa4f..6b810fe 100644
--- a/examples/active_record/views/tasks_list.php
+++ b/examples/active_record/views/tasks_list.php
@@ -73,13 +73,13 @@
diff --git a/src/TaskManager.php b/src/TaskManager.php
index 2fab8df..eb88b57 100644
--- a/src/TaskManager.php
+++ b/src/TaskManager.php
@@ -184,7 +184,8 @@ public static function parseCrontab($cron, $task_class)
$comment = null;
$result = [];
foreach ($cron_array as $c) {
- if (empty(trim($c)))
+ $c = trim($c);
+ if (empty($c))
continue;
$r = [];
$r[] = $c;