for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BBSLab\NovaTranslation\Http\Controllers;
use BBSLab\NovaTranslation\Models\Locale;
use BBSLab\NovaTranslation\NovaTranslation;
use Illuminate\Http\Request;
class LocaleController
{
public function __invoke(Request $request, string $locale)
if (Locale::query()->where('iso', '=', $locale)->exists()) {
exists()
Illuminate\Database\Eloquent\Builder
canUseExistsForExistenceCheck()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
$request->session()->put(
NovaTranslation::localeSessionKey(),
$locale
);
}
return redirect()->back();
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.