src/ServiceProvider/Pimple.php
Method register
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function register(Container $di)
{
$envFile = "{$this->rootPath}/.env";
if (file_exists($envFile)) {
$envLoader = new Loader("{$this->rootPath}/.env");
Avoid too many return
statements within this method. Open
Open
return new Action\Api\Scope\Box\Delete($c[Repository\Box::class], new Input\BoxDelete(), $c['path.storage']);
Avoid too many return
statements within this method. Open
Open
return new Action\Api\Scope\Box\Definition($c[Repository\Box::class], new Input\Box());
Avoid too many return
statements within this method. Open
Open
return new Action\Scope\Index($c[Repository\Scope::class], new Input\Scope());
Avoid too many return
statements within this method. Open
Open
return new Action\Api\Scope\Box\CreateVersion(new Input\BoxVersion());
Avoid too many return
statements within this method. Open
Open
return new Action\Scopes($c[Repository\Scope::class], new Input\Scope());
Avoid too many return
statements within this method. Open
Open
return new Action\Scope\Box\Definition($c[Repository\Box::class], new Input\Box());
Avoid too many return
statements within this method. Open
Open
return new Action\Scope\Box\SendFile($c[Repository\Box::class], new Input\BoxUpload(), $c['path.storage']);
Avoid too many return
statements within this method. Open
Open
return new Action\Api\Scope\Box\Upload($c[Repository\Box::class], new Input\BoxUpload(), $c['path.storage']);
Avoid too many return
statements within this method. Open
Open
return new Action\Api\Scope\Index($c[Repository\Scope::class], new Input\Scope());
Avoid too many return
statements within this method. Open
Open
return new Action\Api\Scope\Box\SendFile($c[Repository\Box::class], new Input\BoxUpload(), $c['path.storage']);