Repository Analysis

laravel/framework

Laravel is a web application framework with expressive, elegant syntax.

15.0 Moderate AI signal View on GitHub
15.0
Adjusted Score
15.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
34,733
Stars
PHP
Language
531,830
Lines of Code
3000
Files
8549
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 3LOW 8546

Pattern Findings

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

Hyper-Verbose Identifiers8443 hits · 7848 pts
SeverityFileLineSnippet
LOWtests/Encryption/EncrypterTest.php184 public function testWithBadKeyLengthAlternativeCipher()
LOWtests/Encryption/EncrypterTest.php192 public function testWithUnsupportedCipher()
LOWtests/Encryption/EncrypterTest.php200 public function testExceptionThrownWhenPayloadIsInvalid()
LOWtests/Encryption/EncrypterTest.php275 public function testTamperedPayloadWillGetRejected($payload)
LOWtests/Encryption/EncrypterTest.php284 public function testEncryptedReturnsTrueForEncryptedValue()
LOWtests/Encryption/EncrypterTest.php292 public function testEncryptedReturnsTrueForEncryptedArray()
LOWtests/Encryption/EncrypterTest.php300 public function testEncryptedReturnsFalseForPlainText()
LOWtests/Encryption/EncrypterTest.php307 public function testEncryptedReturnsFalseForNonString()
LOWtests/Encryption/EncrypterTest.php41 public function testRawStringEncryptionWithPreviousKeys()
LOWtests/Encryption/EncrypterTest.php53 public function testItValidatesMacOnPerKeyBasis()
LOWtests/Encryption/EncrypterTest.php65 public function testItDecryptsUsingTheFirstMacValidatedKey()
LOWtests/Encryption/EncrypterTest.php84 public function testEncryptedLengthIsFixed()
LOWtests/Encryption/EncrypterTest.php107 public function testCipherNamesCanBeMixedCase()
LOWtests/Encryption/EncrypterTest.php120 public function testThatAnAeadCipherIncludesTag()
LOWtests/Encryption/EncrypterTest.php130 public function testThatAnAeadTagMustBeProvidedInFullLength()
LOWtests/Encryption/EncrypterTest.php144 public function testThatAnAeadTagCantBeModified()
LOWtests/Encryption/EncrypterTest.php158 public function testThatANonAeadCipherIncludesMac()
LOWtests/Encryption/EncrypterTest.php211 public function testDecryptionExceptionIsThrownWhenUnexpectedTagIsAdded()
LOWtests/Encryption/EncrypterTest.php223 public function testExceptionThrownWithDifferentKey()
LOWtests/Encryption/EncrypterTest.php233 public function testExceptionThrownWhenIvIsTooLong()
LOWtests/Encryption/EncrypterTest.php247 public function testSupportedMethodAcceptsAnyCasing()
LOW…atabase/DatabaseEloquentBelongsToManyChunkByIdTest.php68 public function testBelongsToChunkByIdDesc()
LOWtests/Database/DatabaseEloquentMorphToManyTest.php17 public function testEagerConstraintsAreProperlyAdded(): void
LOWtests/Database/DatabaseEloquentMorphToManyTest.php31 public function testAttachInsertsPivotTableRecord(): void
LOWtests/Database/DatabaseEloquentMorphToManyTest.php43 public function testDetachRemovesPivotTableRecord(): void
LOWtests/Database/DatabaseEloquentMorphToManyTest.php58 public function testDetachMethodClearsAllPivotRecordsWhenNoIDsAreGiven(): void
LOWtests/Database/DatabaseEloquentMorphToManyTest.php73 public function testQueryExpressionCanBePassedToDifferentPivotQueryBuilderClauses(): void
LOWtests/Database/DatabaseEloquentPivotTest.php17 public function testPropertiesAreSetCorrectly()
LOWtests/Database/DatabaseEloquentPivotTest.php36 public function testMutatorsAreCalledFromConstructor()
LOWtests/Database/DatabaseEloquentPivotTest.php46 public function testFromRawAttributesDoesNotDoubleMutate()
LOWtests/Database/DatabaseEloquentPivotTest.php56 public function testFromRawAttributesDoesNotMutate()
LOWtests/Database/DatabaseEloquentPivotTest.php66 public function testPropertiesUnchangedAreNotDirty()
LOWtests/Database/DatabaseEloquentPivotTest.php75 public function testPropertiesChangedAreDirty()
LOWtests/Database/DatabaseEloquentPivotTest.php85 public function testTimestampPropertyIsSetIfCreatedAtInAttributes()
LOWtests/Database/DatabaseEloquentPivotTest.php97 public function testTimestampPropertyIsTrueWhenCreatingFromRawAttributes()
LOWtests/Database/DatabaseEloquentPivotTest.php116 public function testDeleteMethodDeletesModelByKeys()
LOWtests/Database/DatabaseEloquentPivotTest.php131 public function testPivotModelTableNameIsSingular()
LOWtests/Database/DatabaseEloquentPivotTest.php138 public function testPivotModelWithParentReturnsParentsTimestampColumns()
LOWtests/Database/DatabaseEloquentPivotTest.php151 public function testPivotModelWithoutParentReturnsModelTimestampColumns()
LOWtests/Database/DatabaseConcernsHasAttributesTest.php21 public function testWithConstructorArguments()
LOWtests/Database/DatabaseConcernsHasAttributesTest.php46 public function testCastingEmptyStringToArrayDoesNotError()
LOWtests/Database/DatabaseConcernsHasAttributesTest.php54 public function testUnsettingCachedAttribute()
LOWtests/Database/DatabaseMigrationResetCommandTest.php23 public function testResetCommandCallsMigratorWithProperArguments()
LOWtests/Database/DatabaseMigrationResetCommandTest.php40 public function testResetCommandCanBePretended()
LOWtests/Database/DatabaseMigrationResetCommandTest.php57 public function testRefreshCommandExitsWhenProhibited()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php98 public function testItLoadsARelationWithCustomIntermediateAndLocalKey()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php107 public function testEagerLoadingARelationWithCustomIntermediateAndLocalKey()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php116 public function testWhereHasOnARelationWithCustomIntermediateAndLocalKey()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php126 public function testWithWhereHasOnARelationWithCustomIntermediateAndLocalKey()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php77 public function testItLoadsAHasManyThroughRelationWithCustomKeys()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php86 public function testItLoadsADefaultHasManyThroughRelation()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php172 public function testFirstOrFailThrowsAnException()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php183 public function testFindOrFailThrowsAnException()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php194 public function testFindOrFailWithManyThrowsAnException()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php206 public function testFindOrFailWithManyUsingCollectionThrowsAnException()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php265 public function testFindOrMethodWithManyUsingCollection()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php292 public function testFirstRetrievesFirstRecord()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php301 public function testAllColumnsAreRetrievedByDefault()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php317 public function testOnlyProperColumnsAreSelectedIfProvided()
LOW…base/DatabaseEloquentHasManyThroughIntegrationTest.php329 public function testChunkReturnsCorrectModels()
8383 more matches not shown…
Fake / Example Data86 hits · 104 pts
SeverityFileLineSnippet
LOWtests/Database/DatabaseEloquentIntegrationTest.php1971 $john = EloquentTestUserWithCustomFriendPivot::create(['id' => 1, 'name' => 'John Doe', 'email' => 'johndoe@exam
LOWtests/Database/DatabaseEloquentIntegrationTest.php1972 $jane = EloquentTestUserWithCustomFriendPivot::create(['id' => 2, 'name' => 'Jane Doe', 'email' => 'janedoe@exam
LOWtests/Database/DatabaseSchemaBlueprintTest.php234 "alter table `users` change `id` `key` bigint unsigned not null auto_increment comment 'lorem ipsum'",
LOWtests/Database/DatabaseSchemaBlueprintTest.php246 ['name' => 'id', 'type' => 'bigint unsigned', 'type_name' => 'bigint', 'nullable' => false, 'collation' => n
LOWtests/Database/DatabaseSchemaBlueprintTest.php222 ['name' => 'id', 'type' => 'bigint unsigned', 'type_name' => 'bigint', 'nullable' => false, 'collation' => n
LOWtests/Database/DatabaseSchemaBlueprintTest.php260 "alter table `users` change `id` `key` bigint unsigned not null auto_increment comment 'lorem ipsum'",
LOWtests/Database/DatabaseEloquentTimestampsTest.php79 'email' => 'test@test.com',
LOWtests/Database/DatabaseEloquentTimestampsTest.php91 'email' => 'test@test.com',
LOWtests/Database/DatabaseEloquentTimestampsTest.php102 'email' => 'test@test.com',
LOWtests/Database/DatabaseEloquentModelTest.php3689 $model->address_line_one = '123 Main Street';
LOWtests/Database/DatabaseEloquentModelTest.php3691 $this->assertSame('123 Main Street', $model->address->lineOne);
LOWtests/Database/DatabaseEloquentModelTest.php3745 $model->fill(['id' => 1, 'full_name' => 'John Doe', 'full_address' => '123 Main Street, Anytown']);
LOWtests/Database/DatabaseEloquentModelTest.php3750 $this->assertSame('123 Main Street', $model->address_line_one);
LOWtests/Database/DatabaseEloquentModelTest.php3758 $model->fill(['id' => 1, 'full_name' => 'John Doe', 'full_address' => '123 Main Street, Anytown']);
LOWtests/Database/DatabaseEloquentModelTest.php3763 $this->assertSame('123 Main Street', $model->address_line_one);
LOWtests/Database/DatabaseQueryBuilderTest.php5577 $builder->select('*')->from('users')->where('name', 'sounds like', 'John Doe');
LOWtests/Database/DatabaseQueryBuilderTest.php5579 $this->assertEquals(['John Doe'], $builder->getBindings());
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php395 $result = SoftDeletesTestUser::createOrFirst(['email' => 'foo@bar.com']);
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php396 $this->assertSame('foo@bar.com', $result->email);
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php456 $userModel->email = 'foo@bar.com';
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php461 $this->assertSame('foo@bar.com', SoftDeletesTestUser::find(2)->email);
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php468 $result = SoftDeletesTestUser::updateOrCreate(['email' => 'foo@bar.com'], ['email' => 'bar@baz.com']);
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php472 $result = SoftDeletesTestUser::withTrashed()->updateOrCreate(['email' => 'taylorotwell@gmail.com'], ['email' =>
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php473 $this->assertSame('foo@bar.com', $result->email);
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php381 $result = SoftDeletesTestUser::firstOrCreate(['email' => 'foo@bar.com']);
LOW…atabase/DatabaseEloquentSoftDeletesIntegrationTest.php382 $this->assertSame('foo@bar.com', $result->email);
LOWtests/Auth/AuthGuardTest.php33 $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret'])->andReturn(tr
LOWtests/Auth/AuthGuardTest.php34 $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret']
LOWtests/Auth/AuthGuardTest.php46 $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret']
LOWtests/Auth/AuthGuardTest.php59 $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret'])->andReturn(fa
LOWtests/Auth/AuthGuardTest.php60 $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret']
LOWtests/Auth/AuthGuardTest.php70 $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret', 'active' => 1]
LOWtests/Auth/AuthGuardTest.php71 $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret']
LOWtests/Auth/AuthGuardTest.php82 $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret', 'active' => 1,
LOWtests/Auth/AuthGuardTest.php83 $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret']
LOWtests/Mail/MailableQueuedTest.php214 ->subject('lorem ipsum')
LOWtests/Mail/MailableQueuedTest.php229 ->subject('lorem ipsum')
LOWtests/Mail/MailableQueuedTest.php250 ->subject('lorem ipsum')
LOWtests/Mail/MailableQueuedTest.php265 ->subject('lorem ipsum')
LOWtests/Integration/Database/QueryBuilderTest.php204 ['id' => '1', 'title' => 'Foo Post', 'foo' => 'Lorem Ipsum.'],
LOWtests/Integration/Database/QueryBuilderTest.php213 $expected = ['id' => '1', 'title' => 'Foo Post', 'content' => 'Lorem Ipsum.'];
LOWtests/Integration/Database/QueryBuilderTest.php226 ['id' => '1', 'title' => 'Foo Post', 'foo' => 'Lorem Ipsum.'],
LOWtests/Integration/Database/QueryBuilderTest.php570 $results = DB::table('posts')->where('content', 'Lorem Ipsum.')->whereNested(function ($query) {
LOWtests/Integration/Database/QueryBuilderTest.php583 (object) ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.'],
LOWtests/Integration/Database/QueryBuilderTest.php584 (object) ['title' => 'Bar Post', 'content' => 'Lorem Ipsum.'],
LOWtests/Integration/Database/QueryBuilderTest.php29 ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')],
LOWtests/Integration/Database/QueryBuilderTest.php30 ['title' => 'Bar Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2018-01-02 03:04:05')],
LOWtests/Integration/Database/QueryBuilderTest.php168 ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')],
LOWtests/Integration/Database/QueryBuilderTest.php290 ['title' => 'Baz Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')],
LOWtests/Integration/Database/QueryBuilderTest.php636 'Lorem Ipsum.' => 'Bar Post',
LOWtests/Integration/Database/QueryBuilderTest.php659 'Lorem Ipsum.',
LOWtests/Integration/Database/QueryBuilderTest.php660 'Lorem Ipsum.',
LOW…ts/Integration/Database/EloquentHasManyThroughTest.php232 ['name' => 'John Doe'],
LOW…sts/Integration/Database/QueryBuilderWhereLikeTest.php30 ['name' => 'John Doe', 'email' => 'John.Doe@example.com'],
LOW…sts/Integration/Database/QueryBuilderWhereLikeTest.php31 ['name' => 'Jane Doe', 'email' => 'janedoe@example.com'],
LOWtests/Integration/Http/ResourceTest.php1833 'user@example.com' => 'John',
LOWtests/Integration/Http/ResourceTest.php1834 'admin@example.com' => 'Hank',
LOWtests/Integration/Http/ResourceTest.php1837 'user@example.com' => 'John',
LOWtests/Integration/Http/ResourceTest.php1838 'admin@example.com' => 'Hank',
LOW…/2014_10_12_000000_create_people_non_dynamic_table.php22 ['email' => 'jane@example.com', 'name' => 'Jane Doe', 'password' => 'secret'],
26 more matches not shown…
Over-Commented Block17 hits · 11 pts
SeverityFileLineSnippet
LOWdocker-compose.yml21 - "3306:3306"
LOWdocker-compose.yml41 # mssql:
LOWdocker-compose.yml61 # image: redis:7.0-alpine
LOWtests/Database/DatabaseEloquentModelTest.php341 // ->with('{"foo":"bar"}')
LOWtests/Database/DatabaseEloquentModelTest.php361 // $model->setRawAttributes([
LOWtests/Database/DatabaseEloquentModelTest.php381
LOWtests/Database/DatabaseEloquentModelTest.php401 // ->andReturn('{"foo":"baz"}');
LOWtests/Database/DatabaseEloquentModelTest.php421 // $this->encrypter = m::mock(Encrypter::class);
LOWtests/Database/DatabaseEloquentModelTest.php441
LOWtests/Database/DatabaseEloquentModelTest.php461
LOWtests/Database/DatabaseEloquentModelTest.php481 // $this->encrypter->expects('decrypt')
LOWtests/Integration/Queue/RedisQueueTest.php121 $this->queue->push(new RedisQueueIntegrationTestJob(12));
LOWtests/Foundation/FoundationFormRequestTest.php541 // $container->instance(
LOWtests/Filesystem/FilesystemManagerTest.php261 $creator = new CustomFilesystemDriver($driver);
LOWtests/Validation/ValidationEmailRuleTest.php341 'tést@domain.com'
LOWtests/Validation/ValidationEmailRuleTest.php401 }
LOWtests/Validation/ValidationEmailRuleTest.php541 );
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippet
MEDIUM…lluminate/Database/Eloquent/Concerns/HasAttributes.php857 // the value and update the cast type so we may leverage the following
MEDIUMsrc/Illuminate/Database/Query/Grammars/Grammar.php1237 // Essentially we will force every insert to be treated as a batch insert which
MEDIUMsrc/Illuminate/Database/Query/Grammars/Grammar.php1238 // simply makes creating the SQL easier for us since we can utilize the same