From a2f6ebe4d41db4bb56b6685db81cf05b8fd5ee0e Mon Sep 17 00:00:00 2001 From: recca0120 Date: Tue, 10 Mar 2020 14:22:23 +0800 Subject: [PATCH] styleci --- src/BarManager.php | 10 +++++----- src/DebuggerManager.php | 10 +++++----- src/Http/Controllers/LaravelTracyController.php | 2 +- src/LaravelTracyServiceProvider.php | 16 ++++++++-------- src/Middleware/RenderBar.php | 6 +++--- src/Panels/AbstractPanel.php | 6 +++--- src/Panels/DatabasePanel.php | 2 +- src/Panels/EventPanel.php | 2 +- src/Panels/Helper.php | 2 +- tests/BarManagerTest.php | 2 +- tests/DebuggerManagerTest.php | 4 ++-- tests/Exceptions/HandlerTest.php | 4 ++-- .../Controllers/LaravelTracyControllerTest.php | 2 +- tests/LaravelTracyServiceProviderTest.php | 4 ++-- tests/Middleware/RenderBarTest.php | 4 ++-- tests/Panels/AuthPanelTest.php | 2 +- tests/Panels/DatabasePanelTest.php | 6 +++--- tests/Panels/EventPanelTest.php | 2 +- tests/Panels/HelperTest.php | 2 +- tests/Panels/HtmlValidatorPanelTest.php | 2 +- tests/Panels/RequestPanelTest.php | 2 +- tests/Panels/RoutingPanelTest.php | 2 +- tests/Panels/SessionPanelTest.php | 2 +- tests/Panels/TerminalPanelTest.php | 2 +- tests/Panels/ViewPanelTest.php | 2 +- 25 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/BarManager.php b/src/BarManager.php index 9d5c643..6132d6b 100644 --- a/src/BarManager.php +++ b/src/BarManager.php @@ -2,14 +2,14 @@ namespace Recca0120\LaravelTracy; -use Tracy\Bar; -use Tracy\Debugger; -use Tracy\IBarPanel; +use Illuminate\Contracts\Foundation\Application; +use Illuminate\Http\Request; use Illuminate\Support\Arr; use Illuminate\Support\Str; -use Illuminate\Http\Request; -use Illuminate\Contracts\Foundation\Application; use Recca0120\LaravelTracy\Contracts\IAjaxPanel; +use Tracy\Bar; +use Tracy\Debugger; +use Tracy\IBarPanel; class BarManager { diff --git a/src/DebuggerManager.php b/src/DebuggerManager.php index 8306bbe..d69834e 100644 --- a/src/DebuggerManager.php +++ b/src/DebuggerManager.php @@ -2,14 +2,14 @@ namespace Recca0120\LaravelTracy; +use ErrorException; use Exception; +use Illuminate\Contracts\Routing\UrlGenerator; +use Illuminate\Support\Arr; use Tracy\Bar; -use Tracy\Helpers; -use ErrorException; -use Tracy\Debugger; use Tracy\BlueScreen; -use Illuminate\Support\Arr; -use Illuminate\Contracts\Routing\UrlGenerator; +use Tracy\Debugger; +use Tracy\Helpers; class DebuggerManager { diff --git a/src/Http/Controllers/LaravelTracyController.php b/src/Http/Controllers/LaravelTracyController.php index 5c5904d..798332c 100644 --- a/src/Http/Controllers/LaravelTracyController.php +++ b/src/Http/Controllers/LaravelTracyController.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Http\Controllers; +use Illuminate\Contracts\Routing\ResponseFactory; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Recca0120\LaravelTracy\DebuggerManager; -use Illuminate\Contracts\Routing\ResponseFactory; class LaravelTracyController extends Controller { diff --git a/src/LaravelTracyServiceProvider.php b/src/LaravelTracyServiceProvider.php index 6b627d9..6b20efe 100644 --- a/src/LaravelTracyServiceProvider.php +++ b/src/LaravelTracyServiceProvider.php @@ -2,18 +2,18 @@ namespace Recca0120\LaravelTracy; -use Tracy\Bar; -use Tracy\Debugger; -use Tracy\BlueScreen; -use Illuminate\Support\Arr; -use Illuminate\Routing\Router; +use Illuminate\Contracts\Debug\ExceptionHandler; use Illuminate\Contracts\Http\Kernel; -use Illuminate\Support\ServiceProvider; use Illuminate\Contracts\View\Factory as View; +use Illuminate\Routing\Router; +use Illuminate\Support\Arr; +use Illuminate\Support\ServiceProvider; use Recca0120\LaravelTracy\Exceptions\Handler; -use Recca0120\Terminal\TerminalServiceProvider; -use Illuminate\Contracts\Debug\ExceptionHandler; use Recca0120\LaravelTracy\Middleware\RenderBar; +use Recca0120\Terminal\TerminalServiceProvider; +use Tracy\Bar; +use Tracy\BlueScreen; +use Tracy\Debugger; class LaravelTracyServiceProvider extends ServiceProvider { diff --git a/src/Middleware/RenderBar.php b/src/Middleware/RenderBar.php index ff0146a..4861f1b 100644 --- a/src/Middleware/RenderBar.php +++ b/src/Middleware/RenderBar.php @@ -2,14 +2,14 @@ namespace Recca0120\LaravelTracy\Middleware; -use Illuminate\Http\Request; use Illuminate\Contracts\Events\Dispatcher; +use Illuminate\Http\Request; use Recca0120\LaravelTracy\DebuggerManager; -use Symfony\Component\HttpFoundation\Response; use Recca0120\LaravelTracy\Events\BeforeBarRender; +use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\RedirectResponse; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; -use Symfony\Component\HttpFoundation\BinaryFileResponse; class RenderBar { diff --git a/src/Panels/AbstractPanel.php b/src/Panels/AbstractPanel.php index dc8c45e..a276a42 100644 --- a/src/Panels/AbstractPanel.php +++ b/src/Panels/AbstractPanel.php @@ -2,11 +2,11 @@ namespace Recca0120\LaravelTracy\Panels; -use Tracy\Helpers; -use Tracy\IBarPanel; -use Recca0120\LaravelTracy\Template; use Illuminate\Contracts\Foundation\Application; use Recca0120\LaravelTracy\Contracts\ILaravelPanel; +use Recca0120\LaravelTracy\Template; +use Tracy\Helpers; +use Tracy\IBarPanel; abstract class AbstractPanel implements IBarPanel, ILaravelPanel { diff --git a/src/Panels/DatabasePanel.php b/src/Panels/DatabasePanel.php index 722bc50..f644dc2 100644 --- a/src/Panels/DatabasePanel.php +++ b/src/Panels/DatabasePanel.php @@ -2,8 +2,8 @@ namespace Recca0120\LaravelTracy\Panels; -use PDO; use Exception; +use PDO; use Recca0120\LaravelTracy\Contracts\IAjaxPanel; class DatabasePanel extends AbstractSubscriablePanel implements IAjaxPanel diff --git a/src/Panels/EventPanel.php b/src/Panels/EventPanel.php index a1b96e2..5af9b1c 100644 --- a/src/Panels/EventPanel.php +++ b/src/Panels/EventPanel.php @@ -2,8 +2,8 @@ namespace Recca0120\LaravelTracy\Panels; -use Tracy\Debugger; use Recca0120\LaravelTracy\Contracts\IAjaxPanel; +use Tracy\Debugger; class EventPanel extends AbstractSubscriablePanel implements IAjaxPanel { diff --git a/src/Panels/Helper.php b/src/Panels/Helper.php index 81e209f..49d8f2c 100644 --- a/src/Panels/Helper.php +++ b/src/Panels/Helper.php @@ -2,8 +2,8 @@ namespace Recca0120\LaravelTracy\Panels; -use PDO; use DateTime; +use PDO; class Helper { diff --git a/tests/BarManagerTest.php b/tests/BarManagerTest.php index 6d63341..12d400d 100644 --- a/tests/BarManagerTest.php +++ b/tests/BarManagerTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\BarManager; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class BarManagerTest extends TestCase { diff --git a/tests/DebuggerManagerTest.php b/tests/DebuggerManagerTest.php index 1630459..d02ff50 100644 --- a/tests/DebuggerManagerTest.php +++ b/tests/DebuggerManagerTest.php @@ -3,11 +3,11 @@ namespace Recca0120\LaravelTracy\Tests; use Exception; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; -use Tracy\Debugger; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\DebuggerManager; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; +use Tracy\Debugger; class DebuggerManagerTest extends TestCase { diff --git a/tests/Exceptions/HandlerTest.php b/tests/Exceptions/HandlerTest.php index 3382969..32ceb23 100644 --- a/tests/Exceptions/HandlerTest.php +++ b/tests/Exceptions/HandlerTest.php @@ -3,12 +3,12 @@ namespace Recca0120\LaravelTracy\Tests\Exceptions; use Exception; -use Mockery as m; use Illuminate\Http\Request; use Illuminate\Http\Response; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; +use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Exceptions\Handler; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class HandlerTest extends TestCase { diff --git a/tests/Http/Controllers/LaravelTracyControllerTest.php b/tests/Http/Controllers/LaravelTracyControllerTest.php index d8401f2..27b26de 100644 --- a/tests/Http/Controllers/LaravelTracyControllerTest.php +++ b/tests/Http/Controllers/LaravelTracyControllerTest.php @@ -2,9 +2,9 @@ namespace Recca0120\LaravelTracy\Tests\Http\Controllers; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Recca0120\LaravelTracy\Http\Controllers\LaravelTracyController; class LaravelTracyControllerTest extends TestCase diff --git a/tests/LaravelTracyServiceProviderTest.php b/tests/LaravelTracyServiceProviderTest.php index de66371..9a5806e 100644 --- a/tests/LaravelTracyServiceProviderTest.php +++ b/tests/LaravelTracyServiceProviderTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests; -use Mockery as m; -use PHPUnit\Framework\TestCase; use Illuminate\Container\Container; use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; +use Mockery as m; +use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\LaravelTracyServiceProvider; class LaravelTracyServiceProviderTest extends TestCase diff --git a/tests/Middleware/RenderBarTest.php b/tests/Middleware/RenderBarTest.php index 6b561dc..cb1b377 100644 --- a/tests/Middleware/RenderBarTest.php +++ b/tests/Middleware/RenderBarTest.php @@ -2,11 +2,11 @@ namespace Recca0120\LaravelTracy\Tests\Middleware; -use Mockery as m; use Illuminate\Http\Request; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; +use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Middleware\RenderBar; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class RenderBarTest extends TestCase { diff --git a/tests/Panels/AuthPanelTest.php b/tests/Panels/AuthPanelTest.php index ae577a7..af42780 100644 --- a/tests/Panels/AuthPanelTest.php +++ b/tests/Panels/AuthPanelTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\AuthPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class AuthPanelTest extends TestCase { diff --git a/tests/Panels/DatabasePanelTest.php b/tests/Panels/DatabasePanelTest.php index a7f02af..720231e 100644 --- a/tests/Panels/DatabasePanelTest.php +++ b/tests/Panels/DatabasePanelTest.php @@ -2,12 +2,12 @@ namespace Recca0120\LaravelTracy\Tests\Panels; -use PDO; -use stdClass; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; +use PDO; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\DatabasePanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; +use stdClass; class DatabasePanelTest extends TestCase { diff --git a/tests/Panels/EventPanelTest.php b/tests/Panels/EventPanelTest.php index 179aa3c..85f296b 100644 --- a/tests/Panels/EventPanelTest.php +++ b/tests/Panels/EventPanelTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\EventPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class EventPanelTest extends TestCase { diff --git a/tests/Panels/HelperTest.php b/tests/Panels/HelperTest.php index d3b619a..c0755ee 100644 --- a/tests/Panels/HelperTest.php +++ b/tests/Panels/HelperTest.php @@ -3,10 +3,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; use DateTime; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\Helper; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class HelperTest extends TestCase { diff --git a/tests/Panels/HtmlValidatorPanelTest.php b/tests/Panels/HtmlValidatorPanelTest.php index 86456ec..9aaf4da 100644 --- a/tests/Panels/HtmlValidatorPanelTest.php +++ b/tests/Panels/HtmlValidatorPanelTest.php @@ -2,11 +2,11 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Events\BeforeBarRender; use Recca0120\LaravelTracy\Panels\HtmlValidatorPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class HtmlValidatorPanelTest extends TestCase { diff --git a/tests/Panels/RequestPanelTest.php b/tests/Panels/RequestPanelTest.php index 45c9d7b..d1690f9 100644 --- a/tests/Panels/RequestPanelTest.php +++ b/tests/Panels/RequestPanelTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\RequestPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class RequestPanelTest extends TestCase { diff --git a/tests/Panels/RoutingPanelTest.php b/tests/Panels/RoutingPanelTest.php index 5639f40..1f51794 100644 --- a/tests/Panels/RoutingPanelTest.php +++ b/tests/Panels/RoutingPanelTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\RoutingPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class RoutingPanelTest extends TestCase { diff --git a/tests/Panels/SessionPanelTest.php b/tests/Panels/SessionPanelTest.php index f4fed35..c7d3db3 100644 --- a/tests/Panels/SessionPanelTest.php +++ b/tests/Panels/SessionPanelTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\SessionPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class SessionPanelTest extends TestCase { diff --git a/tests/Panels/TerminalPanelTest.php b/tests/Panels/TerminalPanelTest.php index 4509171..26493af 100644 --- a/tests/Panels/TerminalPanelTest.php +++ b/tests/Panels/TerminalPanelTest.php @@ -3,10 +3,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; use Exception; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\TerminalPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class TerminalPanelTest extends TestCase { diff --git a/tests/Panels/ViewPanelTest.php b/tests/Panels/ViewPanelTest.php index bc9ffff..3df012d 100644 --- a/tests/Panels/ViewPanelTest.php +++ b/tests/Panels/ViewPanelTest.php @@ -2,10 +2,10 @@ namespace Recca0120\LaravelTracy\Tests\Panels; +use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery as m; use PHPUnit\Framework\TestCase; use Recca0120\LaravelTracy\Panels\ViewPanel; -use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; class ViewPanelTest extends TestCase {