for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers;
use App\Setting;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
class StartController extends Controller
{
/**
* Redirect the browser to the appropriate shop site
*/
public function index(Request $request)
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function index(/** @scrutinizer ignore-unused */ Request $request)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
if (Auth::user() != null && Auth::user()->hasPermission('SELL_TICKETS')) {
return redirect()->route('retail.sell.events');
}
return redirect()->route('ts.events');
* Change the current locale to the given value
public function changeLocale($locale)
session(['locale' => $locale]);
return redirect()->back();
* Return the currently stored logo
public function getLogo()
$logo = Setting::where('name', 'logo')->first();
if( $logo ) {
return response()->file(Storage::path($logo->value));
} else {
return redirect(asset('img/logos/fa-ticket.png'));
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.