for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Childish\query;
/**
* Processor
*
* @author Pu ShaoWei <[email protected]>
* @date 2017/12/7
* @package Childish
* @version 1.0
*/
class Processor
{
* Process the results of a "select" query.
* @param \Childish\query\Builder $query
* @param array $results
* @return array
public function processSelect(Builder $query, $results)
$query
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $results;
}
* Process an "insert get ID" query.
* @param string $sql
* @param array $values
* @param string $sequence
* @return int
public function processInsertGetId(Builder $query, $sql, $values, $sequence = null)
$query->getConnection()->insert($sql, $values);
$id = $query->getConnection()->getPdo()->lastInsertId($sequence);
return is_numeric($id) ? (int) $id : $id;
* Process the results of a column listing query.
public function processColumnListing($results)
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.