for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NsTechNs\JazzCMS;
use Illuminate\Support\ServiceProvider;
class JazzCMSServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$configPath = __DIR__ . '/../config/jazz-cms.php';
$this->publishes([$configPath => $this->getConfigPath()], 'config');
}
* Register the application services.
public function register()
$this->mergeConfigFrom($configPath, 'jazz-cms');
$this->app->bind(JazzCMS::class, function ($app) {
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$this->app->bind(JazzCMS::class, function (/** @scrutinizer ignore-unused */ $app) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new JazzCMS;
});
$this->app->alias(JazzCMS::class, 'JazzCMS');
* Get the config path
* @return string
protected function getConfigPath()
return config_path('jazz-cms.php');
* Publish the config file
* @param string $configPath
protected function publishConfig($configPath)
$this->publishes([$configPath => config_path('jazz-cms.php')], 'config');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.