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 | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | src/Illuminate/Redis/PhpRedisDatabase.php | @@ -1,184 +0,0 @@
-<?php
-
-namespace Illuminate\Redis;
-
-use Redis;
-use Closure;
-use RedisCluster;
-use Illuminate\Support\Arr;
-
-class PhpRedisDatabase extends Database
-{
- /**
- * The host address of the database.
- *
- * @var array
- */
- public $clients;
-
- /**
- * Create a new R... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | src/Illuminate/Redis/PredisDatabase.php | @@ -1,120 +0,0 @@
-<?php
-
-namespace Illuminate\Redis;
-
-use Closure;
-use Predis\Client;
-use Illuminate\Support\Arr;
-
-class PredisDatabase extends Database
-{
- /**
- * The host address of the database.
- *
- * @var array
- */
- public $clients;
-
- /**
- * Create a new Redis connecti... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | src/Illuminate/Redis/RedisManager.php | @@ -0,0 +1,106 @@
+<?php
+
+namespace Illuminate\Redis;
+
+use Illuminate\Support\Arr;
+use InvalidArgumentException;
+use Illuminate\Contracts\Redis\Factory;
+
+class RedisManager implements Factory
+{
+ /**
+ * The name of the default driver.
+ *
+ * @var string
+ */
+ protected $driver;
+
+ ... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | src/Illuminate/Redis/RedisServiceProvider.php | @@ -22,15 +22,9 @@ class RedisServiceProvider extends ServiceProvider
public function register()
{
$this->app->singleton('redis', function ($app) {
- $servers = $app['config']['database.redis'];
+ $config = $app->make('config')->get('database.redis');
- $client = Ar... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | src/Illuminate/Support/Facades/Redis.php | @@ -3,10 +3,8 @@
namespace Illuminate\Support\Facades;
/**
- * @see \Illuminate\Redis\Database
- * @see \Illuminate\Redis\PredisDatabase
- * @see \Illuminate\Redis\PhpRedisDatabase
- * @see \Illuminate\Contracts\Redis\Database
+ * @see \Illuminate\Redis\RedisManager
+ * @see \Illuminate\Contracts\Redis\Factory
*/... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | tests/Cache/CacheRedisStoreTest.php | @@ -140,6 +140,6 @@ public function testGetAndSetPrefix()
protected function getRedis()
{
- return new Illuminate\Cache\RedisStore(m::mock('Illuminate\Redis\PredisDatabase'), 'prefix');
+ return new Illuminate\Cache\RedisStore(m::mock('Illuminate\Contracts\Redis\Factory'), 'prefix');
}
} | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | tests/Queue/QueueRedisQueueTest.php | @@ -11,7 +11,7 @@ public function tearDown()
public function testPushProperlyPushesJobOntoRedis()
{
- $queue = $this->getMockBuilder('Illuminate\Queue\RedisQueue')->setMethods(['getRandomId'])->setConstructorArgs([$redis = m::mock('Illuminate\Redis\PredisDatabase'), 'default'])->getMock();
+ $... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | tests/Redis/InteractsWithRedis.php | @@ -1,7 +1,7 @@
<?php
-use Illuminate\Redis\PredisDatabase;
+use Illuminate\Redis\RedisManager;
trait InteractsWithRedis
{
@@ -11,7 +11,7 @@ trait InteractsWithRedis
private static $connectionFailedOnceWithDefaultsSkip = false;
/**
- * @var PredisDatabase
+ * @var RedisManager
*/
... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | tests/Redis/PhpRedisConnectionTest.php | @@ -1,96 +0,0 @@
-<?php
-
-use Illuminate\Redis\PhpRedisDatabase;
-
-class PhpRedisConnectionTest extends PHPUnit_Framework_TestCase
-{
- public function testPhpRedisNotCreateClusterAndOptionsAndClustersServer()
- {
- $redis = $this->getRedis();
-
- $client = $redis->connection('cluster');
- ... | true |
Other | laravel | framework | 1ef8b9c3f156c7d4debc6c6f67b73b032d8337d5.json | Rewrite Redis layer.
This rewrite the Redis layer to function more like database or cache
drivers… a new Redis factory is introduced to retrieve Redis connection
instances. Different Redis connection instances are introduced to
account for differences between the two drivers (Predis and PhpRedis). | tests/Redis/RedisConnectionTest.php | @@ -1,72 +0,0 @@
-<?php
-
-class RedisConnectionTest extends PHPUnit_Framework_TestCase
-{
- public function testRedisNotCreateClusterAndOptionsAndClustersServer()
- {
- $redis = $this->getRedis();
-
- $client = $redis->connection('cluster');
- $this->assertNull($client, 'cluster parameter sh... | true |
Other | laravel | framework | 9f80a2adde929b653a2bf9430e9d3b696b3f2629.json | remove unneeded property | src/Illuminate/Notifications/Events/BroadcastNotificationCreated.php | @@ -25,13 +25,6 @@ class BroadcastNotificationCreated implements ShouldBroadcast
*/
public $notification;
- /**
- * The queue connection.
- *
- * @var string
- */
- public $connection;
-
/**
* The notification data.
* | false |
Other | laravel | framework | 9682b187f64564292209a8713aed85231709b291.json | Add withPath method. Protect addQuery. | src/Illuminate/Pagination/AbstractPaginator.php | @@ -213,7 +213,7 @@ protected function appendArray(array $keys)
* @param string $value
* @return $this
*/
- public function addQuery($key, $value)
+ protected function addQuery($key, $value)
{
if ($key !== $this->pageName) {
$this->query[$key] = $value;
@@ -325,6 +32... | false |
Other | laravel | framework | 4ffd790217432f8699d4beae891fca482c230de4.json | Apply fixes from StyleCI (#16891) | src/Illuminate/Notifications/Channels/MailChannel.php | @@ -5,7 +5,6 @@
use Closure;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
-use Illuminate\Support\Collection;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Contracts\Mail\Mailable;
use Illuminate\Notifications\Notification; | false |
Other | laravel | framework | 2efc9531debaddeec0fb7d605d627367102b5c68.json | Apply fixes from StyleCI (#16890) | src/Illuminate/Notifications/ChannelManager.php | @@ -2,19 +2,14 @@
namespace Illuminate\Notifications;
-use Ramsey\Uuid\Uuid;
use Illuminate\Mail\Markdown;
use InvalidArgumentException;
use Illuminate\Support\Manager;
use Nexmo\Client as NexmoClient;
-use Illuminate\Support\Collection;
use GuzzleHttp\Client as HttpClient;
-use Illuminate\Database\Eloquent\M... | false |
Other | laravel | framework | 4d8090b332ec30c80c54eb16a61134cf09562c7f.json | Correct param order. | src/Illuminate/Notifications/Events/NotificationFailed.php | @@ -43,9 +43,9 @@ class NotificationFailed
*/
public function __construct($notifiable, $notification, $channel, $data = [])
{
+ $this->data = $data;
$this->channel = $channel;
$this->notifiable = $notifiable;
$this->notification = $notification;
- $this->data = $... | false |
Other | laravel | framework | 44958f04b0c3eacd8ebc8b19602511438f7fbbec.json | Apply fixes from StyleCI (#16889) | src/Illuminate/Mail/Mailer.php | @@ -2,7 +2,6 @@
namespace Illuminate\Mail;
-use Closure;
use Swift_Mailer;
use Swift_Message;
use Illuminate\Support\Arr;
@@ -312,7 +311,7 @@ protected function setGlobalTo($message)
public function queue($view, array $data = [], $callback = null, $queue = null)
{
if (! $view instanceof Maila... | true |
Other | laravel | framework | 44958f04b0c3eacd8ebc8b19602511438f7fbbec.json | Apply fixes from StyleCI (#16889) | src/Illuminate/Mail/Transport/MailgunTransport.php | @@ -3,7 +3,6 @@
namespace Illuminate\Mail\Transport;
use Swift_Mime_Message;
-use GuzzleHttp\Post\PostFile;
use GuzzleHttp\ClientInterface;
class MailgunTransport extends Transport
@@ -77,7 +76,7 @@ protected function payload(Swift_Mime_Message $message)
{
return [
'auth' => [
- ... | true |
Other | laravel | framework | dd778cbd536bcd9bb23df1d7354f7d298cd1f7a7.json | Pass keys to Collection::unique callback (#16883) | src/Illuminate/Support/Collection.php | @@ -1142,12 +1142,12 @@ public function unique($key = null, $strict = false)
return new static(array_unique($this->items, SORT_REGULAR));
}
- $key = $this->valueRetriever($key);
+ $callback = $this->valueRetriever($key);
$exists = [];
- return $this->reject(func... | true |
Other | laravel | framework | dd778cbd536bcd9bb23df1d7354f7d298cd1f7a7.json | Pass keys to Collection::unique callback (#16883) | tests/Support/SupportCollectionTest.php | @@ -556,9 +556,12 @@ public function testUnique()
public function testUniqueWithCallback()
{
$c = new Collection([
- 1 => ['id' => 1, 'first' => 'Taylor', 'last' => 'Otwell'], 2 => ['id' => 2, 'first' => 'Taylor', 'last' => 'Otwell'],
- 3 => ['id' => 3, 'first' => 'Abigail', 'la... | true |
Other | laravel | framework | dcd64b6c36d1e545c1c2612764ec280c47fdea97.json | add queueable to queued listener stub | src/Illuminate/Foundation/Console/stubs/listener-queued.stub | @@ -3,12 +3,13 @@
namespace DummyNamespace;
use DummyFullEvent;
+use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
class DummyClass implements ShouldQueue
{
- use InteractsWithQueue;
+ use InteractsWithQueue, Queueable;
/**
* ... | false |
Other | laravel | framework | 1b05c8d1874a0bb444daf48e4f477045c9c08c20.json | Add missing composer dependency
Trying to use `illuminate/notifications` alone doesn't install `illuminate/queue` which is mandatory for notifications to function.
Getting this error instead: `PHP Fatal error: Trait 'Illuminate\Queue\SerializesModels' not found in /vendor/illuminate/notifications/Notification.php... | src/Illuminate/Notifications/composer.json | @@ -17,6 +17,7 @@
"php": ">=5.6.4",
"illuminate/broadcasting": "5.3.*",
"illuminate/bus": "5.3.*",
+ "illuminate/queue": "5.3.*",
"illuminate/contracts": "5.3.*",
"illuminate/support": "5.3.*",
"ramsey/uuid": "~3.0" | false |
Other | laravel | framework | 7790c83208ac98fd15e6bf042b2ef881d61dc381.json | Add nullable morph columns | src/Illuminate/Database/Schema/Blueprint.php | @@ -901,6 +901,22 @@ public function morphs($name, $indexName = null)
$this->index(["{$name}_id", "{$name}_type"], $indexName);
}
+ /**
+ * Add nullable proper columns for a polymorphic table.
+ *
+ * @param string $name
+ * @param string|null $indexName
+ * @return void
+ ... | false |
Other | laravel | framework | eb50ed3a69950f337459ff9b45e3916d96801d84.json | Apply fixes from StyleCI (#16878) | src/Illuminate/Log/Writer.php | @@ -10,8 +10,8 @@
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\ErrorLogHandler;
use Monolog\Logger as MonologLogger;
-use Monolog\Handler\RotatingFileHandler;
use Illuminate\Log\Events\MessageLogged;
+use Monolog\Handler\RotatingFileHandler;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Co... | false |
Other | laravel | framework | e83703e49862f62246b49a74b42ca03422b8d995.json | Apply fixes from StyleCI (#16876) | src/Illuminate/Http/Concerns/InteractsWithInput.php | @@ -6,7 +6,6 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Http\UploadedFile;
-use Symfony\Component\HttpFoundation\ParameterBag;
trait InteractsWithInput
{ | true |
Other | laravel | framework | e83703e49862f62246b49a74b42ca03422b8d995.json | Apply fixes from StyleCI (#16876) | src/Illuminate/Http/Request.php | @@ -4,7 +4,6 @@
use Closure;
use ArrayAccess;
-use SplFileInfo;
use RuntimeException;
use Illuminate\Support\Arr;
use Illuminate\Support\Str; | true |
Other | laravel | framework | b856355d162e35b249bf05e85ec454f289e59928.json | Fix exception message. | src/Illuminate/Foundation/Testing/WithoutMiddleware.php | @@ -16,7 +16,7 @@ public function disableMiddlewareForAllTests()
if (method_exists($this, 'withoutMiddleware')) {
$this->withoutMiddleware();
} else {
- throw new Exception('Unable to disable middleware. CrawlerTrait not used.');
+ throw new Exception('Unable to disa... | false |
Other | laravel | framework | 0f2b3be9b8753ba2813595f9191aa8d8c31886b1.json | Remove function that is no longer used. | src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php | @@ -69,25 +69,6 @@ protected function loadRoutes()
$this->app->call([$this, 'map']);
}
- /**
- * Load the standard routes file for the application.
- *
- * @param string $path
- * @return mixed
- */
- protected function loadRoutesFrom($path)
- {
- $router = $this->a... | false |
Other | laravel | framework | 87bd2a9e6c79715a9c73ca6134074919ede1a0e7.json | Remove unneeded provider. | src/Illuminate/Queue/ConsoleServiceProvider.php | @@ -1,61 +0,0 @@
-<?php
-
-namespace Illuminate\Queue;
-
-use Illuminate\Support\ServiceProvider;
-use Illuminate\Queue\Console\RetryCommand;
-use Illuminate\Queue\Console\ListFailedCommand;
-use Illuminate\Queue\Console\FlushFailedCommand;
-use Illuminate\Queue\Console\ForgetFailedCommand;
-
-class ConsoleServiceProvi... | false |
Other | laravel | framework | 15db4cb8da2c4ab594c86fec7c6bd0e689a22e8e.json | Apply fixes from StyleCI (#16872) | src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php | @@ -14,10 +14,10 @@
use Illuminate\Queue\Console\FailedTableCommand;
use Illuminate\Foundation\Console\AppNameCommand;
use Illuminate\Foundation\Console\JobMakeCommand;
+use Illuminate\Database\Console\Seeds\SeedCommand;
use Illuminate\Foundation\Console\MailMakeCommand;
use Illuminate\Foundation\Console\OptimizeC... | false |
Other | laravel | framework | b62983efea2bdc01b7ea0ec0c102ac7ccb3b4c7f.json | Use newer syntax | src/Illuminate/Foundation/Http/Kernel.php | @@ -34,12 +34,12 @@ class Kernel implements KernelContract
* @var array
*/
protected $bootstrappers = [
- 'Illuminate\Foundation\Bootstrap\DetectEnvironment',
- 'Illuminate\Foundation\Bootstrap\LoadConfiguration',
- 'Illuminate\Foundation\Bootstrap\HandleExceptions',
- 'Illu... | false |
Other | laravel | framework | 730daa7dce9e069fed832e19cbdb1c23d6864b80.json | Apply fixes from StyleCI (#16841) | src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php | @@ -4,7 +4,6 @@
use Illuminate\Config\Repository;
use Symfony\Component\Finder\Finder;
-use Symfony\Component\Finder\SplFileInfo;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Config\Repository as RepositoryContract;
| false |
Other | laravel | framework | 9c033c21f32ef6a545ed49ed939d4fbd4b950aab.json | Apply fixes from StyleCI (#16837) | src/Illuminate/Hashing/BcryptHasher.php | @@ -63,7 +63,7 @@ public function check($value, $hashedValue, array $options = [])
public function needsRehash($hashedValue, array $options = [])
{
return password_needs_rehash($hashedValue, PASSWORD_BCRYPT, [
- 'cost' => isset($options['rounds']) ? $options['rounds'] : $this->rounds
+ ... | false |
Other | laravel | framework | 528551536aab0ec08e297f443cbfca1f870aeadb.json | Apply fixes from StyleCI (#16822) | src/Illuminate/Events/Dispatcher.php | @@ -305,7 +305,6 @@ protected function sortListeners($eventName)
$listeners = isset($this->listeners[$eventName])
? $this->listeners[$eventName] : [];
-
if (class_exists($eventName, false)) {
$listeners = $this->addInterfaceListeners($eventName, $listeners);... | false |
Other | laravel | framework | 7b1474dcef74d1d0dd6bce8b73779c5508ed6be7.json | Add reply-to on config for Mailer | src/Illuminate/Mail/MailServiceProvider.php | @@ -47,7 +47,7 @@ public function register()
if (is_array($to) && isset($to['address'])) {
$mailer->alwaysTo($to['address'], $to['name']);
}
-
+
$replyTo = $app['config']['mail.reply-to'];
if (is_array($replyTo) && isset($replyTo['addres... | true |
Other | laravel | framework | 7b1474dcef74d1d0dd6bce8b73779c5508ed6be7.json | Add reply-to on config for Mailer | src/Illuminate/Mail/Mailer.php | @@ -51,7 +51,7 @@ class Mailer implements MailerContract, MailQueueContract
* @var array
*/
protected $to;
-
+
/**
* The global reply-to address and name.
*
@@ -118,7 +118,7 @@ public function alwaysTo($address, $name = null)
{
$this->to = compact('address', 'name');
... | true |
Other | laravel | framework | 4f3813069fc00a595673afb4a074d18002aa1c06.json | Add reply-to on config for Mailer | src/Illuminate/Mail/MailServiceProvider.php | @@ -47,6 +47,12 @@ public function register()
if (is_array($to) && isset($to['address'])) {
$mailer->alwaysTo($to['address'], $to['name']);
}
+
+ $replyTo = $app['config']['mail.reply-to'];
+
+ if (is_array($replyTo) && isset($replyTo['address... | true |
Other | laravel | framework | 4f3813069fc00a595673afb4a074d18002aa1c06.json | Add reply-to on config for Mailer | src/Illuminate/Mail/Mailer.php | @@ -51,6 +51,13 @@ class Mailer implements MailerContract, MailQueueContract
* @var array
*/
protected $to;
+
+ /**
+ * The global reply-to address and name.
+ *
+ * @var array
+ */
+ protected $replyTo;
/**
* The IoC container instance.
@@ -111,6 +118,18 @@ publi... | true |
Other | laravel | framework | 42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a.json | Scheduler Improvements (#16806)
This PR adds improvements to the scheduler. Previously, when ->runInBackground() was used "after" hooks were not run, meaning output was not e-mailed to the developer (when using emailOutputTo.
This change provides a new, hidden schedule:finish command that is used to fire the after ... | src/Illuminate/Console/Command.php | @@ -57,6 +57,13 @@ class Command extends SymfonyCommand
*/
protected $description;
+ /**
+ * Indicates whether the command should be shown in the Artisan command list.
+ *
+ * @var bool
+ */
+ protected $hidden = false;
+
/**
* The default verbosity of output commands.
... | true |
Other | laravel | framework | 42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a.json | Scheduler Improvements (#16806)
This PR adds improvements to the scheduler. Previously, when ->runInBackground() was used "after" hooks were not run, meaning output was not e-mailed to the developer (when using emailOutputTo.
This change provides a new, hidden schedule:finish command that is used to fire the after ... | src/Illuminate/Console/ScheduleServiceProvider.php | @@ -20,7 +20,10 @@ class ScheduleServiceProvider extends ServiceProvider
*/
public function register()
{
- $this->commands('Illuminate\Console\Scheduling\ScheduleRunCommand');
+ $this->commands([
+ 'Illuminate\Console\Scheduling\ScheduleRunCommand',
+ 'Illuminate\Cons... | true |
Other | laravel | framework | 42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a.json | Scheduler Improvements (#16806)
This PR adds improvements to the scheduler. Previously, when ->runInBackground() was used "after" hooks were not run, meaning output was not e-mailed to the developer (when using emailOutputTo.
This change provides a new, hidden schedule:finish command that is used to fire the after ... | src/Illuminate/Console/Scheduling/CommandBuilder.php | @@ -0,0 +1,69 @@
+<?php
+
+namespace Illuminate\Console\Scheduling;
+
+use Illuminate\Console\Application;
+use Symfony\Component\Process\ProcessUtils;
+
+class CommandBuilder
+{
+ /**
+ * Build the command for the given event.
+ *
+ * @param \Illuminate\Console\Scheduling\Event $event
+ * @return ... | true |
Other | laravel | framework | 42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a.json | Scheduler Improvements (#16806)
This PR adds improvements to the scheduler. Previously, when ->runInBackground() was used "after" hooks were not run, meaning output was not e-mailed to the developer (when using emailOutputTo.
This change provides a new, hidden schedule:finish command that is used to fire the after ... | src/Illuminate/Console/Scheduling/Event.php | @@ -6,11 +6,9 @@
use Carbon\Carbon;
use LogicException;
use Cron\CronExpression;
-use Illuminate\Console\Application;
use GuzzleHttp\Client as HttpClient;
use Illuminate\Contracts\Mail\Mailer;
use Symfony\Component\Process\Process;
-use Symfony\Component\Process\ProcessUtils;
use Illuminate\Contracts\Container\C... | true |
Other | laravel | framework | 42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a.json | Scheduler Improvements (#16806)
This PR adds improvements to the scheduler. Previously, when ->runInBackground() was used "after" hooks were not run, meaning output was not e-mailed to the developer (when using emailOutputTo.
This change provides a new, hidden schedule:finish command that is used to fire the after ... | src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php | @@ -0,0 +1,61 @@
+<?php
+
+namespace Illuminate\Console\Scheduling;
+
+use Illuminate\Console\Command;
+
+class ScheduleFinishCommand extends Command
+{
+ /**
+ * The console command name.
+ *
+ * @var string
+ */
+ protected $signature = 'schedule:finish {id}';
+
+ /**
+ * The console comm... | true |
Other | laravel | framework | 42a851a3df17cfa8ea0fd81fa0bf4a2af4c1061a.json | Scheduler Improvements (#16806)
This PR adds improvements to the scheduler. Previously, when ->runInBackground() was used "after" hooks were not run, meaning output was not e-mailed to the developer (when using emailOutputTo.
This change provides a new, hidden schedule:finish command that is used to fire the after ... | tests/Console/Scheduling/EventTest.php | @@ -17,7 +17,15 @@ public function testBuildCommand()
$event = new Event(m::mock('Illuminate\Contracts\Cache\Repository'), 'php -i');
$defaultOutput = (DIRECTORY_SEPARATOR == '\\') ? 'NUL' : '/dev/null';
- $this->assertSame("php -i > {$quote}{$defaultOutput}{$quote} 2>&1 &", $event->buildComm... | true |
Other | laravel | framework | e0e3220ac9436ba94795d850ca07ca7fd766f86b.json | Guess policy method from class name | src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php | @@ -48,7 +48,7 @@ public function authorizeForUser($user, $ability, $arguments = [])
*/
protected function parseAbilityAndArguments($ability, $arguments)
{
- if (is_string($ability)) {
+ if (is_string($ability) && (! class_exists($ability))) {
return [$ability, $arguments];
... | true |
Other | laravel | framework | e0e3220ac9436ba94795d850ca07ca7fd766f86b.json | Guess policy method from class name | tests/Foundation/FoundationAuthorizesRequestsTraitTest.php | @@ -14,13 +14,13 @@ public function test_basic_gate_check()
$gate = $this->getBasicGate();
- $gate->define('foo', function () {
+ $gate->define('baz', function () {
$_SERVER['_test.authorizes.trait'] = true;
return true;
});
- $response = (new Fou... | true |
Other | laravel | framework | 33b508e88e322c9330908a3a2145623ae6676377.json | change method order | src/Illuminate/Container/Container.php | @@ -243,38 +243,14 @@ protected function getClosure($abstract, $concrete)
* Bind a callback to resolve with Container::call.
*
* @param string $method
- * @param \Closure $concrete
+ * @param \Closure $callback
* @return void
*/
public function bindMethod($method, $callb... | false |
Other | laravel | framework | a153c59ae7d9c254b2c17eb321066f6b4da32f33.json | Apply Style CI fixes | src/Illuminate/Container/Container.php | @@ -240,7 +240,7 @@ protected function getClosure($abstract, $concrete)
}
/**
- * Bind a callback to resolve with Container::call
+ * Bind a callback to resolve with Container::call.
*
* @param string $method
* @param \Closure $concrete
@@ -252,23 +252,23 @@ public function bin... | false |
Other | laravel | framework | 45306f63049eaa6e49b695e6a162ceb8e72843f0.json | Add tests for container method binding | tests/Container/ContainerTest.php | @@ -509,6 +509,23 @@ public function testCallWithGlobalMethodName()
$this->assertEquals('taylor', $result[1]);
}
+ public function testCallWithBoundMethod()
+ {
+ $container = new Container;
+ $container->bindMethod('ContainerTestCallStub@unresolvable', function ($stub) {
+ ... | false |
Other | laravel | framework | 8b84d293fb062f2316734bb0d1478e435cbfa49d.json | Add support for binding Class@method callbacks | src/Illuminate/Container/Container.php | @@ -36,6 +36,13 @@ class Container implements ArrayAccess, ContainerContract
*/
protected $bindings = [];
+ /**
+ * The container's method bindings.
+ *
+ * @var array
+ */
+ protected $methodBindings = [];
+
/**
* The container's shared instances.
*
@@ -232,6 +239,42... | false |
Other | laravel | framework | 592e25f45689dc2fdddbdbcb97ebcbd60695f34e.json | fix style ci | src/Illuminate/Routing/Console/ControllerMakeCommand.php | @@ -2,8 +2,8 @@
namespace Illuminate\Routing\Console;
-use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
+use Illuminate\Console\GeneratorCommand;
use Symfony\Component\Console\Input\InputOption;
class ControllerMakeCommand extends GeneratorCommand
@@ -37,7 +37,7 @@ class ControllerMakeComm... | false |
Other | laravel | framework | e238299f12ee91a65ac021feca29b870b05f5dd7.json | move frequency helpers into a trait | src/Illuminate/Console/Scheduling/Event.php | @@ -15,6 +15,8 @@
class Event
{
+ use ManagesFrequencies;
+
/**
* The cache store implementation.
*
@@ -337,331 +339,6 @@ public function runsInMaintenanceMode()
return $this->evenInMaintenanceMode;
}
- /**
- * The Cron expression representing the event's frequency.
- ... | true |
Other | laravel | framework | e238299f12ee91a65ac021feca29b870b05f5dd7.json | move frequency helpers into a trait | src/Illuminate/Console/Scheduling/ManagesFrequencies.php | @@ -0,0 +1,362 @@
+<?php
+
+namespace Illuminate\Console\Scheduling;
+
+use Carbon\Carbon;
+
+trait ManagesFrequencies
+{
+ /**
+ * The Cron expression representing the event's frequency.
+ *
+ * @param string $expression
+ * @return $this
+ */
+ public function cron($expression)
+ {
+ ... | true |
Other | laravel | framework | e5b0325949aa664009c080bf6bbbdfe008387e5c.json | change wording of message | src/Illuminate/Foundation/Testing/TestResponse.php | @@ -45,7 +45,7 @@ public function assertStatus($status)
{
$actual = $this->getStatusCode();
- PHPUnit::assertTrue($actual === $status, "Expected status code is {$status}, got {$actual}.");
+ PHPUnit::assertTrue($actual === $status, "Expected status code {$status} but received {$actual}.");... | false |
Other | laravel | framework | 3f93af4fa18a16caf32b916cea813984ba4243c7.json | Apply fixes from StyleCI (#16747) | tests/Routing/RoutingUrlGeneratorTest.php | @@ -128,7 +128,8 @@ public function testBasicRouteGeneration()
* With Default Parameter
*/
$url->defaults(['locale' => 'en']);
- $route = new Route(['GET'], 'foo', ['as' => 'defaults', 'domain' => '{locale}.example.com', function () {}]);
+ $route = new Route(['GET'], 'foo', [... | false |
Other | laravel | framework | cd87eff116dbc88e6fa840096de481731357d774.json | kill timedout process | src/Illuminate/Queue/Worker.php | @@ -99,6 +99,10 @@ protected function registerTimeoutHandler(WorkerOptions $options)
pcntl_async_signals(true);
pcntl_signal(SIGALRM, function () {
+ if (extension_loaded('posix')) {
+ posix_kill(getmypid(), SIGKILL);
+ }
+
exit(1);
});
| false |
Other | laravel | framework | 95cc3f238f20c5dbc6d6ff8c6088b3b7bfc82452.json | fix cs, please :( | tests/Redis/PhpRedisConnectionTest.php | @@ -96,5 +96,5 @@ class RedisStub
}
class RedisClusterStub
-{
+{
} | false |
Other | laravel | framework | 117de2a24cb0885ea68b6564747cf84d62672e2b.json | fix cs and doc blocks | src/Illuminate/Redis/PhpRedisDatabase.php | @@ -20,6 +20,7 @@ class PhpRedisDatabase extends Database
* Create a new Redis connection instance.
*
* @param array $servers
+ * @return void
*/
public function __construct(array $servers = [])
{
@@ -42,6 +43,7 @@ public function __construct(array $servers = [])
*
* @p... | true |
Other | laravel | framework | 117de2a24cb0885ea68b6564747cf84d62672e2b.json | fix cs and doc blocks | src/Illuminate/Redis/PredisDatabase.php | @@ -19,6 +19,7 @@ class PredisDatabase extends Database
* Create a new Redis connection instance.
*
* @param array $servers
+ * @return void
*/
public function __construct(array $servers = [])
{
@@ -41,6 +42,7 @@ public function __construct(array $servers = [])
*
* @par... | true |
Other | laravel | framework | 117de2a24cb0885ea68b6564747cf84d62672e2b.json | fix cs and doc blocks | tests/Redis/PhpRedisConnectionTest.php | @@ -56,7 +56,7 @@ protected function getRedis($cluster = false)
],
'clusters' => [
'options' => [
- 'prefix' => 'cluster:'
+ 'prefix' => 'cluster:',
],
'cluster-1' => [
[
@@ -70,7 +70,... | true |
Other | laravel | framework | 117de2a24cb0885ea68b6564747cf84d62672e2b.json | fix cs and doc blocks | tests/Redis/RedisConnectionTest.php | @@ -51,7 +51,7 @@ protected function getRedis($cluster = false)
],
'clusters' => [
'options' => [
- 'prefix' => 'cluster:'
+ 'prefix' => 'cluster:',
],
'cluster-1' => [
[
@@ -65,7 +65,... | true |
Other | laravel | framework | 0164218e939cf20f493c11fb8c8b17c2c9c4ecd6.json | Support newer psy/psysh | composer.json | @@ -26,7 +26,7 @@
"mtdowling/cron-expression": "~1.0",
"nesbot/carbon": "~1.20",
"paragonie/random_compat": "~1.4|~2.0",
- "psy/psysh": "0.7.*",
+ "psy/psysh": "0.7.*|0.8.*",
"ramsey/uuid": "~3.0",
"swiftmailer/swiftmailer": "~5.1",
"symfony/console": ... | false |
Other | laravel | framework | 32d0f164424ab5b4a2bff2ed927812ae49bd8051.json | fix eloquent builder | src/Illuminate/Database/Eloquent/Builder.php | @@ -411,7 +411,9 @@ public function chunkById($count, callable $callback, $column = 'id')
$lastId = 0;
do {
- $results = $this->forPageAfterId($count, $lastId, $column)->get();
+ $clone = clone $this;
+
+ $results = $clone->forPageAfterId($count, $lastId, $column)->g... | false |
Other | laravel | framework | 402eface32dd131468948ac34022a2bb20702655.json | Add tests for interacts with database trait. | tests/Foundation/FoundationInteractsWithDatabaseTest.php | @@ -0,0 +1,115 @@
+<?php
+
+use Mockery as m;
+use Illuminate\Database\Connection;
+use Illuminate\Database\Query\Builder;
+use Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase;
+
+class FoundationInteractsWithDatabaseTest extends PHPUnit_Framework_TestCase
+{
+ use InteractsWithDatabase;
+
+ protecte... | false |
Other | laravel | framework | 71bb4e419b8d8f1fc3bae5c98c75b3c5ee3fe191.json | Fix date_format validation for all formats | src/Illuminate/Validation/Validator.php | @@ -1834,10 +1834,10 @@ protected function validateDateFormat($attribute, $value, $parameters)
if (! is_string($value) && ! is_numeric($value)) {
return false;
}
+
+ $date = DateTime::createFromFormat($parameters[0], $value);
- $parsed = date_parse_from_format($par... | false |
Other | laravel | framework | cb74be855108481fec222f02910f14c64d6ae727.json | Add test for higher order partition | tests/Support/SupportCollectionTest.php | @@ -1769,6 +1769,19 @@ public function testPartitionEmptyCollection()
return true;
}));
}
+
+ public function testHigherOrderPartition()
+ {
+ $courses = new Collection([
+ 'a' => ['free' => true], 'b' => ['free' => false], 'c' => ['free' => true],
+ ]);
+
+ ... | false |
Other | laravel | framework | 724950a42c225c7b53c56283c01576b050fea37a.json | allow higher order partition | src/Illuminate/Support/Collection.php | @@ -1389,7 +1389,7 @@ protected function getArrayableItems($items)
public function __get($key)
{
$proxies = [
- 'each', 'map', 'first', 'sortBy',
+ 'each', 'map', 'first', 'partition', 'sortBy',
'sortByDesc', 'sum', 'reject', 'filter',
];
| false |
Other | laravel | framework | 0927be8103b1248b7ad46c4fd400cd537e12f6be.json | Fail tests that don't pass on PHP 7.1 (#16678) | .travis.yml | @@ -10,8 +10,6 @@ env:
- setup=basic
matrix:
- allow_failures:
- - php: 7.1
fast_finish: true
include:
- php: 5.6 | false |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/FormFieldConstraint.php | @@ -1,82 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use Symfony\Component\DomCrawler\Crawler;
-
-abstract class FormFieldConstraint extends PageConstraint
-{
- /**
- * The name or ID of the element.
- *
- * @var string
- */
- protected $selector;
-
- /**
- * T... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/HasElement.php | @@ -1,99 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use Symfony\Component\DomCrawler\Crawler;
-
-class HasElement extends PageConstraint
-{
- /**
- * The name or ID of the element.
- *
- * @var string
- */
- protected $selector;
-
- /**
- * The attributes the ... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/HasInElement.php | @@ -1,78 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use Symfony\Component\DomCrawler\Crawler;
-
-class HasInElement extends PageConstraint
-{
- /**
- * The name or ID of the element.
- *
- * @var string
- */
- protected $element;
-
- /**
- * The text expected ... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/HasLink.php | @@ -1,116 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use Illuminate\Support\Str;
-use Illuminate\Support\Facades\URL;
-
-class HasLink extends PageConstraint
-{
- /**
- * The text expected to be found.
- *
- * @var string
- */
- protected $text;
-
- /**
- * Th... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/HasSource.php | @@ -1,47 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-class HasSource extends PageConstraint
-{
- /**
- * The expected HTML source.
- *
- * @var string
- */
- protected $source;
-
- /**
- * Create a new constraint instance.
- *
- * @param string $sourc... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/HasText.php | @@ -1,47 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-class HasText extends PageConstraint
-{
- /**
- * The expected text.
- *
- * @var string
- */
- protected $text;
-
- /**
- * Create a new constraint instance.
- *
- * @param string $text
- * @re... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/HasValue.php | @@ -1,74 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use Symfony\Component\DomCrawler\Crawler;
-
-class HasValue extends FormFieldConstraint
-{
- /**
- * Get the valid elements.
- *
- * @return string
- */
- protected function validElements()
- {
- return 'i... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/IsChecked.php | @@ -1,60 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-class IsChecked extends FormFieldConstraint
-{
- /**
- * Create a new constraint instance.
- *
- * @param string $selector
- * @return void
- */
- public function __construct($selector)
- {
- $this->... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/IsSelected.php | @@ -1,130 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use DOMElement;
-use Symfony\Component\DomCrawler\Crawler;
-
-class IsSelected extends FormFieldConstraint
-{
- /**
- * Get the valid elements.
- *
- * @return string
- */
- protected function validElements()
- ... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/PageConstraint.php | @@ -1,124 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-use PHPUnit_Framework_Constraint;
-use Symfony\Component\DomCrawler\Crawler;
-use SebastianBergmann\Comparator\ComparisonFailure;
-use PHPUnit_Framework_ExpectationFailedException as FailedExpection;
-
-abstract class PageConstraint ext... | true |
Other | laravel | framework | 939264f91edc5d33da5ce6cf95a271a6f4a2e1f2.json | remove old constraints | src/Illuminate/Foundation/Testing/Constraints/ReversePageConstraint.php | @@ -1,57 +0,0 @@
-<?php
-
-namespace Illuminate\Foundation\Testing\Constraints;
-
-class ReversePageConstraint extends PageConstraint
-{
- /**
- * The page constraint instance.
- *
- * @var \Illuminate\Foundation\Testing\Constraints\PageConstraint
- */
- protected $pageConstraint;
-
- /**
- ... | true |
Other | laravel | framework | f353d7586430ef0f06c8d4aeac100da63f510b76.json | Add name alias to RouteRegistrar | src/Illuminate/Routing/RouteRegistrar.php | @@ -29,6 +29,15 @@ class RouteRegistrar
'get', 'post', 'put', 'patch', 'delete', 'options', 'any',
];
+ /**
+ * The attributes that are aliased.
+ *
+ * @var array
+ */
+ protected $aliases = [
+ 'name' => 'as',
+ ];
+
/**
* Create a new route registrar instanc... | true |
Other | laravel | framework | f353d7586430ef0f06c8d4aeac100da63f510b76.json | Add name alias to RouteRegistrar | tests/Routing/RouteRegistrarTest.php | @@ -116,7 +116,6 @@ public function testCanRegisterGroupWithMiddleware()
$this->seeMiddleware('group-middleware');
}
-
public function testCanRegisterGroupWithNamespace()
{
$this->router->namespace('App\Http\Controllers')->group(function ($router) { | true |
Other | laravel | framework | 677563189476bfcfa019295be0a7da6b33950127.json | Add middleware registration to resources | src/Illuminate/Routing/ControllerDispatcher.php | @@ -44,7 +44,7 @@ public function dispatch(Route $route, $controller, $method)
return $controller->callAction($method, $parameters);
}
- return call_user_func_array([$controller, $method], $parameters);
+ return $controller->{$method}(...array_values($parameters));
}
/*... | true |
Other | laravel | framework | 677563189476bfcfa019295be0a7da6b33950127.json | Add middleware registration to resources | src/Illuminate/Routing/ResourceRegistrar.php | @@ -196,7 +196,13 @@ protected function getResourceAction($resource, $controller, $method, $options)
{
$name = $this->getResourceName($resource, $method, $options);
- return ['as' => $name, 'uses' => $controller.'@'.$method];
+ $action = ['as' => $name, 'uses' => $controller.'@'.$method];
... | true |
Other | laravel | framework | 677563189476bfcfa019295be0a7da6b33950127.json | Add middleware registration to resources | src/Illuminate/Routing/RouteRegistrar.php | @@ -54,6 +54,19 @@ public function attribute($key, $value)
return $this;
}
+ /**
+ * Route a resource to a controller.
+ *
+ * @param string $name
+ * @param string $controller
+ * @param array $options
+ * @return void
+ */
+ public function resource($name, $cont... | true |
Other | laravel | framework | 677563189476bfcfa019295be0a7da6b33950127.json | Add middleware registration to resources | tests/Routing/RouteRegistrarTest.php | @@ -116,6 +116,7 @@ public function testCanRegisterGroupWithMiddleware()
$this->seeMiddleware('group-middleware');
}
+
public function testCanRegisterGroupWithNamespace()
{
$this->router->namespace('App\Http\Controllers')->group(function ($router) {
@@ -228,4 +229,9 @@ public function... | true |
Other | laravel | framework | 126adb781c204129600363f243b9d73e202d229e.json | pull url from config | src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php | @@ -254,7 +254,7 @@ protected function prepareUrlForRequest($uri)
}
if (! Str::startsWith($uri, 'http')) {
- $uri = $this->baseUrl.'/'.$uri;
+ $uri = config('app.url').'/'.$uri;
}
return trim($uri, '/'); | false |
Other | laravel | framework | 6cc3068768ce8eff105569657c21e66a540d9c8b.json | Preserve keys in the partition method | src/Illuminate/Support/Collection.php | @@ -737,8 +737,8 @@ public function partition($callback)
$callback = $this->valueRetriever($callback);
- foreach ($this->items as $item) {
- $partitions[(int) ! $callback($item)][] = $item;
+ foreach ($this->items as $key => $item) {
+ $partitions[(int) ! $callback($item... | true |
Other | laravel | framework | 6cc3068768ce8eff105569657c21e66a540d9c8b.json | Preserve keys in the partition method | tests/Support/SupportCollectionTest.php | @@ -1648,8 +1648,8 @@ public function testPartitionWithClosure()
return $i <= 5;
});
- $this->assertEquals([1, 2, 3, 4, 5], $firstPartition->toArray());
- $this->assertEquals([6, 7, 8, 9, 10], $secondPartition->toArray());
+ $this->assertEquals([1, 2, 3, 4, 5], $firstPartiti... | true |
Other | laravel | framework | 6ea6e22e77bb66446de18b0ed5b22141a75ba204.json | Fix seeJsonStructure for empty response | src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php | @@ -351,7 +351,7 @@ public function seeJsonStructure(array $structure = null, $responseData = null)
return $this->seeJson();
}
- if (! $responseData) {
+ if (is_null($responseData)) {
$responseData = $this->decodeResponseJson();
}
| false |
Other | laravel | framework | 2dbb28ffe45804c408a79f9817a6b560de3ed82a.json | Apply fixes from StyleCI (#16640) | tests/Cache/RedisCacheIntegrationTest.php | @@ -1,8 +1,8 @@
<?php
+use Mockery as m;
use Illuminate\Cache\RedisStore;
use Illuminate\Cache\Repository;
-use Mockery as m;
class RedisCacheTest extends PHPUnit_Framework_TestCase
{ | true |
Other | laravel | framework | 2dbb28ffe45804c408a79f9817a6b560de3ed82a.json | Apply fixes from StyleCI (#16640) | tests/Database/DatabaseEloquentIntegrationTest.php | @@ -1,8 +1,8 @@
<?php
use Illuminate\Database\Capsule\Manager as DB;
-use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Database\Eloquent\Relations\Pivot;
+use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Pagination\AbstractP... | true |
Other | laravel | framework | 2dbb28ffe45804c408a79f9817a6b560de3ed82a.json | Apply fixes from StyleCI (#16640) | tests/Database/SeedCommandTest.php | @@ -1,9 +1,9 @@
<?php
+use Illuminate\Database\Seeder;
use Illuminate\Container\Container;
-use Illuminate\Database\ConnectionResolverInterface;
use Illuminate\Database\Console\Seeds\SeedCommand;
-use Illuminate\Database\Seeder;
+use Illuminate\Database\ConnectionResolverInterface;
class SeedCommandTest extends... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Auth/SessionGuard.php | @@ -5,8 +5,8 @@
use RuntimeException;
use Illuminate\Support\Str;
use Illuminate\Http\Response;
-use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Auth\UserProvider;
+use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Auth\StatefulGuard;
use Symfony\Component\HttpFoundation\Re... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Broadcasting/BroadcastManager.php | @@ -7,8 +7,8 @@
use Illuminate\Support\Arr;
use InvalidArgumentException;
use Illuminate\Broadcasting\Broadcasters\LogBroadcaster;
-use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Broadcasting\Broadcasters\NullBroadcaster;
+use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illu... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Cache/FileStore.php | @@ -5,8 +5,8 @@
use Exception;
use Carbon\Carbon;
use Illuminate\Support\Arr;
-use Illuminate\Filesystem\Filesystem;
use Illuminate\Contracts\Cache\Store;
+use Illuminate\Filesystem\Filesystem;
class FileStore implements Store
{ | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Cache/MemcachedStore.php | @@ -4,8 +4,8 @@
use Memcached;
use Carbon\Carbon;
-use Illuminate\Contracts\Cache\Store;
use ReflectionMethod;
+use Illuminate\Contracts\Cache\Store;
class MemcachedStore extends TaggableStore implements Store
{ | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Database/Connection.php | @@ -11,8 +11,8 @@
use Illuminate\Support\Arr;
use Illuminate\Database\Query\Expression;
use Illuminate\Contracts\Events\Dispatcher;
-use Illuminate\Database\Query\Processors\Processor;
use Doctrine\DBAL\Connection as DoctrineConnection;
+use Illuminate\Database\Query\Processors\Processor;
use Illuminate\Database\Q... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Database/DatabaseServiceProvider.php | @@ -6,8 +6,8 @@
use Faker\Generator as FakerGenerator;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\ServiceProvider;
-use Illuminate\Database\Eloquent\QueueEntityResolver;
use Illuminate\Database\Connectors\ConnectionFactory;
+use Illuminate\Database\Eloquent\QueueEntityResolver;
use Illuminate\D... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Database/Eloquent/Model.php | @@ -21,11 +21,11 @@
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\MorphTo;
-use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Database\Eloquent\Relations\MorphOne;
+use Illuminate\Database\Eloquent\... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -13,8 +13,8 @@
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\FileNotFoundException;
use League\Flysystem\Adapter\Local as LocalAdapter;
-use Illuminate\Contracts\Filesystem\Filesystem as FilesystemContract;
use Illuminate\Contracts\Filesystem\Cloud as CloudFilesystemContract;
+use Illuminate\Co... | true |
Other | laravel | framework | d1a4f3fc7951c04ff91855511ed8c73b1a98e533.json | Apply fixes from StyleCI (#16639) | src/Illuminate/Foundation/Bootstrap/RegisterFacades.php | @@ -2,8 +2,8 @@
namespace Illuminate\Foundation\Bootstrap;
-use Illuminate\Support\Facades\Facade;
use Illuminate\Foundation\AliasLoader;
+use Illuminate\Support\Facades\Facade;
use Illuminate\Contracts\Foundation\Application;
class RegisterFacades | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.