for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fomvasss\LaravelStrTokens;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
protected $defer = false;
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$this->publishes([__DIR__.'/../config/str-tokens.php' => config_path('str-tokens.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
$this->publishes([__DIR__.'/../config/str-tokens.php' => /** @scrutinizer ignore-call */ config_path('str-tokens.php')
], 'str-tokens-config');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/str-tokens.php', 'str-tokens');
$this->app->singleton(StrTokenGenerator::class, function () {
return new StrTokenGenerator($this->app);
});