Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] Reorder imports in stubs #29954

Merged
merged 1 commit into from
Sep 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/Console/stubs/cache.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCacheTable extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Migrations/stubs/blank.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class DummyClass extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Migrations/stubs/create.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class DummyClass extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Migrations/stubs/update.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class DummyClass extends Migration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace DummyNamespace;

use DummyFullEvent;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class DummyClass implements ShouldQueue
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/event-handler.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace DummyNamespace;

use DummyFullEvent;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class DummyClass
{
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Foundation/Console/stubs/event.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace DummyNamespace;

use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class DummyClass
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/stubs/job-queued.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace DummyNamespace;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;

class DummyClass implements ShouldQueue
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/listener-duck.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace DummyNamespace;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class DummyClass
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace DummyNamespace;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class DummyClass implements ShouldQueue
{
use InteractsWithQueue;

/**
* Create the event listener.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace DummyNamespace;

use DummyFullEvent;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class DummyClass implements ShouldQueue
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/listener.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace DummyNamespace;

use DummyFullEvent;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class DummyClass
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/mail.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DummyNamespace;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class DummyClass extends Mailable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/markdown-mail.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DummyNamespace;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class DummyClass extends Mailable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DummyNamespace;

use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class DummyClass extends Notification
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/stubs/notification.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace DummyNamespace;

use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class DummyClass extends Notification
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/stubs/test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace DummyNamespace;

use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;

class DummyClass extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/stubs/unit-test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace DummyNamespace;

use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;

class DummyClass extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Notifications/Console/stubs/notifications.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateNotificationsTable extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Queue/Console/stubs/failed_jobs.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class Create{{tableClassName}}Table extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Queue/Console/stubs/jobs.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class Create{{tableClassName}}Table extends Migration
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Console/stubs/controller.api.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace DummyNamespace;

use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;
use Illuminate\Http\Request;

class DummyClass extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace DummyNamespace;

use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;
use Illuminate\Http\Request;

class DummyClass extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace DummyNamespace;

use DummyRootNamespaceHttp\Controllers\Controller;
use DummyFullModelClass;
use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;

class DummyClass extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Console/stubs/controller.model.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace DummyNamespace;

use DummyRootNamespaceHttp\Controllers\Controller;
use DummyFullModelClass;
use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;

class DummyClass extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace DummyNamespace;

use DummyRootNamespaceHttp\Controllers\Controller;
use DummyFullModelClass;
use ParentDummyFullModelClass;
use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;

class DummyClass extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace DummyNamespace;

use DummyRootNamespaceHttp\Controllers\Controller;
use DummyFullModelClass;
use ParentDummyFullModelClass;
use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;

class DummyClass extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Console/stubs/controller.plain.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace DummyNamespace;

use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;
use Illuminate\Http\Request;

class DummyClass extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Console/stubs/controller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace DummyNamespace;

use Illuminate\Http\Request;
use DummyRootNamespaceHttp\Controllers\Controller;
use Illuminate\Http\Request;

class DummyClass extends Controller
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Session/Console/stubs/database.stub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSessionsTable extends Migration
{
Expand Down