for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Yves\Braintree;
use Spryker\Yves\Currency\Plugin\CurrencyPlugin;
use Spryker\Yves\Kernel\AbstractBundleDependencyProvider;
use Spryker\Yves\Kernel\Container;
class BraintreeDependencyProvider extends AbstractBundleDependencyProvider
{
public const PLUGIN_CURRENCY = 'PLUGIN_CURRENCY';
public const CLIENT_QUOTE = 'QUOTE_CLIENT';
* @param \Spryker\Yves\Kernel\Container $container
*
* @return \Spryker\Yves\Kernel\Container|\Spryker\Zed\Kernel\Container
public function provideDependencies(Container $container)
$container = $this->addCurrencyPlugin($container);
return $container;
}
* @return \Spryker\Yves\Kernel\Container
protected function addCurrencyPlugin(Container $container)
$container[static::PLUGIN_CURRENCY] = function (Container $container) {
$container
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$container[static::PLUGIN_CURRENCY] = function (/** @scrutinizer ignore-unused */ Container $container) {
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 CurrencyPlugin();
};
protected function addQuoteClinet(Container $container): Container
$container[static::CLIENT_QUOTE] = function (Container $container) {
return $container->getLocator()->quote()->client();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.