From e03e9ae3edfb992c02c210cb529db0e7871d279a Mon Sep 17 00:00:00 2001 From: REJack Date: Fri, 16 Nov 2018 09:06:57 +0100 Subject: [PATCH] updated Admin/Migrate (added phpdocs) --- application/Controllers/Admin/Migrate.php | 35 +++++++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/application/Controllers/Admin/Migrate.php b/application/Controllers/Admin/Migrate.php index 95fd8cf..c357c87 100644 --- a/application/Controllers/Admin/Migrate.php +++ b/application/Controllers/Admin/Migrate.php @@ -1,21 +1,50 @@ + * @author Raphael Jackstadt + * @copyright 2014-2017 Emre Akay + * @copyright 2018 Magefly + * @license https://opensource.org/licenses/MIT MIT License + * @link https://github.com/magefly/CodeIgniter-Aauth + */ + namespace App\Controllers\Admin; use CodeIgniter\Controller; +/** + * Aauth Admin/Migrate Controller. + * + * @package CodeIgniter-Aauth + */ class Migrate extends Controller { + /** + * Index + * + * @return void + */ public function index() { - $config = new \Config\Aauth(); + $config = new \Config\Aauth(); $migrate = \Config\Services::migrations(); try { - $migrate->latest('App', $config->dbProfile); + $migrate->latest('App', $config->dbProfile); } catch (\Exception $e) { - // Do something with the error here... + // Do something with the error here... } } }