Applied fixes from StyleCI

This commit is contained in:
Sujit Prasad
2016-06-21 10:14:51 -04:00
committed by StyleCI Bot
parent f000615e68
commit 268b7b13f6
5 changed files with 128 additions and 99 deletions

View File

@@ -15,10 +15,11 @@ use Redirect;
*
* @author Ladybird <info@ladybirdweb.com>
*/
class WelcomepageController extends Controller {
public function __construct() {
// $this->middleware('board');
class WelcomepageController extends Controller
{
public function __construct()
{
// $this->middleware('board');
}
/**
@@ -26,7 +27,8 @@ class WelcomepageController extends Controller {
*
* @return Response
*/
public function get(System $note) {
public function get(System $note)
{
if (Config::get('database.install') == '%0%') {
return Redirect::route('licence');
}
@@ -38,13 +40,13 @@ class WelcomepageController extends Controller {
return view('themes.default1.client.guest-user.guest', compact('heading', 'content'));
}
public function index() {
public function index()
{
$directory = base_path();
if (file_exists($directory .DIRECTORY_SEPARATOR. ".env")) {
if (file_exists($directory.DIRECTORY_SEPARATOR.'.env')) {
return view('themes.default1.client.helpdesk.guest-user.index');
} else {
return Redirect::route('licence');
}
}
}