for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Spryker Commerce OS.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Service\Flysystem;
use Spryker\Service\Flysystem\FlysystemDependencyProvider as SprykerFlysystemDependencyProvider;
use Spryker\Service\FlysystemFtpFileSystem\Plugin\Flysystem\FtpFilesystemBuilderPlugin;
use Spryker\Service\FlysystemLocalFileSystem\Plugin\Flysystem\LocalFilesystemBuilderPlugin;
use Spryker\Service\Kernel\Container;
class FlysystemDependencyProvider extends SprykerFlysystemDependencyProvider
{
* @param \Spryker\Service\Kernel\Container $container
*
* @return \Spryker\Service\Kernel\Container
protected function addFilesystemBuilderPluginCollection($container): Container
$container->set(static::PLUGIN_COLLECTION_FILESYSTEM_BUILDER, 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->set(static::PLUGIN_COLLECTION_FILESYSTEM_BUILDER, 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 $this->getFilesystemBuilderPluginCollection();
});
return $container;
}
* @return array<\Spryker\Service\Flysystem\Dependency\Plugin\FlysystemFilesystemBuilderPluginInterface>
protected function getFilesystemBuilderPluginCollection(): array
return [
new FtpFilesystemBuilderPlugin(),
new LocalFilesystemBuilderPlugin(),
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.