for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Service provider for UnionCloud
*/
namespace Twigger\UnionCloud\API;
use Illuminate\Support\ServiceProvider;
* Allow Laravel to use UnionCloud
* Class UnionCloudServiceProvider
*
* @package Twigger\UnionCloud\API\Laravel
class UnionCloudServiceProvider 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->publishes([
__DIR__.'/../publish/config/unioncloud.php' => config_path('unioncloud.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
__DIR__.'/../publish/config/unioncloud.php' => /** @scrutinizer ignore-call */ config_path('unioncloud.php'),
], 'configtest');
}
* Register the service provider.
public function register()
$this->app->singleton('Twigger\UnionCloud\API\UnionCloud', 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->singleton('Twigger\UnionCloud\API\UnionCloud', 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.
$unionCloud = new UnionCloud([
'email' => config('unioncloud.v0auth.email', 'email'),
config
'email' => /** @scrutinizer ignore-call */ config('unioncloud.v0auth.email', 'email'),
'password' => config('unioncloud.v0auth.password', 'password'),
'appID' => config('unioncloud.v0auth.appID', 'appID'),
'appPassword' => config('unioncloud.v0auth.appPassword', 'appPassword'),
]);
$unionCloud->setBaseURL(config('unioncloud.baseURL', 'union.unioncloud.org'));
return $unionCloud;
});