for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hasantayyar\Synonyms;
use Illuminate\Support\ServiceProvider;
class SynonymsServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Bootstrap the application events.
* @return void
public function boot() {
$this->package('hasantayyar/synonyms');
}
* Register the service provider.
public function register() {
$this->app['synonyms'] = $this->app->share(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 Synonyms;
Synonyms::__construct()
$word
This check looks for function calls that miss required arguments.
});
* Get the services provided by the provider.
* @return array
public function provides() {
return array();
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.