mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 21:54:03 +00:00
Fix #1 (code quality)
This commit is contained in:
parent
19de80582d
commit
1fe599966b
2 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ interface StorageDriver
|
||||||
{
|
{
|
||||||
public function identifyTenant(string $domain): array;
|
public function identifyTenant(string $domain): array;
|
||||||
public function getAllTenants(array $uuids = []): array;
|
public function getAllTenants(array $uuids = []): array;
|
||||||
public function getTenantById(string $uuid, $fields = []): array;
|
public function getTenantById(string $uuid, array $fields = []): array;
|
||||||
public function getTenantIdByDomain(string $domain): ?string;
|
public function getTenantIdByDomain(string $domain): ?string;
|
||||||
public function createTenant(string $domain, string $uuid): array;
|
public function createTenant(string $domain, string $uuid): array;
|
||||||
public function deleteTenant(string $uuid): bool;
|
public function deleteTenant(string $uuid): bool;
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,10 @@ class RedisStorageDriver implements StorageDriver
|
||||||
* Get information about the tenant based on his uuid.
|
* Get information about the tenant based on his uuid.
|
||||||
*
|
*
|
||||||
* @param string $uuid
|
* @param string $uuid
|
||||||
* @param array|string $fields
|
* @param array $fields
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getTenantById(string $uuid, $fields = []): array
|
public function getTenantById(string $uuid, array $fields = []): array
|
||||||
{
|
{
|
||||||
$fields = (array) $fields;
|
$fields = (array) $fields;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue