Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
@@ -218,17 +218,16 @@ class InstallController extends Controller
|
||||
* checking prerequisites.
|
||||
*
|
||||
* @param type InstallerRequest $request
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function accountcheck(Request $request)
|
||||
{
|
||||
$validator = \Validator::make($request->all(), [
|
||||
'firstname' => 'required|max:20',
|
||||
'Lastname' => 'required|max:20',
|
||||
'email' => 'required|max:50|email',
|
||||
'username' => 'required|max:50|min:3',
|
||||
'password' => 'required|min:6',
|
||||
'firstname' => 'required|max:20',
|
||||
'Lastname' => 'required|max:20',
|
||||
'email' => 'required|max:50|email',
|
||||
'username' => 'required|max:50|min:3',
|
||||
'password' => 'required|min:6',
|
||||
'confirmpassword' => 'required|same:password',
|
||||
]);
|
||||
|
||||
@@ -267,7 +266,7 @@ class InstallController extends Controller
|
||||
}
|
||||
|
||||
$changed = UnAuth::changeLanguage($language);
|
||||
if (!$changed) {
|
||||
if (! $changed) {
|
||||
return \Redirect::back()->with('fails', 'Invalid language');
|
||||
}
|
||||
|
||||
@@ -286,14 +285,14 @@ class InstallController extends Controller
|
||||
// creating an user
|
||||
$user = User::updateOrCreate(['id' => 1], [
|
||||
'first_name' => $firstname,
|
||||
'last_name' => $lastname,
|
||||
'email' => $email,
|
||||
'user_name' => $username,
|
||||
'password' => Hash::make($password),
|
||||
'last_name' => $lastname,
|
||||
'email' => $email,
|
||||
'user_name' => $username,
|
||||
'password' => Hash::make($password),
|
||||
//'assign_group' => 1,
|
||||
'primary_dpt' => 1,
|
||||
'active' => 1,
|
||||
'role' => 'admin',
|
||||
'active' => 1,
|
||||
'role' => 'admin',
|
||||
]);
|
||||
|
||||
// checking if the user have been created
|
||||
@@ -455,7 +454,7 @@ class InstallController extends Controller
|
||||
if (is_file(base_path().DIRECTORY_SEPARATOR.'.env')) {
|
||||
unlink(base_path().DIRECTORY_SEPARATOR.'.env');
|
||||
}
|
||||
if (!is_file(base_path().DIRECTORY_SEPARATOR.'example.env')) {
|
||||
if (! is_file(base_path().DIRECTORY_SEPARATOR.'example.env')) {
|
||||
fopen(base_path().DIRECTORY_SEPARATOR.'example.env', 'w');
|
||||
}
|
||||
|
||||
@@ -494,7 +493,7 @@ class InstallController extends Controller
|
||||
try {
|
||||
$tableNames = \Schema::getConnection()->getDoctrineSchemaManager()->listTableNames();
|
||||
if (count($tableNames) === 0) {
|
||||
if (!Cache::get('dummy_data_installation')) {
|
||||
if (! Cache::get('dummy_data_installation')) {
|
||||
Artisan::call('migrate', ['--force' => true]);
|
||||
$db_install_method = 'migrate';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user