for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ScoutEngines\Solr;
use Illuminate\Support\ServiceProvider;
use Laravel\Scout\EngineManager;
use Solarium\Client;
class SolrProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
app(EngineManager::class)->extend('solr', function ($app) {
app
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
app(EngineManager::class)->extend('solr', function (/** @scrutinizer ignore-unused */ $app) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$config = [
'endpoint' => [
'default' => [
'host' => config('scout.solr.host'),
config
'host' => /** @scrutinizer ignore-call */ config('scout.solr.host'),
'port' => config('scout.solr.port'),
'path' => config('scout.solr.path'),
'core' => config('scout.solr.core'),
],
];
return new SolrEngine(new Client($config));
});
}