Laravel is a web application framework with expressive, elegant syntax.
8549 matches across 4 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/Encryption/EncrypterTest.php | 184 | public function testWithBadKeyLengthAlternativeCipher() |
| LOW | tests/Encryption/EncrypterTest.php | 192 | public function testWithUnsupportedCipher() |
| LOW | tests/Encryption/EncrypterTest.php | 200 | public function testExceptionThrownWhenPayloadIsInvalid() |
| LOW | tests/Encryption/EncrypterTest.php | 275 | public function testTamperedPayloadWillGetRejected($payload) |
| LOW | tests/Encryption/EncrypterTest.php | 284 | public function testEncryptedReturnsTrueForEncryptedValue() |
| LOW | tests/Encryption/EncrypterTest.php | 292 | public function testEncryptedReturnsTrueForEncryptedArray() |
| LOW | tests/Encryption/EncrypterTest.php | 300 | public function testEncryptedReturnsFalseForPlainText() |
| LOW | tests/Encryption/EncrypterTest.php | 307 | public function testEncryptedReturnsFalseForNonString() |
| LOW | tests/Encryption/EncrypterTest.php | 41 | public function testRawStringEncryptionWithPreviousKeys() |
| LOW | tests/Encryption/EncrypterTest.php | 53 | public function testItValidatesMacOnPerKeyBasis() |
| LOW | tests/Encryption/EncrypterTest.php | 65 | public function testItDecryptsUsingTheFirstMacValidatedKey() |
| LOW | tests/Encryption/EncrypterTest.php | 84 | public function testEncryptedLengthIsFixed() |
| LOW | tests/Encryption/EncrypterTest.php | 107 | public function testCipherNamesCanBeMixedCase() |
| LOW | tests/Encryption/EncrypterTest.php | 120 | public function testThatAnAeadCipherIncludesTag() |
| LOW | tests/Encryption/EncrypterTest.php | 130 | public function testThatAnAeadTagMustBeProvidedInFullLength() |
| LOW | tests/Encryption/EncrypterTest.php | 144 | public function testThatAnAeadTagCantBeModified() |
| LOW | tests/Encryption/EncrypterTest.php | 158 | public function testThatANonAeadCipherIncludesMac() |
| LOW | tests/Encryption/EncrypterTest.php | 211 | public function testDecryptionExceptionIsThrownWhenUnexpectedTagIsAdded() |
| LOW | tests/Encryption/EncrypterTest.php | 223 | public function testExceptionThrownWithDifferentKey() |
| LOW | tests/Encryption/EncrypterTest.php | 233 | public function testExceptionThrownWhenIvIsTooLong() |
| LOW | tests/Encryption/EncrypterTest.php | 247 | public function testSupportedMethodAcceptsAnyCasing() |
| LOW | …atabase/DatabaseEloquentBelongsToManyChunkByIdTest.php | 68 | public function testBelongsToChunkByIdDesc() |
| LOW | tests/Database/DatabaseEloquentMorphToManyTest.php | 17 | public function testEagerConstraintsAreProperlyAdded(): void |
| LOW | tests/Database/DatabaseEloquentMorphToManyTest.php | 31 | public function testAttachInsertsPivotTableRecord(): void |
| LOW | tests/Database/DatabaseEloquentMorphToManyTest.php | 43 | public function testDetachRemovesPivotTableRecord(): void |
| LOW | tests/Database/DatabaseEloquentMorphToManyTest.php | 58 | public function testDetachMethodClearsAllPivotRecordsWhenNoIDsAreGiven(): void |
| LOW | tests/Database/DatabaseEloquentMorphToManyTest.php | 73 | public function testQueryExpressionCanBePassedToDifferentPivotQueryBuilderClauses(): void |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 17 | public function testPropertiesAreSetCorrectly() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 36 | public function testMutatorsAreCalledFromConstructor() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 46 | public function testFromRawAttributesDoesNotDoubleMutate() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 56 | public function testFromRawAttributesDoesNotMutate() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 66 | public function testPropertiesUnchangedAreNotDirty() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 75 | public function testPropertiesChangedAreDirty() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 85 | public function testTimestampPropertyIsSetIfCreatedAtInAttributes() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 97 | public function testTimestampPropertyIsTrueWhenCreatingFromRawAttributes() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 116 | public function testDeleteMethodDeletesModelByKeys() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 131 | public function testPivotModelTableNameIsSingular() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 138 | public function testPivotModelWithParentReturnsParentsTimestampColumns() |
| LOW | tests/Database/DatabaseEloquentPivotTest.php | 151 | public function testPivotModelWithoutParentReturnsModelTimestampColumns() |
| LOW | tests/Database/DatabaseConcernsHasAttributesTest.php | 21 | public function testWithConstructorArguments() |
| LOW | tests/Database/DatabaseConcernsHasAttributesTest.php | 46 | public function testCastingEmptyStringToArrayDoesNotError() |
| LOW | tests/Database/DatabaseConcernsHasAttributesTest.php | 54 | public function testUnsettingCachedAttribute() |
| LOW | tests/Database/DatabaseMigrationResetCommandTest.php | 23 | public function testResetCommandCallsMigratorWithProperArguments() |
| LOW | tests/Database/DatabaseMigrationResetCommandTest.php | 40 | public function testResetCommandCanBePretended() |
| LOW | tests/Database/DatabaseMigrationResetCommandTest.php | 57 | public function testRefreshCommandExitsWhenProhibited() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 98 | public function testItLoadsARelationWithCustomIntermediateAndLocalKey() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 107 | public function testEagerLoadingARelationWithCustomIntermediateAndLocalKey() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 116 | public function testWhereHasOnARelationWithCustomIntermediateAndLocalKey() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 126 | public function testWithWhereHasOnARelationWithCustomIntermediateAndLocalKey() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 77 | public function testItLoadsAHasManyThroughRelationWithCustomKeys() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 86 | public function testItLoadsADefaultHasManyThroughRelation() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 172 | public function testFirstOrFailThrowsAnException() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 183 | public function testFindOrFailThrowsAnException() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 194 | public function testFindOrFailWithManyThrowsAnException() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 206 | public function testFindOrFailWithManyUsingCollectionThrowsAnException() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 265 | public function testFindOrMethodWithManyUsingCollection() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 292 | public function testFirstRetrievesFirstRecord() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 301 | public function testAllColumnsAreRetrievedByDefault() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 317 | public function testOnlyProperColumnsAreSelectedIfProvided() |
| LOW | …base/DatabaseEloquentHasManyThroughIntegrationTest.php | 329 | public function testChunkReturnsCorrectModels() |
| 8383 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/Database/DatabaseEloquentIntegrationTest.php | 1971 | $john = EloquentTestUserWithCustomFriendPivot::create(['id' => 1, 'name' => 'John Doe', 'email' => 'johndoe@exam |
| LOW | tests/Database/DatabaseEloquentIntegrationTest.php | 1972 | $jane = EloquentTestUserWithCustomFriendPivot::create(['id' => 2, 'name' => 'Jane Doe', 'email' => 'janedoe@exam |
| LOW | tests/Database/DatabaseSchemaBlueprintTest.php | 234 | "alter table `users` change `id` `key` bigint unsigned not null auto_increment comment 'lorem ipsum'", |
| LOW | tests/Database/DatabaseSchemaBlueprintTest.php | 246 | ['name' => 'id', 'type' => 'bigint unsigned', 'type_name' => 'bigint', 'nullable' => false, 'collation' => n |
| LOW | tests/Database/DatabaseSchemaBlueprintTest.php | 222 | ['name' => 'id', 'type' => 'bigint unsigned', 'type_name' => 'bigint', 'nullable' => false, 'collation' => n |
| LOW | tests/Database/DatabaseSchemaBlueprintTest.php | 260 | "alter table `users` change `id` `key` bigint unsigned not null auto_increment comment 'lorem ipsum'", |
| LOW | tests/Database/DatabaseEloquentTimestampsTest.php | 79 | 'email' => 'test@test.com', |
| LOW | tests/Database/DatabaseEloquentTimestampsTest.php | 91 | 'email' => 'test@test.com', |
| LOW | tests/Database/DatabaseEloquentTimestampsTest.php | 102 | 'email' => 'test@test.com', |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 3689 | $model->address_line_one = '123 Main Street'; |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 3691 | $this->assertSame('123 Main Street', $model->address->lineOne); |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 3745 | $model->fill(['id' => 1, 'full_name' => 'John Doe', 'full_address' => '123 Main Street, Anytown']); |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 3750 | $this->assertSame('123 Main Street', $model->address_line_one); |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 3758 | $model->fill(['id' => 1, 'full_name' => 'John Doe', 'full_address' => '123 Main Street, Anytown']); |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 3763 | $this->assertSame('123 Main Street', $model->address_line_one); |
| LOW | tests/Database/DatabaseQueryBuilderTest.php | 5577 | $builder->select('*')->from('users')->where('name', 'sounds like', 'John Doe'); |
| LOW | tests/Database/DatabaseQueryBuilderTest.php | 5579 | $this->assertEquals(['John Doe'], $builder->getBindings()); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 395 | $result = SoftDeletesTestUser::createOrFirst(['email' => 'foo@bar.com']); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 396 | $this->assertSame('foo@bar.com', $result->email); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 456 | $userModel->email = 'foo@bar.com'; |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 461 | $this->assertSame('foo@bar.com', SoftDeletesTestUser::find(2)->email); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 468 | $result = SoftDeletesTestUser::updateOrCreate(['email' => 'foo@bar.com'], ['email' => 'bar@baz.com']); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 472 | $result = SoftDeletesTestUser::withTrashed()->updateOrCreate(['email' => 'taylorotwell@gmail.com'], ['email' => |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 473 | $this->assertSame('foo@bar.com', $result->email); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 381 | $result = SoftDeletesTestUser::firstOrCreate(['email' => 'foo@bar.com']); |
| LOW | …atabase/DatabaseEloquentSoftDeletesIntegrationTest.php | 382 | $this->assertSame('foo@bar.com', $result->email); |
| LOW | tests/Auth/AuthGuardTest.php | 33 | $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret'])->andReturn(tr |
| LOW | tests/Auth/AuthGuardTest.php | 34 | $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret'] |
| LOW | tests/Auth/AuthGuardTest.php | 46 | $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret'] |
| LOW | tests/Auth/AuthGuardTest.php | 59 | $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret'])->andReturn(fa |
| LOW | tests/Auth/AuthGuardTest.php | 60 | $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret'] |
| LOW | tests/Auth/AuthGuardTest.php | 70 | $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret', 'active' => 1] |
| LOW | tests/Auth/AuthGuardTest.php | 71 | $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret'] |
| LOW | tests/Auth/AuthGuardTest.php | 82 | $guard->shouldReceive('attempt')->once()->with(['email' => 'foo@bar.com', 'password' => 'secret', 'active' => 1, |
| LOW | tests/Auth/AuthGuardTest.php | 83 | $request = Request::create('/', 'GET', [], [], [], ['PHP_AUTH_USER' => 'foo@bar.com', 'PHP_AUTH_PW' => 'secret'] |
| LOW | tests/Mail/MailableQueuedTest.php | 214 | ->subject('lorem ipsum') |
| LOW | tests/Mail/MailableQueuedTest.php | 229 | ->subject('lorem ipsum') |
| LOW | tests/Mail/MailableQueuedTest.php | 250 | ->subject('lorem ipsum') |
| LOW | tests/Mail/MailableQueuedTest.php | 265 | ->subject('lorem ipsum') |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 204 | ['id' => '1', 'title' => 'Foo Post', 'foo' => 'Lorem Ipsum.'], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 213 | $expected = ['id' => '1', 'title' => 'Foo Post', 'content' => 'Lorem Ipsum.']; |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 226 | ['id' => '1', 'title' => 'Foo Post', 'foo' => 'Lorem Ipsum.'], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 570 | $results = DB::table('posts')->where('content', 'Lorem Ipsum.')->whereNested(function ($query) { |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 583 | (object) ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.'], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 584 | (object) ['title' => 'Bar Post', 'content' => 'Lorem Ipsum.'], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 29 | ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 30 | ['title' => 'Bar Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2018-01-02 03:04:05')], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 168 | ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 290 | ['title' => 'Baz Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')], |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 636 | 'Lorem Ipsum.' => 'Bar Post', |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 659 | 'Lorem Ipsum.', |
| LOW | tests/Integration/Database/QueryBuilderTest.php | 660 | 'Lorem Ipsum.', |
| LOW | …ts/Integration/Database/EloquentHasManyThroughTest.php | 232 | ['name' => 'John Doe'], |
| LOW | …sts/Integration/Database/QueryBuilderWhereLikeTest.php | 30 | ['name' => 'John Doe', 'email' => 'John.Doe@example.com'], |
| LOW | …sts/Integration/Database/QueryBuilderWhereLikeTest.php | 31 | ['name' => 'Jane Doe', 'email' => 'janedoe@example.com'], |
| LOW | tests/Integration/Http/ResourceTest.php | 1833 | 'user@example.com' => 'John', |
| LOW | tests/Integration/Http/ResourceTest.php | 1834 | 'admin@example.com' => 'Hank', |
| LOW | tests/Integration/Http/ResourceTest.php | 1837 | 'user@example.com' => 'John', |
| LOW | tests/Integration/Http/ResourceTest.php | 1838 | 'admin@example.com' => 'Hank', |
| LOW | …/2014_10_12_000000_create_people_non_dynamic_table.php | 22 | ['email' => 'jane@example.com', 'name' => 'Jane Doe', 'password' => 'secret'], |
| 26 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docker-compose.yml | 21 | - "3306:3306" |
| LOW | docker-compose.yml | 41 | # mssql: |
| LOW | docker-compose.yml | 61 | # image: redis:7.0-alpine |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 341 | // ->with('{"foo":"bar"}') |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 361 | // $model->setRawAttributes([ |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 381 | |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 401 | // ->andReturn('{"foo":"baz"}'); |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 421 | // $this->encrypter = m::mock(Encrypter::class); |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 441 | |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 461 | |
| LOW | tests/Database/DatabaseEloquentModelTest.php | 481 | // $this->encrypter->expects('decrypt') |
| LOW | tests/Integration/Queue/RedisQueueTest.php | 121 | $this->queue->push(new RedisQueueIntegrationTestJob(12)); |
| LOW | tests/Foundation/FoundationFormRequestTest.php | 541 | // $container->instance( |
| LOW | tests/Filesystem/FilesystemManagerTest.php | 261 | $creator = new CustomFilesystemDriver($driver); |
| LOW | tests/Validation/ValidationEmailRuleTest.php | 341 | 'tést@domain.com' |
| LOW | tests/Validation/ValidationEmailRuleTest.php | 401 | } |
| LOW | tests/Validation/ValidationEmailRuleTest.php | 541 | ); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …lluminate/Database/Eloquent/Concerns/HasAttributes.php | 857 | // the value and update the cast type so we may leverage the following |
| MEDIUM | src/Illuminate/Database/Query/Grammars/Grammar.php | 1237 | // Essentially we will force every insert to be treated as a batch insert which |
| MEDIUM | src/Illuminate/Database/Query/Grammars/Grammar.php | 1238 | // simply makes creating the SQL easier for us since we can utilize the same |