for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: lenovo
* Date: 6/23/2018
* Time: 7:37 PM
*/
namespace TimSDK\Core\ServiceProviders;
use Pimple\Container;
use TimSDK\Core\ApiAlias;
use TimSDK\Foundation\ServiceProviders\ServiceProvider;
class ApiAliasServiceProvider extends ServiceProvider
{
* Registers services on the given container.
*
* This method should only be used to configure services and parameters.
* It should not get services.
* @param Container $pimple A container instance
public function register(Container $pimple)
$pimple['apiAlias'] = function ($pimple) {
$pimple
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$pimple['apiAlias'] = function (/** @scrutinizer ignore-unused */ $pimple) {
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 ApiAlias();
};
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.