Commit Graph

21 Commits (ccfd39fd908fd136b2e3fdbd11446c71ebef55a9)

Author SHA1 Message Date
Your Name e7b70c6084 refactor: extract duplicate patterns into shared methods
1. Add FractalService with static item() and collection() helpers
   replacing 22 call sites that repeated the 4-line Fractal Manager
   + ArraySerializer boilerplate.

2. Add AccountInterstitial::createFromStatus() factory method
   consolidating 4 identical 15-line blocks that create interstitials
   with status metadata.

3. Add NotificationService::createNotification() to handle the
   repeated pattern of creating, caching, and registering a
   notification in the recipient's feed.

4. Add NotificationService::firstOrCreateNotification() for
   idempotent notifications (share/boost, mention) that should
   only notify once per actor+action+item combination.
4 weeks ago
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
1 month ago
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
1 month ago
Your Name ca6c875bbb Fix PHPStan class.notFound issues 11 months ago
Daniel Supernault 873031538d
Update FollowPipeline 2 years ago
Daniel Supernault 7b4256549a
Update FollowPipeline 2 years ago
Daniel Supernault fa97a1f38e
Update notification pipelines, fix non-local saving 3 years ago
Daniel Supernault 0b5157675f
Update FollowPipeline, improve follower/following count calculation 3 years ago
Daniel Supernault 6cdb5bc672
Update Notification logic, remove message and rendered fields 3 years ago
Daniel Supernault 6153b620bf
Update FollowPipeline, fix followers_count and following_count counters 4 years ago
Daniel Supernault 85fb46668c
Update FollowRequest model 4 years ago
Daniel Supernault c1f14f89f6
Update FollowPipeline, fix cache invalidation bug 5 years ago
Daniel Supernault c369882b48
Update Redis namespace 7 years ago
Daniel Supernault 9d2b5c43ba
Update FollowPipeline 7 years ago
Daniel Supernault 626bb4e700
Update FollowPipeline 8 years ago
Daniel Supernault 52bbe0061a
Update FollowPipeline 8 years ago
Daniel Supernault 95799c5c70
Update FollowPipeline 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault eaf465914a Add comment notifications 8 years ago
Daniel Supernault b5dbff40e3 Add FollowPipeline job 8 years ago