From fd86aef25abc26593af65ff293203203844afcc3 Mon Sep 17 00:00:00 2001 From: crynobone Date: Mon, 15 Oct 2012 23:35:53 +0800 Subject: [PATCH] Trivial improvement to Laravel, while it is not documented, it has been a standard in Laravel to use tab as indentation and new line for curly bracket Signed-off-by: crynobone --- application/config/database.php | 2 +- laravel/auth/drivers/driver.php | 2 +- laravel/database/eloquent/model.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/application/config/database.php b/application/config/database.php index 4aa6b592..067335aa 100644 --- a/application/config/database.php +++ b/application/config/database.php @@ -85,7 +85,7 @@ 'password' => '', 'charset' => 'utf8', 'prefix' => '', - 'schema' => 'public', + 'schema' => 'public', ), 'sqlsrv' => array( diff --git a/laravel/auth/drivers/driver.php b/laravel/auth/drivers/driver.php index 96e90637..9cd9b376 100644 --- a/laravel/auth/drivers/driver.php +++ b/laravel/auth/drivers/driver.php @@ -128,7 +128,7 @@ public function logout() Session::forget($this->token()); - $this->token = null; + $this->token = null; } /** diff --git a/laravel/database/eloquent/model.php b/laravel/database/eloquent/model.php index 914f94ed..d3654a86 100644 --- a/laravel/database/eloquent/model.php +++ b/laravel/database/eloquent/model.php @@ -457,7 +457,8 @@ public function timestamp() * * @return void */ - public function touch(){ + public function touch() + { $this->timestamp(); $this->save(); }