for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DJStarCOM\ServerTiming;
use Illuminate\Support\ServiceProvider;
class ServerTimingServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->registerPublishing();
}
* Register the application services.
public function register()
$this->app->singleton(ServerTiming::class, 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 ServerTiming(new \Symfony\Component\Stopwatch\Stopwatch());
});
* Register config publisher
protected function registerPublishing()
$this->publishes([
__DIR__.'/config/config.php' => config_path('timing.php'),
], 'server-timing-config');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.