for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kir\Services\Cmd\Dispatcher;
use Kir\Services\Cmd\Dispatcher\AttributeRepositories\MySQLAttributeRepository;
use Kir\Services\Cmd\Dispatcher\AttributeRepositories\SqliteAttributeRepository;
use Kir\Services\Cmd\Dispatcher\Builder\MySQLBuilder;
use Kir\Services\Cmd\Dispatcher\Dispatchers\DefaultDispatcher;
use PDO;
class ServiceDispatcherBuilder {
public static function withSQLite(string $filename): DefaultDispatcher {
$repos = new SqliteAttributeRepository(new PDO(sprintf('sqlite:%s', $filename)));
return new DefaultDispatcher($repos);
}
public static function withMySQL(PDO $pdo, array $options): MySQLBuilder {
$options
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$repos = new MySQLAttributeRepository($pdo);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.