Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
@@ -12,7 +12,7 @@ class ConfigurationServiceTest extends TestCase
public function test_store_creates_config(): void
{
$service = new ConfigurationService();
$service = new ConfigurationService;
$config = $service->store([
'config_key' => 'school_year',
'config_value' => '2025-2026',
@@ -9,7 +9,7 @@ class SchoolCalendarContextServiceTest extends TestCase
{
public function test_event_types_returns_list(): void
{
$service = new SchoolCalendarContextService();
$service = new SchoolCalendarContextService;
$types = $service->eventTypes();
$this->assertNotEmpty($types);
@@ -9,7 +9,7 @@ class SchoolCalendarFormatterServiceTest extends TestCase
{
public function test_format_event_sets_background_for_no_school(): void
{
$service = new SchoolCalendarFormatterService();
$service = new SchoolCalendarFormatterService;
$formatted = $service->formatEvent([
'id' => 1,
'title' => 'No School Day',
@@ -27,7 +27,7 @@ class SchoolCalendarFormatterServiceTest extends TestCase
public function test_format_event_normalizes_iso_dates_to_plain_calendar_date(): void
{
$service = new SchoolCalendarFormatterService();
$service = new SchoolCalendarFormatterService;
$formatted = $service->formatEvent([
'id' => 2,
'title' => 'First Day of School',
@@ -48,7 +48,7 @@ class SchoolCalendarMeetingServiceTest extends TestCase
],
]);
$service = new SchoolCalendarMeetingService();
$service = new SchoolCalendarMeetingService;
$rows = $service->listMeetings('2025-2026', 'parent', 10);
$this->assertCount(1, $rows);
@@ -16,7 +16,7 @@ class SchoolCalendarMutationServiceTest extends TestCase
public function test_create_persists_event(): void
{
$context = new SchoolCalendarContextService();
$context = new SchoolCalendarContextService;
$notifier = Mockery::mock(SchoolCalendarNotificationService::class);
$notifier->shouldReceive('notify')->andReturn([]);
@@ -47,7 +47,7 @@ class SchoolCalendarMutationServiceTest extends TestCase
'notification_sent' => 0,
]);
$context = new SchoolCalendarContextService();
$context = new SchoolCalendarContextService;
$notifier = Mockery::mock(SchoolCalendarNotificationService::class);
$notifier->shouldReceive('notify')->andReturn([]);
@@ -44,7 +44,7 @@ class SchoolCalendarQueryServiceTest extends TestCase
],
]);
$service = new SchoolCalendarQueryService();
$service = new SchoolCalendarQueryService;
$events = $service->listEvents(['school_year' => '2025-2026']);
$this->assertCount(1, $events);
@@ -84,7 +84,7 @@ class SchoolCalendarQueryServiceTest extends TestCase
],
]);
$service = new SchoolCalendarQueryService();
$service = new SchoolCalendarQueryService;
$events = $service->listEvents(['school_year' => '2025-2026']);
$filtered = $service->filterEventsForAudience($events, 'parent');
@@ -2,10 +2,8 @@
namespace Tests\Unit\Services\Settings;
use App\Models\Setting;
use App\Services\Settings\SettingsService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
use Tests\TestCase;
class SettingsServiceTest extends TestCase
@@ -14,7 +12,7 @@ class SettingsServiceTest extends TestCase
public function test_update_persists_settings(): void
{
$service = new SettingsService();
$service = new SettingsService;
$result = $service->update([
'site_name' => 'Alrahma',