Showing 42 of 42 total issues
Expected 1 space after FUNCTION keyword; 0 found Open
Open
Route::prefix('tokens')->name('tokens')->group(function() {
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
Open
Route::bind('token', function($tokenidhash) {
- Exclude checks
Function store
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function store()
{
if (config('app.readonly')) {
abort(404);
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Expected 1 space after FUNCTION keyword; 0 found Open
Open
Route::prefix('login')->name('session')->group(function() {
- Exclude checks
Function breadcrumbsFromAPath
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
function breadcrumbsFromAPath($trail, $path = "/")
{
$trail->push('Codes', route('tokens.code'));
$carry = "";
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Spaces must be used to indent lines; tabs are not allowed Open
Open
));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::get('/', 'SessionsController@create')->name('.create');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::get('{token}/delete', 'TokensController@delete')->name('.delete');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::post('/', 'SessionsController@store')->name('.store');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::get('{token}', 'TokensController@show')->name('.show');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return Token::where('user_id', auth()->guard()->user()->id)
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
Open
'protected_key_encoded' => (KeyProtectedByPassword::createRandomPasswordProtectedKey('secret'))->saveToAsciiSafeString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return view('error', array(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::delete('{token}/delete', 'TokensController@destroy')->name('.destroy');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'errormessage' => 'offline'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::post('/', 'TokensController@store')->name('.store');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::get('{token}/edit', 'TokensController@edit')->name('.edit');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::post('/', 'SessionsController@update')->name('.update');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::post('{token}', 'TokensController@update')->name('.update');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
Route::get('/edit', 'SessionsController@edit')->name('.edit');
- Exclude checks