feat: update php docs

This commit is contained in:
Christy Jacob 2022-07-18 16:58:59 +05:30
parent 58d8b7e148
commit 4f720c30dd

View file

@ -16,8 +16,8 @@ use Utopia\Database\Adapter\MariaDB;
use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Authorization;
use Utopia\Cache\Adapter\Redis as RedisCache; use Utopia\Cache\Adapter\Redis as RedisCache;
class DatabasePool { class DatabasePool
{
/** /**
* @var array * @var array
* *
@ -48,11 +48,11 @@ class DatabasePool {
*/ */
public function __construct(array $consoleDB, array $projectDB) public function __construct(array $consoleDB, array $projectDB)
{ {
if(count($consoleDB) != 1) { if (count($consoleDB) != 1) {
throw new Exception('Console DB should contain only one entry', 500); throw new Exception('Console DB should contain only one entry', 500);
} }
if(empty($projectDB)) { if (empty($projectDB)) {
throw new Exception('Project DB is not defined', 500); throw new Exception('Project DB is not defined', 500);
} }