for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dazzle\Channel\Model;
use Dazzle\Channel\Model\Null\NullModel;
use Dazzle\Loop\LoopInterface;
use Dazzle\Util\Factory\Factory;
class ModelFactory extends Factory implements ModelFactoryInterface
{
/**
* @param string $name
* @param LoopInterface $loop
*/
public function __construct($name, LoopInterface $loop)
parent::__construct();
$factory = $this;
$factory
->bindParam('name', $name)
->bindParam('loop', $loop)
;
->define(NullModel::class, function($config = []) {
$config
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new NullModel();
})
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.