language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
laravel
framework
a1a50bd612c71338fb9be6da8445e2ba6838a5b6.json
use message object
tests/Notifications/NotificationDatabaseChannelTest.php
@@ -1,5 +1,6 @@ <?php +use Illuminate\Notifications\Message; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Channels\DatabaseChannel; @@ -12,7 +13,7 @@ public function tearDown() public function testDatabaseChannelCreatesDatabaseRecordWithProperData() { - $notification...
true
Other
laravel
framework
a1a50bd612c71338fb9be6da8445e2ba6838a5b6.json
use message object
tests/Notifications/NotificationMailChannelTest.php
@@ -1,5 +1,6 @@ <?php +use Illuminate\Notifications\Message; use Illuminate\Notifications\Notification; class NotificationMailChannelTest extends PHPUnit_Framework_TestCase @@ -11,12 +12,12 @@ public function tearDown() public function testMailIsSentByChannel() { - $notification = new Notifica...
true
Other
laravel
framework
a1a50bd612c71338fb9be6da8445e2ba6838a5b6.json
use message object
tests/Notifications/NotificationMessageTest.php
@@ -0,0 +1,36 @@ +<?php + +use Illuminate\Notifications\Message; +use Illuminate\Notifications\Notification; + +class NotificationMessageTest extends PHPUnit_Framework_TestCase +{ + public function testLevelCanBeRetrieved() + { + $message = new Message; + $this->assertEquals('info', $message->level)...
true
Other
laravel
framework
a1a50bd612c71338fb9be6da8445e2ba6838a5b6.json
use message object
tests/Notifications/NotificationNexmoChannelTest.php
@@ -11,7 +11,7 @@ public function tearDown() public function testSmsIsSentViaNexmo() { - $notification = new Notification; + $notification = new NotificationNexmoChannelTestNotification; $notifiables = collect([ $notifiable = new NotificationNexmoChannelTestNotifiable, ...
true
Other
laravel
framework
a1a50bd612c71338fb9be6da8445e2ba6838a5b6.json
use message object
tests/Notifications/NotificationNotificationTest.php
@@ -1,46 +0,0 @@ -<?php - -use Illuminate\Notifications\Notification; - -class NotificationNotificationTest extends PHPUnit_Framework_TestCase -{ - public function testLevelCanBeRetrieved() - { - $notification = new Notification; - $this->assertEquals('info', $notification->level); - - $notif...
true
Other
laravel
framework
a1a50bd612c71338fb9be6da8445e2ba6838a5b6.json
use message object
tests/Notifications/NotificationSlackChannelTest.php
@@ -11,18 +11,11 @@ public function tearDown() public function testCorrectPayloadIsSentToSlack() { - $notification = new Notification; + $notification = new NotificationSlackChannelTestNotification; $notifiables = collect([ $notifiable = new NotificationSlackChannelTestNo...
true
Other
laravel
framework
bd9cd7703fe5d745af764ba1c5ac25bd70ed99e2.json
get router in function
src/Illuminate/Broadcasting/BroadcastManager.php
@@ -59,7 +59,7 @@ public function routes() $router = $this->app['router']; - $router->group(['middleware' => ['web']], function () { + $router->group(['middleware' => ['web']], function ($router) { $router->post('/broadcasting/auth', BroadcastController::class.'@authenticate'); ...
false
Other
laravel
framework
e6a430b486490e908115052771c020b921254b63.json
Add missing docblock
src/Illuminate/Mail/Mailable.php
@@ -345,6 +345,7 @@ public function replyTo($address, $name = null) * * @param object|array|string $address * @param string|null $name + * @param string $property * @return $this */ protected function setAddress($address, $name = null, $property = 'to')
false
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
CONTRIBUTING.md
@@ -1,3 +1,3 @@ # Laravel Contribution Guide -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). Please review the entire guide before sending a pull request. +Thank you for considering contributi...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
composer.json
@@ -3,7 +3,7 @@ "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://g...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
readme.md
@@ -17,11 +17,11 @@ Laravel is accessible, yet powerful, providing powerful tools needed for large, ## Official Documentation -Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs). +Documentation for the framework can be found on the [Laravel website](https://laravel.com/d...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Auth/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/auth", "description": "The Illuminate Auth package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Broadcasting/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/broadcasting", "description": "The Illuminate Broadcasting package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source":...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Bus/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/bus", "description": "The Illuminate Bus package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github.c...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Cache/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/cache", "description": "The Illuminate Cache package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://gith...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Config/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/config", "description": "The Illuminate Config package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://gi...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Console/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/console", "description": "The Illuminate Console package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Container/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/container", "description": "The Illuminate Container package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "http...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Contracts/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/contracts", "description": "The Illuminate Contracts package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "http...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Cookie/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/cookie", "description": "The Illuminate Cookie package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://gi...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Database/README.md
@@ -67,4 +67,4 @@ class User extends Illuminate\Database\Eloquent\Model {} $users = User::where('votes', '>', 1)->get(); ``` -For further documentation on using the various database facilities this library provides, consult the [Laravel framework documentation](http://laravel.com/docs). +For further documentation o...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Database/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/database", "description": "The Illuminate Database package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https:...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Encryption/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/encryption", "description": "The Illuminate Encryption package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "ht...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Events/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/events", "description": "The Illuminate Events package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://gi...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Filesystem/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/filesystem", "description": "The Illuminate Filesystem package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "ht...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Hashing/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/hashing", "description": "The Illuminate Hashing package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Http/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/http", "description": "The Illuminate Http package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Log/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/log", "description": "The Illuminate Log package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github.c...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Mail/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/mail", "description": "The Illuminate Mail package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Notifications/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/notifications", "description": "The Illuminate Notifications package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Pagination/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/pagination", "description": "The Illuminate Pagination package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "ht...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Pipeline/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/pipeline", "description": "The Illuminate Pipeline package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https:...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Queue/README.md
@@ -31,4 +31,4 @@ $queue->push('SendEmail', array('message' => $message)); Queue::push('SendEmail', array('message' => $message)); ``` -For further documentation on using the queue, consult the [Laravel framework documentation](http://laravel.com/docs). +For further documentation on using the queue, consult the [La...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Queue/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/queue", "description": "The Illuminate Queue package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://gith...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Redis/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/redis", "description": "The Illuminate Redis package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://gith...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Routing/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/routing", "description": "The Illuminate Routing package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Session/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/session", "description": "The Illuminate Session package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Support/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/support", "description": "The Illuminate Support package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Translation/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/translation", "description": "The Illuminate Translation package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/Validation/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/validation", "description": "The Illuminate Validation package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "ht...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
src/Illuminate/View/composer.json
@@ -2,7 +2,7 @@ "name": "illuminate/view", "description": "The Illuminate View package.", "license": "MIT", - "homepage": "http://laravel.com", + "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github...
true
Other
laravel
framework
f017f119925999145d4596582edacb1fa45e809d.json
Update laravel urls with https (#14629)
tests/Validation/ValidationValidatorTest.php
@@ -1663,16 +1663,16 @@ public function validUrls() ['https://google.com'], ['http://illuminate.dev'], ['http://localhost'], - ['http://laravel.com/?'], + ['https://laravel.com/?'], ['http://президент.рф/'], ['http://스타벅스코리아.com'], ...
true
Other
laravel
framework
4dc53d79d700caeac51d043bb82e2a2cd83e4858.json
remove updateAny from stub
src/Illuminate/Foundation/Console/stubs/policy.stub
@@ -44,17 +44,6 @@ class DummyClass // } - /** - * Determine whether the user can update dummyPluralModelName. - * - * @param DummyRootNamespaceUser $user - * @return mixed - */ - public function updateAny(User $user) - { - // - } - /** * Determine whe...
false
Other
laravel
framework
9c48671932c6ee631b5c2a6ee6513582062c5b92.json
remove old property
src/Illuminate/Notifications/Notification.php
@@ -15,11 +15,6 @@ class Notification */ public $notifiables; - /** - * The channels that the notification should be sent through. - */ - public $via = []; - /** * The name of the application sending the notification. *
false
Other
laravel
framework
73c64077b223181d7c47ff6358e3df71af183ec8.json
Remove unused code. (#14610) Signed-off-by: crynobone <crynobone@gmail.com>
src/Illuminate/Notifications/ChannelManager.php
@@ -197,17 +197,4 @@ public function deliverVia($channels) { $this->defaultChannels = (array) $channels; } - - /** - * Build a new channel notification from the given object. - * - * @param mixed $notifiable - * @param mixed $notification - * @param array|null $channels -...
false
Other
laravel
framework
b44ad4df64620b042b83f51ff34f10222e923e13.json
add option for bc
src/Illuminate/Queue/Console/WorkCommand.php
@@ -191,6 +191,8 @@ protected function getOptions() return [ ['queue', null, InputOption::VALUE_OPTIONAL, 'The queue to listen on'], + ['daemon', null, InputOption::VALUE_NONE, 'Run the worker in daemon mode (Deprecated)'], + ['once', null, InputOption::VALUE_NONE, 'Only ...
false
Other
laravel
framework
8ac01ded45adaf88519d65285e009d8826e82964.json
adjust type hint
src/Illuminate/Foundation/helpers.php
@@ -589,7 +589,7 @@ function redirect($to = null, $status = 302, $headers = [], $secure = null) /** * Get an instance of the current request or an input item from the request. * - * @param string $key + * @param array|string $key * @param mixed $default * @return \Illuminate\...
false
Other
laravel
framework
192332a89620e3f6db4a13627d0b2f6868b56513.json
Add missed import (#14595)
src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
@@ -2,6 +2,7 @@ namespace Illuminate\Foundation\Support\Providers; +use Illuminate\Routing\Router; use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; use Illuminate\Contracts\Routing\UrlGenerator;
false
Other
laravel
framework
2e10175326bbdaeca2fdc9ad1b49dda62031bb65.json
Fix typo on docblock
src/Illuminate/Cache/Console/CacheTableCommand.php
@@ -35,7 +35,7 @@ class CacheTableCommand extends Command protected $composer; /** - * Create a new session table command instance. + * Create a new cache table command instance. * * @param \Illuminate\Filesystem\Filesystem $files * @param \Illuminate\Foundation\Composer $compo...
false
Other
laravel
framework
3a3dea2e1623dfc62d7d900cd764a2b4ffb4c535.json
Add the opposite method of isDirty, the isClean
src/Illuminate/Database/Eloquent/Model.php
@@ -3139,6 +3139,17 @@ public function isDirty($attributes = null) return false; } + /** + * Determine if the model or given attribute(s) have been remained the same. + * + * @param array|string|null $attributes + * @return bool + */ + public function isClean($attributes = nu...
true
Other
laravel
framework
3a3dea2e1623dfc62d7d900cd764a2b4ffb4c535.json
Add the opposite method of isDirty, the isClean
tests/Database/DatabaseEloquentModelTest.php
@@ -46,6 +46,21 @@ public function testDirtyAttributes() $this->assertTrue($model->isDirty(['foo', 'bar'])); } + public function testCleanAttributes() + { + $model = new EloquentModelStub(['foo' => '1', 'bar' => 2, 'baz' => 3]); + $model->syncOriginal(); + $model->foo = 1; + ...
true
Other
laravel
framework
5c170ad2b9560344cf7b7ab76e800c1c31dfc8b9.json
Add toggle() method to BelongsToMany relation
src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
@@ -817,7 +817,7 @@ public function sync($ids, $detaching = true) // if they exist in the array of current ones, and if not we will insert. $current = $this->newPivotQuery()->pluck($this->otherKey)->all(); - $records = $this->formatSyncList($ids); + $records = $this->formatRecordsList(...
true
Other
laravel
framework
5c170ad2b9560344cf7b7ab76e800c1c31dfc8b9.json
Add toggle() method to BelongsToMany relation
tests/Database/DatabaseEloquentBelongsToManyTest.php
@@ -554,6 +554,50 @@ public function testTouchMethodSyncsTimestamps() $relation->touch(); } + /** + * @dataProvider toggleMethodListProvider + */ + public function testToggleMethodTogglesIntermediateTableWithGivenArray($list) + { + $relation = $this->getMockBuilder('Illuminate\Da...
true
Other
laravel
framework
b8c2b869f36dc730c4eaf563614d9d7f1a69ab9f.json
remove legacy non-breaking code
src/Illuminate/Support/Collection.php
@@ -1094,16 +1094,6 @@ public function zip($items) return new static(call_user_func_array('array_map', $params)); } - /** - * Return self to allow compatibility with Illuminate\Database\Eloquent\Collection. - * - * @return \Illuminate\Support\Collection - */ - public function toBas...
true
Other
laravel
framework
b8c2b869f36dc730c4eaf563614d9d7f1a69ab9f.json
remove legacy non-breaking code
tests/Support/SupportCollectionTest.php
@@ -1457,12 +1457,6 @@ public function testSliceNegativeOffsetAndNegativeLength() $collection = new Collection([1, 2, 3, 4, 5, 6, 7, 8]); $this->assertEquals([3, 4, 5, 6], $collection->slice(-6, -2)->values()->toArray()); } - - public function testToBase() - { - $collection = new Col...
true
Other
laravel
framework
456f1f3d197069baa7bad8de4b78df1db98def30.json
remove old test
tests/Encryption/EncrypterTest.php
@@ -91,25 +91,4 @@ public function testExceptionThrownWithDifferentKey() $b = new Encrypter(str_repeat('b', 16)); $b->decrypt($a->encrypt('baz')); } -<<<<<<< HEAD -======= - - public function testOpenSslEncrypterCanDecryptMcryptedData() - { - if (! extension_loaded('mcrypt')) { - ...
false
Other
laravel
framework
0024fc2228ac4c223fccb3696b170e3c23f74084.json
Add missing return statement (#14580)
src/Illuminate/Mail/Mailable.php
@@ -289,7 +289,7 @@ protected function runCallbacks($message) */ public function from($address, $name = null) { - $this->setAddress($address, $name, 'from'); + return $this->setAddress($address, $name, 'from'); } /**
false
Other
laravel
framework
4591d90f6de700a7b67dedb0147d2c9dcf6acd51.json
Ignore case in blade foreach compiler (#14581)
src/Illuminate/View/Compilers/BladeCompiler.php
@@ -579,7 +579,7 @@ protected function compileFor($expression) */ protected function compileForeach($expression) { - preg_match('/\( *(.*) +as *([^\)]*)/', $expression, $matches); + preg_match('/\( *(.*) +as *([^\)]*)/i', $expression, $matches); $iteratee = trim($matches[1]);
true
Other
laravel
framework
4591d90f6de700a7b67dedb0147d2c9dcf6acd51.json
Ignore case in blade foreach compiler (#14581)
tests/View/ViewBladeCompilerTest.php
@@ -439,6 +439,18 @@ public function testForeachStatementsAreCompiled() $this->assertEquals($expected, $compiler->compileString($string)); } + public function testForeachStatementsAreCompileWithUppercaseSyntax() + { + $compiler = new BladeCompiler($this->getFiles(), __DIR__); + $stri...
true
Other
laravel
framework
ed86dcda3078d0cd470199b7cf4853d8b2cde808.json
Fix some docblocks.
src/Illuminate/Mail/Mailable.php
@@ -100,7 +100,7 @@ class Mailable implements MailableContract /** * Send the message using the given mailer. * - * @param MailerContract $mailer + * @param \Illuminate\Contracts\Mail\Mailer $mailer * @return void */ public function send(MailerContract $mailer) @@ -119,7 +1...
false
Other
laravel
framework
d4a4c802a4d57800af2f980ecee1d1ebcc318235.json
Change exception message to actual model path
src/Illuminate/Database/Eloquent/Builder.php
@@ -681,7 +681,8 @@ public function getRelation($name) try { return $this->getModel()->$name(); } catch (BadMethodCallException $e) { - throw new RelationNotFoundException("Call to undefined relationship {$name} on Model {$this->getModel()}"); + $...
false
Other
laravel
framework
9b6b257e0818cd32f9ad64d017cac8650bba1686.json
Fix pokemon plural form (#14525) As with the words deer and sheep, the singular and plural forms of the word "Pokémon" do not differ, nor does each individual species name; in short, it is grammatically correct to say both "one Pokémon" and "many Pokémon"
src/Illuminate/Support/Pluralizer.php
@@ -32,6 +32,7 @@ class Pluralizer 'nutrition', 'offspring', 'plankton', + 'pokemon', 'police', 'rice', 'series',
false
Other
laravel
framework
a01a102f1522da0d617ff53cc399f2e476cc6569.json
Remove duplicate interface implementation (#14515) Because the interface `QueueingDispatcher` inherits from the interface `Illuminate\Contracts\Bus\Dispatcher`, there is no need to implement the interface `Illuminate\Contracts\Bus\Dispatcher` again.
src/Illuminate/Bus/Dispatcher.php
@@ -9,9 +9,8 @@ use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Bus\QueueingDispatcher; -use Illuminate\Contracts\Bus\Dispatcher as DispatcherContract; -class Dispatcher implements DispatcherContract, QueueingDispatcher +class Dispatcher implements...
false
Other
laravel
framework
afec9cda4cd292dc8a2294e72627fcb25f591d93.json
Fix #14506 (#14510) Shorten too broad PhpDoc @return tag from `@return \Illuminate\Database\Query\Builder|static` to `@return \Illuminate\Database\Query\Builder`.
src/Illuminate/Database/Eloquent/Builder.php
@@ -1299,7 +1299,7 @@ protected function nestWhereSlice($whereSlice) /** * Get the underlying query builder instance. * - * @return \Illuminate\Database\Query\Builder|static + * @return \Illuminate\Database\Query\Builder */ public function getQuery() {
false
Other
laravel
framework
2db8ff33e92ff0d2dad4d71f1e08e5029418eb17.json
fix build order
src/Illuminate/Notifications/Channels/Notification.php
@@ -296,16 +296,16 @@ protected static function buildNotification($notifiable, $instance, $channel) { $notification = new static([$notifiable]); - $notification->via($channel) - ->subject($instance->subject()) - ->level($instance->level()); - $meth...
false
Other
laravel
framework
244a0a90c3e015aead0b49f871618fba95ccec58.json
remove the morphclass (#14477)
src/Illuminate/Database/Eloquent/Model.php
@@ -182,13 +182,6 @@ abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializab */ protected $with = []; - /** - * The class name to be used in polymorphic relations. - * - * @var string - */ - protected $morphClass; - /** * Indicates if the model exis...
false
Other
laravel
framework
802f42fe8d3b6a106251ce53a3d41845d980a253.json
Fix a docblock (#14489)
src/Illuminate/Auth/RequestGuard.php
@@ -27,11 +27,10 @@ class RequestGuard implements Guard * Create a new authentication guard. * * @param callable $callback - * @param \Symfony\Component\HttpFoundation\Request $request + * @param \Illuminate\Http\Request $request * @return void */ - public function __const...
false
Other
laravel
framework
01fcf8c1576d9b765143b93cf0e6d0a2204da27a.json
Use Macroable trait in Message Builder (#14469)
src/Illuminate/Notifications/MessageBuilder.php
@@ -2,8 +2,12 @@ namespace Illuminate\Notifications; +use Illuminate\Support\Traits\Macroable; + class MessageBuilder { + use Macroable; + /** * All of the message elements. *
false
Other
laravel
framework
30f9a32bde4ac95c59fd028548872205d8ba894c.json
Handle dynamic channels.
src/Illuminate/Notifications/Channels/Notification.php
@@ -235,7 +235,7 @@ public function action($text, $url) */ public function via($channels) { - $this->via = (array) $channels; + $this->via = is_string($channels) ? func_get_args() : (array) $channels; return $this; }
false
Other
laravel
framework
30f78490a4546bc9a91d0b846ad120306968ef6c.json
add notification facade
src/Illuminate/Support/Facades/Notification.php
@@ -0,0 +1,19 @@ +<?php + +namespace Illuminate\Support\Facades; + +/** + * @see \Illuminate\Notifications\ChannelManager + */ +class Notification extends Facade +{ + /** + * Get the registered name of the component. + * + * @return string + */ + protected static function getFacadeAccessor() + ...
false
Other
laravel
framework
dc278125ff1b5f4f62440aef85bcec9929703508.json
Add constructor to notification stub.
src/Illuminate/Foundation/Console/stubs/notification.stub
@@ -10,6 +10,16 @@ class DummyClass extends Notification { use Queueable; + /** + * Create a new notification instance. + * + * @return void + */ + public function __construct() + { + // + } + /** * Get the notification channels. *
false
Other
laravel
framework
a305c41c330c16c9b2a0e89f268e51b7f6fcc38b.json
remove duplicate method
src/Illuminate/Support/Collection.php
@@ -564,20 +564,6 @@ public function map(callable $callback) return new static(array_combine($keys, $items)); } - /** - * Run a map over each key of the items. - * - * @param callable $callback - * @return static - */ - public function mapKeys(callable $callback) - { - ...
true
Other
laravel
framework
a305c41c330c16c9b2a0e89f268e51b7f6fcc38b.json
remove duplicate method
tests/Support/SupportCollectionTest.php
@@ -1354,24 +1354,6 @@ public function testWithMultipleModeValues() $collection = new Collection([1, 2, 2, 1]); $this->assertEquals([1, 2], $collection->mode()); } - - public function testKeyMapUsingKeysOnly() - { - $data = new Collection(['foo' => 'something', 'bar' => 'else']); - ...
true
Other
laravel
framework
f8ead240b1c9af58365ee885807cf950ca5f66d5.json
Add relation not found exception
src/Illuminate/Database/Eloquent/Builder.php
@@ -2,6 +2,7 @@ namespace Illuminate\Database\Eloquent; +use BadMethodCallException; use Closure; use Illuminate\Support\Arr; use Illuminate\Support\Str; @@ -677,7 +678,11 @@ public function getRelation($name) // not have to remove these where clauses manually which gets really hacky // and is...
true
Other
laravel
framework
f8ead240b1c9af58365ee885807cf950ca5f66d5.json
Add relation not found exception
src/Illuminate/Database/Eloquent/RelationNotFoundException.php
@@ -0,0 +1,10 @@ +<?php + +namespace Illuminate\Database\Eloquent; + +use RuntimeException; + +class RelationNotFoundException extends RuntimeException +{ + // +} \ No newline at end of file
true
Other
laravel
framework
f8ead240b1c9af58365ee885807cf950ca5f66d5.json
Add relation not found exception
tests/Database/DatabaseEloquentBuilderTest.php
@@ -365,6 +365,17 @@ public function testGetRelationProperlySetsNestedRelationshipsWithSimilarNames() $relation = $builder->getRelation('ordersGroups'); } + /** + * @expectedException Illuminate\Database\Eloquent\RelationNotFoundException + */ + public function testGetRelationThrowsExcepti...
true
Other
laravel
framework
af21db5a47b856306243bd8045d5de0d990ad868.json
make the make:auth command less noisy
src/Illuminate/Auth/Console/MakeAuthCommand.php
@@ -49,23 +49,19 @@ public function fire() $this->exportViews(); if (! $this->option('views')) { - $this->info('Installed HomeController.'); - file_put_contents( app_path('Http/Controllers/HomeController.php'), $this->compileControllerStub() ...
false
Other
laravel
framework
406a2bb9ed65472a3671f9c9b55cccbda96c6033.json
Remove things that can be compiled.
src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub
@@ -7,9 +7,6 @@ <title>Laravel</title> - <!-- Fonts --> - <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet' type='text/css'> - <!-- Styles --> @if (file_exists(public_path('css/app.css'))) <link href="/css/app.css" rel="stylesheet"> @@ -75,8 +7...
false
Other
laravel
framework
9b56f12f6c1541ed19f89cfd0beb949eb3dd77c0.json
remove useless getter / setter
src/Illuminate/Queue/DatabaseQueue.php
@@ -315,25 +315,4 @@ public function getDatabase() { return $this->database; } - - /** - * Get the expiration time in seconds. - * - * @return int|null - */ - public function getExpire() - { - return $this->expire; - } - - /** - * Set the expiration time in s...
false
Other
laravel
framework
c5acf79cc86275f45018056cb3c1e95f32619af1.json
Add keyMap method to collection
src/Illuminate/Support/Collection.php
@@ -564,6 +564,21 @@ public function map(callable $callback) return new static(array_combine($keys, $items)); } + /** + * Run a map over each key of the items. + * + * @param callable $callback + * @return static + */ + public function keyMap(callable $callback) + { + ...
true
Other
laravel
framework
c5acf79cc86275f45018056cb3c1e95f32619af1.json
Add keyMap method to collection
tests/Support/SupportCollectionTest.php
@@ -1354,6 +1354,24 @@ public function testWithMultipleModeValues() $collection = new Collection([1, 2, 2, 1]); $this->assertEquals([1, 2], $collection->mode()); } + + public function testKeyMapUsingKeysOnly() + { + $data = new Collection(['foo' => 'something', 'bar' => 'else']); + ...
true
Other
laravel
framework
8021540aaf020f1a2e2fafccba89a4783a9fc262.json
fix tests for php 7
tests/Queue/QueueBeanstalkdJobTest.php
@@ -24,7 +24,7 @@ public function testFailedProperlyCallsTheJobHandler() $job = $this->getJob(); $job->getPheanstalkJob()->shouldReceive('getData')->once()->andReturn(json_encode(['job' => 'foo', 'data' => ['data']])); $job->getContainer()->shouldReceive('make')->once()->with('foo')->andRetur...
true
Other
laravel
framework
8021540aaf020f1a2e2fafccba89a4783a9fc262.json
fix tests for php 7
tests/Queue/QueueWorkerTest.php
@@ -61,19 +61,6 @@ public function test_exception_is_reported_if_connection_throws_exception_on_job $this->exceptionHandler->shouldHaveReceived('report')->with($e); } - public function test_exception_is_reported_if_connection_throws_fatal_throwable_on_job_pop() - { - $worker = new Insomniac...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Contracts/Queue/Job.php
@@ -2,8 +2,6 @@ namespace Illuminate\Contracts\Queue; -use Throwable; - interface Job { /** @@ -62,7 +60,7 @@ public function getName(); * @param \Throwable $e * @return void */ - public function failed(Throwable $e); + public function failed($e); /** * Get the name of...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/CallQueuedHandler.php
@@ -71,7 +71,7 @@ protected function setJobInstanceIfNecessary(Job $job, $instance) * @param \Throwable $e * @return void */ - public function failed(array $data, Throwable $e) + public function failed(array $data, $e) { $command = unserialize($data['command']);
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/Events/JobFailed.php
@@ -2,8 +2,6 @@ namespace Illuminate\Queue\Events; -use Throwable; - class JobFailed { /** @@ -35,7 +33,7 @@ class JobFailed * @param \Throwable $throwable * @return void */ - public function __construct($connectionName, $job, Throwable $throwable) + public function __construct($co...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/Failed/DatabaseFailedJobProvider.php
@@ -2,7 +2,6 @@ namespace Illuminate\Queue\Failed; -use Throwable; use Carbon\Carbon; use Illuminate\Database\ConnectionResolverInterface; @@ -53,7 +52,7 @@ public function __construct(ConnectionResolverInterface $resolver, $database, $t * @param \Throwable $exception * @return int|null */ ...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/Failed/FailedJobProviderInterface.php
@@ -2,8 +2,6 @@ namespace Illuminate\Queue\Failed; -use Throwable; - interface FailedJobProviderInterface { /** @@ -15,7 +13,7 @@ interface FailedJobProviderInterface * @param \Throwable $exception * @return int|null */ - public function log($connection, $queue, $payload, Throwable $e...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/Failed/NullFailedJobProvider.php
@@ -2,8 +2,6 @@ namespace Illuminate\Queue\Failed; -use Throwable; - class NullFailedJobProvider implements FailedJobProviderInterface { /** @@ -15,7 +13,7 @@ class NullFailedJobProvider implements FailedJobProviderInterface * @param \Throwable $exception * @return int|null */ - publi...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/Jobs/Job.php
@@ -3,7 +3,6 @@ namespace Illuminate\Queue\Jobs; use DateTime; -use Throwable; use Illuminate\Support\Arr; abstract class Job @@ -141,7 +140,7 @@ public function isDeletedOrReleased() * @param \Throwable $e * @return void */ - public function failed(Throwable $e) + public function fail...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/SyncQueue.php
@@ -46,7 +46,7 @@ public function push($job, $data = '', $queue = null) * @param \Throwable $e * @return void */ - protected function handleSyncException($queueJob, Throwable $e) + protected function handleSyncException($queueJob, $e) { $this->raiseExceptionOccurredJobEvent($queu...
true
Other
laravel
framework
a5b537b3624e228cecd255341edc4314ebceb416.json
remove throwable type hints
src/Illuminate/Queue/Worker.php
@@ -222,10 +222,10 @@ public function process($connectionName, $job, WorkerOptions $options) * @param WorkerOptions $options * @param \Throwable $e * @return void - * - * @throws \Throwable + *Throwable + * @throws \ */ - protected function handleJobException($connectionNa...
true
Other
laravel
framework
f1e43d1e55453126bc21747762a7e528a1e1a23b.json
Remove unneeded code.
src/Illuminate/Queue/QueueManager.php
@@ -135,8 +135,6 @@ public function connection($name = null) $this->connections[$name] = $this->resolve($name); $this->connections[$name]->setContainer($this->app); - - $this->connections[$name]->setEncrypter($this->app['encrypter']); } return $this->connection...
true
Other
laravel
framework
f1e43d1e55453126bc21747762a7e528a1e1a23b.json
Remove unneeded code.
tests/Queue/QueueManagerTest.php
@@ -28,7 +28,6 @@ public function testDefaultConnectionCanBeResolved() return $connector; }); $queue->shouldReceive('setContainer')->once()->with($app); - $queue->shouldReceive('setEncrypter')->once()->with($encrypter); $this->assertSame($queue, $manager->connection('syn...
true
Other
laravel
framework
880107fa8c24d4b31f155bd1b92fd4bfa1a1ac52.json
Use "expire" to be consistent with other drivers.
src/Illuminate/Queue/Connectors/BeanstalkdConnector.php
@@ -20,7 +20,7 @@ public function connect(array $config) $pheanstalk = new Pheanstalk($config['host'], Arr::get($config, 'port', PheanstalkInterface::DEFAULT_PORT)); return new BeanstalkdQueue( - $pheanstalk, $config['queue'], Arr::get($config, 'ttr', Pheanstalk::DEFAULT_TTR) + ...
false
Other
laravel
framework
ab8fb62485c27611746e8336add504afc6e16373.json
simplify mailable stub even further
src/Illuminate/Foundation/Console/stubs/mail.stub
@@ -27,8 +27,6 @@ class DummyClass extends Mailable */ public function build() { - return $this->to('example@example.com') - ->subject('Message Subject') - ->view('view.name'); + return $this->view('view.name'); } }
false
Other
laravel
framework
c6eff0f8dcd480985ca7788afa1d98bf5d62983c.json
Use cleaner API for mocking model events
src/Illuminate/Foundation/Testing/Concerns/MocksApplicationServices.php
@@ -142,14 +142,15 @@ protected function withoutModelEvents() * * These events will be mocked, so that handlers will not actually be executed. * + * @param string $model * @param array|string $events * @return $this * * @throws \Exception */ - public function e...
true
Other
laravel
framework
c6eff0f8dcd480985ca7788afa1d98bf5d62983c.json
Use cleaner API for mocking model events
tests/Foundation/FoundationExpectsModelEventsTest.php
@@ -12,6 +12,8 @@ class FoundationExpectsModelEventsTest extends TestCase { public function createApplication() { + Model::clearBootedModels(); + $app = new Application; $db = new DB; @@ -36,7 +38,7 @@ public function a_mock_replaces_the_event_dispatcher_when_calling_expects_model_...
true
Other
laravel
framework
ac6aec3e5e78fd99ac992991e9e924da72a977bc.json
Shorten a few lines.
src/Illuminate/Mail/Mailer.php
@@ -184,7 +184,9 @@ public function queue($view, array $data, $callback, $queue = null) { $callback = $this->buildQueueCallable($callback); - return $this->queue->push('mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue); + return $this->queue->push( + 'mai...
false
Other
laravel
framework
75e8cf11296c8754fc16ed118ef7aac7dbbdfcf9.json
Handle array keys with dots, fixes #14384 (#14388)
src/Illuminate/Validation/Validator.php
@@ -191,21 +191,46 @@ public function __construct(TranslatorInterface $translator, array $data, array { $this->translator = $translator; $this->customMessages = $messages; - $this->data = $this->parseData($data); + $this->data = $this->hydrateFiles($this->parseData($data)); ...
true