for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Plugin\PurchaseProcessors\ServiceProvider;
use Doctrine\Common\Collections\ArrayCollection;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Plugin\PurchaseProcessors\Processor\EmptyProcessor;
use Plugin\PurchaseProcessors\Processor\ValidatableEmptyProcessor;
class PurchaseProcessorsServiceProvider implements ServiceProviderInterface
{
public function register(Container $app)
$app->extend(
'eccube.purchase.flow.cart.item_processors',
function (ArrayCollection $processors, Container $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.
$processors[] = new EmptyProcessor();
$processors[] = new ValidatableEmptyProcessor();
return $processors;
}
);