Repository Analysis

filamentphp/filament

A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire

3.2 Likely human-written View on GitHub
3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-05-29
Last Push
30,935
Stars
PHP
Language
574,852
Lines of Code
5912
Files
1637
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 0LOW 1636

Pattern Findings

1637 matches across 4 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1541 hits · 1723 pts
SeverityFileLineSnippet
LOWtests/src/Forms/Components/RepeaterTest.php2778 public function getFilamentTranslatableContentDriver(): ?string
LOW…orms/Components/RichEditor/RichContentRendererTest.php1964 public function saveUploadedFileAttachment(TemporaryUploadedFile $file): mixed
LOW…orms/Components/RichEditor/RichContentRendererTest.php1969 public function getDefaultFileAttachmentVisibility(): ?string
LOW…orms/Components/RichEditor/RichContentRendererTest.php1974 public function isExistingRecordRequiredToSaveNewFileAttachments(): bool
LOW…orms/Components/RichEditor/RichContentRendererTest.php1996 public function getFileAttachmentProvider(): ?FileAttachmentProvider
LOW…orms/Components/RichEditor/RichContentRendererTest.php2005 public function saveUploadedFileAttachment(TemporaryUploadedFile $file): mixed
LOW…orms/Components/RichEditor/RichContentRendererTest.php2010 public function getDefaultFileAttachmentVisibility(): ?string
LOW…orms/Components/RichEditor/RichContentRendererTest.php2015 public function isExistingRecordRequiredToSaveNewFileAttachments(): bool
LOW…s/Components/RichEditor/RichContentCustomBlockTest.php67 public static function shouldApplyProseStylingToPreview(array $config): bool
LOW…ents/RichEditor/StateCasts/RichEditorStateCastTest.php535 public static function shouldApplyProseStylingToPreview(array $config): bool
LOWtests/src/Panels/Commands/MakeThemeCommandTest.php25function createCommandWithMockedFilesystem(string $viteConfigContent = '', string $panelProviderContent = '', string $pa
LOWtests/src/Panels/GlobalSearch/GlobalSearchTest.php129 public static function getGloballySearchableAttributes(): array
LOWtests/src/Support/EvaluatesClosuresTest.php121 protected function resolveDefaultClosureDependencyForEvaluationByName(string $parameterName): array
LOWtests/src/Support/EvaluatesClosuresTest.php129 protected function resolveDefaultClosureDependencyForEvaluationByType(string $parameterType): array
LOW…mponents/ColorMaps/IconButtonComponentColorMapTest.php12function defaultIconButtonColorMap(array $palette): IconButtonComponentColorMap
LOWtests/src/Actions/Exports/ExporterTest.php22 public static function getCompletedNotificationBody(Export $export): string
LOWtests/src/Fixtures/RichEditor/TestRichContentPlugin.php65 public function getDisabledToolbarButtons(): array
LOW…xtures/Forms/RichEditor/FileAttachmentProviderStub.php27 public function saveUploadedFileAttachment(TemporaryUploadedFile $file): mixed
LOW…xtures/Forms/RichEditor/FileAttachmentProviderStub.php32 public function getDefaultFileAttachmentVisibility(): ?string
LOW…xtures/Forms/RichEditor/FileAttachmentProviderStub.php37 public function isExistingRecordRequiredToSaveNewFileAttachments(): bool
LOW…/Forms/RichEditor/PluginWithFileAttachmentProvider.php25 public function getFileAttachmentProvider(): ?FileAttachmentProvider
LOW…es/Translatable/RecordingTranslatableContentDriver.php26 public function getRecordAttributesToArray(Model $record): array
LOW…es/Translatable/RecordingTranslatableContentDriver.php55 public function applySearchConstraintToQuery(Builder $query, string $column, string $search, string $whereClause, ?b
LOW…ges/CreateAnotherPreservingRepeaterWithDefaultPost.php35 protected function preserveFormDataWhenCreatingAnother(array $data): array
LOW…es/Posts/Pages/CreateAnotherPreservingRepeaterPost.php32 protected function preserveFormDataWhenCreatingAnother(array $data): array
LOW…ources/Posts/Pages/CreateAnotherPreservingDataPost.php13 protected function preserveFormDataWhenCreatingAnother(array $data): array
LOW…ixtures/Resources/Users/Resources/UserPostResource.php27 public static function getParentResourceRegistration(): ?ParentResourceRegistration
LOW…/Resources/Companies/Resources/CompanyTeamResource.php27 public static function getParentResourceRegistration(): ?ParentResourceRegistration
LOWtests/src/Notifications/NotificationTest.php177function getLastNotificationAction()
LOWdocs/03-resources/06-deleting-records.md68public static function getRecordRouteBindingEloquentQuery(): Builder
LOWdocs/03-resources/07-managing-relationships.md787public function hasCombinedRelationManagerTabsWithContent(): bool
LOWdocs/03-resources/03-creating-records.md13protected function mutateFormDataBeforeCreate(array $data): array
LOWdocs/03-resources/03-creating-records.md84protected function getCreatedNotificationTitle(): ?string
LOWdocs/03-resources/03-creating-records.md143protected function preserveFormDataWhenCreatingAnother(array $data): array
LOWdocs/03-resources/03-creating-records.md152protected function preserveFormDataWhenCreatingAnother(array $data): array
LOWdocs/03-resources/04-editing-records.md109protected function getSavedNotificationTitle(): ?string
LOWdocs/03-resources/10-global-search.md32public static function getGlobalSearchResultTitle(Model $record): string | Htmlable
LOWdocs/03-resources/10-global-search.md43public static function getGloballySearchableAttributes(): array
LOWdocs/03-resources/10-global-search.md54public static function getGlobalSearchResultDetails(Model $record): array
LOWdocs/03-resources/10-global-search.md70public static function getGlobalSearchEloquentQuery(): Builder
LOWdocs/03-resources/10-global-search.md96public static function getGlobalSearchResultActions(Model $record): array
LOWdocs/03-resources/08-nesting.md62public static function getParentResourceRegistration(): ?ParentResourceRegistration
LOWdocs/07-users/03-tenancy.md299public static function isTenantSubscriptionRequired(Panel $panel): bool
LOWdocs/06-navigation/04-clusters.md141public static function shouldRegisterSubNavigation(): bool
LOWdocs/06-navigation/01-overview.md103public static function getNavigationBadgeTooltip(): ?string
LOWdocs/09-advanced/04-file-generation.md107protected function addNavigationIconPropertyToClass(ClassType $class): void
LOWdocs/09-advanced/04-file-generation.md125protected function configureNavigationIconProperty(Property $property): void
LOWpackages/tables/.stubs.php12 public function assertCanRenderTableColumn(string $name): static {}
LOWpackages/tables/.stubs.php14 public function assertCanNotRenderTableColumn(string $name): static {}
LOWpackages/tables/.stubs.php18 public function assertTableColumnDoesNotExist(string $name, ?Closure $checkColumnUsing = null, $record = null):
LOWpackages/tables/.stubs.php24 public function assertTableColumnStateSet(string $name, $state, $record): static {}
LOWpackages/tables/.stubs.php26 public function assertTableColumnStateNotSet(string $name, $state, $record): static {}
LOWpackages/tables/.stubs.php28 public function assertTableColumnSummarizerExists(string $columnName, string $summarizerId): static {}
LOWpackages/tables/.stubs.php30 public function assertTableColumnSummarySet(string $columnName, string $summarizerId, $state, bool $isCurrentPag
LOWpackages/tables/.stubs.php32 public function assertTableColumnSummaryNotSet(string $columnName, string $summarizerId, $state, bool $isCurrent
LOWpackages/tables/.stubs.php34 public function assertTableColumnFormattedStateSet(string $name, $state, $record): static {}
LOWpackages/tables/.stubs.php36 public function assertTableColumnFormattedStateNotSet(string $name, $state, $record): static {}
LOWpackages/tables/.stubs.php38 public function assertTableColumnHasExtraAttributes(string $name, array $attributes, $record): static {}
LOWpackages/tables/.stubs.php40 public function assertTableColumnDoesNotHaveExtraAttributes(string $name, array $attributes, $record): static {}
LOWpackages/tables/.stubs.php42 public function assertTableColumnHasDescription(string $name, $description, $record, $position = 'below'): stati
1481 more matches not shown…
Fake / Example Data94 hits · 103 pts
SeverityFileLineSnippet
LOWtests/src/Tables/ColumnTest.php1193 $company = Company::factory()->create(['name' => 'Acme Corp']);
LOWtests/src/Tables/ColumnTest.php1399 $company = Company::factory()->create(['name' => 'Acme Corp']);
LOWtests/src/Tables/ColumnTest.php1486 $company = Company::factory()->create(['name' => 'Acme Corp']);
LOWtests/src/Tables/GroupingTest.php166 $companyNames = ['Acme Corp', 'Beta Inc', 'Gamma LLC', 'Delta Co', 'Epsilon Ltd'];
LOWtests/src/Tables/GroupingTest.php365 $company = Company::factory()->create(['name' => 'Acme Corp']);
LOWtests/src/Tables/GroupingTest.php750 $companyNames = ['Acme Corp', 'Beta Inc', 'Gamma LLC', 'Delta Co', 'Epsilon Ltd'];
LOWtests/src/Tables/GroupingTest.php777 $company = Company::factory()->create(['name' => 'Acme Corp']);
LOWtests/src/Tables/Filters/QueryBuilderTest.php597 $author = User::factory()->create(['name' => 'John Doe']);
LOWtests/src/Tables/Filters/QueryBuilderTest.php621 $author = User::factory()->create(['name' => 'John Doe']);
LOWtests/src/Tables/Filters/QueryBuilderTest.php808 $author = User::factory()->create(['name' => 'John Doe']);
LOWtests/src/Tables/Columns/SelectColumnTest.php316 $user = User::factory()->create(['name' => 'John Doe']);
LOWtests/src/Tables/Columns/SelectColumnTest.php351 $user = User::factory()->create(['name' => 'Jane Doe']);
LOWtests/src/Tables/Columns/SelectColumnTest.php360 expect($label)->toBe('Jane Doe');
LOWtests/src/Forms/ActionTest.php252 ->assertDispatched('state-captured', state: '555-1234');
LOWtests/src/Forms/ActionTest.php258 ->assertDispatched('state-captured', state: ['street' => '123 Main St', 'city' => 'Springfield']);
LOWtests/src/Forms/ActionTest.php291 ->default('555-1234')
LOWtests/src/Forms/ActionTest.php301 ->default('123 Main St'),
LOWtests/src/Forms/AfterStateUpdatedJsTest.php22 ->fill('#form\.name', 'John Doe')
LOWtests/src/Forms/AfterStateUpdatedJsTest.php28 ->fill('#form\.flex_name', 'Jane Doe')
LOWtests/src/Forms/Components/SelectTest.php2084 User::factory()->create(['name' => 'John Doe']);
LOWtests/src/Forms/Components/SelectTest.php2093 expect(array_values($results))->toContain('John Doe');
LOWtests/src/Forms/Components/TextInputTest.php538 ->type('[data-testid="text-input"] input', 'John Doe')
LOW…orms/Components/RichEditor/RichContentRendererTest.php39 'name' => 'John Doe',
LOW…orms/Components/RichEditor/RichContentRendererTest.php44 expect($html)->toContain('John Doe');
LOW…orms/Components/RichEditor/RichContentRendererTest.php293 'user_name' => 'John Doe',
LOW…orms/Components/RichEditor/RichContentRendererTest.php1181 'label' => 'John Doe',
LOW…orms/Components/RichEditor/RichContentRendererTest.php1218 ->getLabelsUsing(fn (array $ids): array => ['1' => 'John Doe']),
LOW…orms/Components/RichEditor/RichContentRendererTest.php1247 ->getLabelsUsing(fn (array $ids): array => ['1' => 'John Doe'])
LOW…orms/Components/RichEditor/RichContentRendererTest.php1589 ->mergeTags(['name' => 'John Doe']);
LOW…orms/Components/RichEditor/RichContentRendererTest.php1591 expect($renderer->getMergeTagValue('name'))->toBe('John Doe');
LOWtests/src/Forms/Components/MorphToSelect/TypeTest.php279 $user = User::factory()->create(['name' => 'Jane Doe']);
LOWtests/src/Forms/Components/MorphToSelect/TypeTest.php292 expect($label)->toBe('Jane Doe');
LOWtests/src/Panels/Configuration/AvatarProviderTest.php11 $user = User::factory()->create(['name' => 'John Doe']);
LOWtests/src/Panels/Resources/Pages/ListRecordsTest.php117 'title' => 'Lorem Ipsum',
LOWtests/src/Infolists/Components/KeyValueEntryTest.php20 ->assertSeeText('John Doe')
LOWtests/src/Infolists/Components/KeyValueEntryTest.php101 'name' => 'John Doe',
LOWtests/src/Fixtures/Pages/KeyValueTest.php28 'name' => 'John Doe',
LOWpackages/forms/docs/10-rich-editor.md865 1 => 'Jane Doe',
LOWpackages/forms/docs/10-rich-editor.md883 1 => 'Jane Doe',
LOWpackages/forms/docs/10-rich-editor.md994 1 => 'Jane Doe',
LOWpackages/forms/docs/01-overview.md500 ->placeholder('John Doe')
LOWpackages/forms/docs/01-overview.md1151 ($get('name') === 'John Doe') ? 'Hello, John!' : 'Hello, stranger!'
LOWpackages/infolists/docs/08-repeatable-entry.md32 'author' => ['name' => 'Jane Doe'],
LOWpackages/infolists/docs/08-repeatable-entry.md34 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultrici
LOWpackages/infolists/docs/08-repeatable-entry.md34 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultrici
LOWpackages/infolists/docs/08-repeatable-entry.md37 'author' => ['name' => 'John Doe'],
LOWpackages/infolists/docs/08-repeatable-entry.md39 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultrici
LOWpackages/infolists/docs/08-repeatable-entry.md39 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultrici
LOWdocs-assets/app/database/seeders/DatabaseSeeder.php164 $acme = Team::create(['name' => 'Acme Inc', 'slug' => 'acme-inc', 'created_at' => $baseDate, 'updated_at' => $ba
LOW…ssets/app/app/Livewire/Forms/Fields/TextareaSchema.php21 ->default('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget al
LOW…ssets/app/app/Livewire/Forms/Fields/TextareaSchema.php21 ->default('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget al
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php66 'content' => 'Lorem ipsum dolor sit amet',
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php66 'content' => 'Lorem ipsum dolor sit amet',
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php73 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismo
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php73 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismo
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php80 'alt' => 'Lorem ipsum dolor sit amet',
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php80 'alt' => 'Lorem ipsum dolor sit amet',
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php86 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismo
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php86 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismo
LOW…assets/app/app/Livewire/Forms/Fields/BuilderSchema.php93 'alt' => 'Lorem ipsum dolor sit amet',
34 more matches not shown…
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICAL…urces/js/components/rich-editor/extension-merge-tag.js239 view.state.schema.nodes.mergeTag.create({
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWpackages/support/resources/js/utilities/select.js1340 // For multiple selection, we need to check if there are any options that aren't already selected