mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Some more space / tabs issues [Travis PHPCS=1 fail]
This commit is contained in:
parent
2655d16c13
commit
74eb32696a
1 changed files with 4 additions and 4 deletions
|
@ -1139,9 +1139,9 @@ class DboSource extends DataSource {
|
|||
*/
|
||||
protected function _filterResults(&$results, Model $model, $filtered = array()) {
|
||||
if (!is_array($results)) {
|
||||
return array();
|
||||
}
|
||||
$current = reset($results);
|
||||
return array();
|
||||
}
|
||||
$current = reset($results);
|
||||
if (!is_array($current)) {
|
||||
return array();
|
||||
}
|
||||
|
@ -1255,7 +1255,7 @@ class DboSource extends DataSource {
|
|||
} else {
|
||||
$fetch = null;
|
||||
}
|
||||
if ($queryData['callbacks'] === true || $queryData['callbacks'] === 'after') {
|
||||
if ($queryData['callbacks'] === true || $queryData['callbacks'] === 'after') {
|
||||
$this->_filterResults($fetch, $model);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue