From cbf951471e3a3bb3f7ddd0f9ca2d07241aba756d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 13 Feb 2014 18:00:39 +0100 Subject: update configuration example file, fix variable names --- src/bdrem/Config.php | 4 ++-- src/bdrem/UserInterface.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bdrem/Config.php b/src/bdrem/Config.php index 7a0fd68..04cf888 100644 --- a/src/bdrem/Config.php +++ b/src/bdrem/Config.php @@ -5,8 +5,8 @@ class Config { public $source; public $date; - public $daysBefore; - public $daysAfter; + public $daysPrev; + public $daysNext; public $locale; public function load() diff --git a/src/bdrem/UserInterface.php b/src/bdrem/UserInterface.php index e4f7168..5fb028b 100644 --- a/src/bdrem/UserInterface.php +++ b/src/bdrem/UserInterface.php @@ -38,7 +38,7 @@ abstract class UserInterface 'description' => 'Show NUM days after date', 'help_name' => 'NUM', 'action' => 'StoreInt', - 'default' => $this->config->daysAfter, + 'default' => $this->config->daysNext, ) ); $parser->addOption( @@ -49,7 +49,7 @@ abstract class UserInterface 'description' => 'Show NUM days before date', 'help_name' => 'NUM', 'action' => 'StoreInt', - 'default' => $this->config->daysBefore, + 'default' => $this->config->daysPrev, ) ); $parser->addOption( -- cgit v1.2.3