From 1bc0d1f7a4ccf9182dd896d5c909da4082acf48e Mon Sep 17 00:00:00 2001 From: ytake Date: Fri, 25 Nov 2016 03:25:08 +0900 Subject: [PATCH] updated --- src/Console/CacheClearCommand.php | 6 +++--- src/Console/ClearCompiledCommand.php | 4 ++-- src/Console/OptimizeCommand.php | 6 +++--- src/SmartyFactory.php | 1 - src/SmartyServiceProvider.php | 1 - 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/Console/CacheClearCommand.php b/src/Console/CacheClearCommand.php index df16084..fc3e2e3 100644 --- a/src/Console/CacheClearCommand.php +++ b/src/Console/CacheClearCommand.php @@ -87,9 +87,9 @@ public function fire() protected function getOptions() { return [ - ['file', 'f', InputOption::VALUE_OPTIONAL, 'specify file'], - ['time', 't', InputOption::VALUE_OPTIONAL, 'clear all of the files that are specified duration time'], - ['cache_id', 'cache', InputOption::VALUE_OPTIONAL, 'specified cache_id groups'], + ['file', 'f', InputOption::VALUE_OPTIONAL, 'Specify file'], + ['time', 't', InputOption::VALUE_OPTIONAL, 'Clear all of the files that are specified duration time'], + ['cache_id', 'cache', InputOption::VALUE_OPTIONAL, 'Specified cache_id groups'], ]; } } diff --git a/src/Console/ClearCompiledCommand.php b/src/Console/ClearCompiledCommand.php index 39cf59b..9f0480f 100644 --- a/src/Console/ClearCompiledCommand.php +++ b/src/Console/ClearCompiledCommand.php @@ -81,8 +81,8 @@ public function fire() protected function getOptions() { return [ - ['file', 'f', InputOption::VALUE_OPTIONAL, 'specify file'], - ['compile_id', 'compile', InputOption::VALUE_OPTIONAL, 'specified compile_id'], + ['file', 'f', InputOption::VALUE_OPTIONAL, 'Specify file'], + ['compile_id', 'compile', InputOption::VALUE_OPTIONAL, 'Specified compile_id'], ]; } } diff --git a/src/Console/OptimizeCommand.php b/src/Console/OptimizeCommand.php index 6850393..5ff3b99 100644 --- a/src/Console/OptimizeCommand.php +++ b/src/Console/OptimizeCommand.php @@ -78,7 +78,7 @@ public function fire() $contents = ob_get_contents(); ob_get_clean(); $this->info("{$compileFiles} template files recompiled"); - $this->comment(str_replace("
", "\n", trim($contents))); + $this->comment(str_replace("
", "", trim($contents))); return; } @@ -90,8 +90,8 @@ public function fire() protected function getOptions() { return [ - ['extension', 'e', InputOption::VALUE_OPTIONAL, 'specified smarty file extension'], - ['force', null, InputOption::VALUE_NONE, 'compiles template files found in views directory'], + ['extension', 'e', InputOption::VALUE_OPTIONAL, 'Specified smarty file extension'], + ['force', null, InputOption::VALUE_NONE, 'Compiles template files found in views directory'], ]; } diff --git a/src/SmartyFactory.php b/src/SmartyFactory.php index 6df26fc..bed9a08 100644 --- a/src/SmartyFactory.php +++ b/src/SmartyFactory.php @@ -17,7 +17,6 @@ */ namespace Ytake\LaravelSmarty; -use Ytake\LaravelSmarty\Smarty; use ReflectionClass; use Illuminate\View\Factory; use Illuminate\View\ViewFinderInterface; diff --git a/src/SmartyServiceProvider.php b/src/SmartyServiceProvider.php index c5b38a5..79857dd 100644 --- a/src/SmartyServiceProvider.php +++ b/src/SmartyServiceProvider.php @@ -17,7 +17,6 @@ */ namespace Ytake\LaravelSmarty; -use Ytake\LaravelSmarty\Smarty; use Illuminate\Support\ServiceProvider; /**