From ac65cc56bb3147f64b3cd56b50b25d6647b30dd8 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Wed, 25 May 2016 20:26:58 +0100 Subject: [PATCH] I prefer clear --- app/Console/Commands/DemoSeederCommand.php | 2 +- app/Settings/Repository.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/DemoSeederCommand.php b/app/Console/Commands/DemoSeederCommand.php index 2ff20380..0f20c4dc 100644 --- a/app/Console/Commands/DemoSeederCommand.php +++ b/app/Console/Commands/DemoSeederCommand.php @@ -346,7 +346,7 @@ EINCIDENT; ], ]; - $this->settings->truncate(); + $this->settings->clear(); foreach ($defaultSettings as $setting) { $this->settings->set($setting['name'], $setting['value']); diff --git a/app/Settings/Repository.php b/app/Settings/Repository.php index f925f2b7..edd5103e 100644 --- a/app/Settings/Repository.php +++ b/app/Settings/Repository.php @@ -91,11 +91,11 @@ class Repository } /** - * Truncate all settings. + * Clear all settings. * * @return void */ - public function truncate() + public function clear() { $this->stale = true;