for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of UnderQuery package.
*
* Copyright (c) 2016 Beniamin Jonatan Šimko
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phuria\UnderQuery\Connection;
* @author Beniamin Jonatan Šimko <[email protected]>
* @codeCoverageIgnore
class NullConnection implements ConnectionInterface
{
* @inheritdoc
public function prepareStatement($SQL, $parameters = [])
return null;
}
public function fetchScalar($SQL, array $parameters = [])
$SQL
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$parameters
public function fetchRow($SQL, array $parameters = [])
public function fetchAll($SQL, array $parameters = [])
return [];
public function rowCount($SQL, array $parameters = [])
return 0;
public function execute($SQL, array $parameters = [])
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.