1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:54:03 +00:00
tenancy/src/ResourceSyncing
Márk Magyar 79f740d057
[4.x] General code cleanup (#1278)
* Declare sensitive parameters as sensitive

... just so that they don't show up in logs

* Remove unnecessary null-coalescing

* Simplify return

* Merge isset() calls

* Inline return

* Use nullsafe operator

* Simplify if-else branches

* Use direct empty string comparison instead of strlen()

* Add missing type

* Change interface as events expect a TenantWithDatabase not just a Tenant

* Narrow typehint

* Remove redundant type casts

* Fix style with php-cs-fixer

* Fix typos

* Revert unwanted if-else simplification

* fix phpstan errors

* narrow type

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2024-12-31 00:35:46 +01:00
..
Events Enable single_line_empty_body phpcsfixer rule 2024-04-02 04:31:03 +02:00
Listeners Delete pivot records when deleting SyncMaster using morph pivot (#46) 2024-04-22 12:18:15 +02:00
CentralResourceNotAvailableInPivotException.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
ModelNotSyncMasterException.php reimplement broadcasting channel helpers to support model binding 2024-10-03 21:12:09 +02:00
ParsesCreationAttributes.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
PivotWithRelation.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
ResourceSyncing.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Syncable.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
SyncMaster.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
TenantMorphPivot.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
TenantPivot.php Resource syncing rework (#30) 2024-02-10 19:08:37 +01:00
TriggerSyncingEvents.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00