for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Akibatech\FreeMobileSms;
use Akibatech\FreeMobileSms\FreeMobileSms;
/**
* Class ServiceProvider
*
* @package Akibatech\FreeMobileSms
*/
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
* @var bool
protected $defer = false;
* @var string
protected $configName = 'laravel-free-mobile-sms';
//-------------------------------------------------------------------------
* Register the service provider.
* @return void
public function register()
$configPath = __DIR__ . '/../config/' . $this->configName . '.php';
$this->mergeConfigFrom($configPath, $this->configName);
$this->app->bind(FreeMobileSms::class, FreeMobileSms::class);
$this->app->singleton('freemobile', 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 FreeMobileSms();
});
$this->app->alias('freemobile', FreeMobileSms::class);
}
* Bootstrap the application events.
public function boot()
$this->publishes([$configPath => config_path($this->configName . '.php')], 'config');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.