for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fomvasss\LaravelEUS;
use Fomvasss\LaravelEUS\EUSGenerator;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
protected $defer = false;
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$this->publishedConfig();
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/eus.php', 'eus');
$this->app->bind(\Fomvasss\LaravelEUS\Contracts\EUSGenerator::class, function () {
return new EUSGenerator($this->app);
});
protected function publishedConfig()
$this->publishes([
__DIR__.'/../config/eus.php' => config_path('eus.php')
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
__DIR__.'/../config/eus.php' => /** @scrutinizer ignore-call */ config_path('eus.php')
], 'eus');