for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cviebrock\LaravelElasticsearch;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
/**
* Class ServiceProvider
*
* @package Cviebrock\LaravelElasticsearch
*/
class LumenServiceProvider extends BaseServiceProvider
{
* Indicates if loading of the provider is deferred.
* @var bool
protected $defer = false;
* Register the service provider.
* @return void
public function register()
$app = $this->app;
$app->singleton('elasticsearch.factory', function($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new Factory();
});
$app->singleton('elasticsearch', function($app) {
return new LumenManager($app, $app['elasticsearch.factory']);
$this->withFacades();
}
protected function withFacades() {
class_alias('\Cviebrock\LaravelElasticsearch\Facade', 'Elasticsearch');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.