for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Donii Sergii <[email protected]>
*/
namespace sonrac\Arango;
use Illuminate\Database\Connection as IlluminateConnection;
use Illuminate\Support\ServiceProvider;
* Class ArangoServiceProvider.
*
class ArangoServiceProvider extends ServiceProvider
{
* Register the service provider.
public function register()
// Add database driver.
$this->app->singleton('arangodb.connection', 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.
$config = config('database.connections.arangodb');
return new Connection($config);
});
IlluminateConnection::resolverFor('arangodb', function ($config) {
$config
return app('arangodb.connection');
$this->app->resolving('db', function ($db) {
$db->extend('arangodb', function ($config) {
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.