1
0
Fork 0
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:
Samuel Štancl 2019-01-20 21:02:32 +01:00
parent 19de80582d
commit 1fe599966b
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;