for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Softbox\Persistence\Core\SQL;
class PersistenceService
{
/**
* PersistenceService constructor.
*/
public function __construct()
}
public function query($sql, $params = [])
$sql
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$params
return [];
public function getColsOfTable($tableName)
return array_keys($this->getMetaData($tableName));
public function getMetaData($table)
$table
return [
"a" => [
"size" => 10,
"type" => "int",
],
"b" => [
"type" => "varchar",
"c" => [
];
public function existsTable($tableName)
return $tableName === 'teste';
public function exec($sql, $values = [])
return $values;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.