From 21a2b3f01d40414556407c80e4cd4259733d0b1a Mon Sep 17 00:00:00 2001 From: stancl Date: Sat, 30 May 2020 15:15:07 +0000 Subject: [PATCH 1/3] Apply fixes from StyleCI --- src/Features/TenantConfig.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Features/TenantConfig.php b/src/Features/TenantConfig.php index db4eebc8..fb09a871 100644 --- a/src/Features/TenantConfig.php +++ b/src/Features/TenantConfig.php @@ -44,7 +44,6 @@ class TenantConfig implements Feature public function setTenantConfig(Tenant $tenant): void { /** @var Tenant|Model $tenant */ - foreach (static::$storageToConfigMap as $storageKey => $configKey) { $override = $tenant->getAttribute($storageKey); @@ -53,7 +52,7 @@ class TenantConfig implements Feature foreach ($configKey as $key) { $this->originalConfig[$key] = $this->originalConfig[$key] ?? $this->config[$key]; - $this->config[$key] = $override; + $this->config[$key] = $override; } } else { $this->originalConfig[$configKey] = $this->originalConfig[$configKey] ?? $this->config[$configKey]; From 1fae7a76f24f5bbe63c701b1a0d215697ed62f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 31 May 2020 12:05:50 +0200 Subject: [PATCH 2/3] Update links to 3.x --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a91ce3a4..dd8e65cb 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@

- Laravel 6.x + Laravel 6.x/7.x Latest Stable Version GitHub Actions CI status - codecov - Donate + codecov + Donate

Tenancy for Laravel — stancl/tenancy

@@ -26,7 +26,7 @@ Documentation can be found here: https://tenancyforlaravel.com/docs/v2/ The repository with the documentation source code can be found here: [stancl/tenancy-docs](https://github.com/stancl/tenancy-docs). -### [Need help?](https://github.com/stancl/tenancy/blob/2.x/SUPPORT.md) +### [Need help?](https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md) ### Credits From 7d40b3390caf647c964b062cd636e238f799f040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 31 May 2020 12:20:44 +0200 Subject: [PATCH 3/3] Run CI for 3.x branch too --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d6aa1d7..720925c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,9 @@ env: on: push: - branches: [ 2.x, master ] + branches: [ 3.x, 2.x, master ] pull_request: - branches: [ 2.x, master ] + branches: [ 3.x, 2.x, master ] jobs: tests: