for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Valkyrja Framework package.
*
* (c) Melech Mizrachi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Valkyrja\Asset\Providers;
use Valkyrja\Asset\Adapters\DefaultAdapter;
use Valkyrja\Asset\Asset;
use Valkyrja\Container\Container;
use Valkyrja\Container\Support\Provider;
/**
* Class ServiceProvider.
* @author Melech Mizrachi
class ServiceProvider extends Provider
{
* The items provided by this provider.
* @return string[]
public static function publishers(): array
return [
DefaultAdapter::class => 'publishDefaultAdapter',
Asset::class => 'publishAsset',
];
}
public static function provides(): array
DefaultAdapter::class,
Asset::class,
* Publish the provider.
* @param Container $container The container
* @return void
public static function publish(Container $container): void
$container
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function publish(/** @scrutinizer ignore-unused */ Container $container): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.