app/Http/Controllers/CuratedRegisterController.php
File CuratedRegisterController.php
has 350 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
Method stepTwo
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function stepTwo($request)
{
if($request->filled('reason')) {
$request->session()->put('cur-reg.form-reason', $request->input('reason'));
}
Method resendConfirmationProcess
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function resendConfirmationProcess(Request $request)
{
$rules = [
'email' => [
'required',
Method conciergeFormStore
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function conciergeFormStore(Request $request)
{
abort_if($request->user(), 404);
$request->session()->increment('cur-reg-con-attempt');
abort_unless(
Method conciergeStore
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function conciergeStore(Request $request)
{
abort_if($request->user(), 404);
$rules = [
'sid' => 'required_if:action,email|integer|min:1|max:20000000',
Avoid too many return
statements within this method. Open
Open
return $fail('Username cannot be used.');
Avoid too many return
statements within this method. Open
Open
return $fail('Username is invalid. Username must be alpha-numeric and may contain dashes (-), periods (.) and underscores (_).');
Avoid too many return
statements within this method. Open
Open
return $fail('Email is invalid.');
Avoid too many return
statements within this method. Open
Open
return $request->all();