Visual Console Refactor: minor fix

Former-commit-id: 4350b8342f0a813c7283bd8a2bf2a3a76b677c5a
This commit is contained in:
Alejandro Gallardo Escobar 2019-03-26 18:46:48 +01:00
parent e93cb8f9e7
commit ab793257ad
1 changed files with 2 additions and 3 deletions

View File

@ -179,7 +179,7 @@ final class Container extends Model
*
* @override Model::fetchDataFromDB.
*/
public static function fetchDataFromDB(array $filter)
protected static function fetchDataFromDB(array $filter)
{
// Due to this DB call, this function cannot be unit tested without
// a proper mock.
@ -189,8 +189,7 @@ final class Container extends Model
throw new \Exception('error fetching the data from the DB');
}
// New instance.
return new static($row);
return $row;
}