8000 Apply fixes from StyleCI (#995) · laravel/lumen-framework@1d5962e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d5962e

Browse files
GrahamCampbelltaylorotwell
authored andcommitted
Apply fixes from StyleCI (#995)
1 parent 480a38f commit 1d5962e

18 files changed

+70
-70
lines changed

src/Application.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
namespace Laravel\Lumen;
44

5-
use Illuminate\Config\Repository as ConfigRepository;
6-
use Illuminate\Container\Container;
7-
use Illuminate\Filesystem\Filesystem;
5+
use RuntimeException;
6+
use Illuminate\Support\Str;
87
use Illuminate\Http\Request;
98
use Illuminate\Log\LogManager;
109
use Illuminate\Support\Composer;
10+
use Laravel\Lumen\Routing\Router;
11+
use Illuminate\Container\Container;
12+
use Illuminate\Filesystem\Filesystem;
1113
use Illuminate\Support\Facades\Facade;
1214
use Illuminate\Support\ServiceProvider;
13-
use Illuminate\Support\Str;
14-
use Laravel\Lumen\Routing\Router;
15-
use RuntimeException;
15+
use Zend\Diactoros\Response as PsrResponse;
16+
use Illuminate\Config\Repository as ConfigRepository;
1617
use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
1718
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
18-
use Zend\Diactoros\Response as PsrResponse;
1919

2020
class Application extends Container
2121
{

src/Bootstrap/LoadEnvironmentVariables.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace Laravel\Lumen\Bootstrap;
44

55
use Dotenv\Dotenv;
6-
use Dotenv\Environment\Adapter\EnvConstAdapter;
7-
use Dotenv\Environment\Adapter\PutenvAdapter;
8-
use Dotenv\Environment\Adapter\ServerConstAdapter;
96
use Dotenv\Environment\DotenvFactory;
107
use Dotenv\Exception\InvalidFileException;
8+
use Dotenv\Environment\Adapter\PutenvAdapter;
9+
use Dotenv\Environment\Adapter\EnvConstAdapter;
10+
use Dotenv\Environment\Adapter\ServerConstAdapter;
1111
use Symfony\Component\Console\Output\ConsoleOutput;
1212

1313
class LoadEnvironmentVariables

src/Concerns/RegistersExceptionHandlers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use Error;
66
use ErrorException;
77
use Symfony\Component\Console\Output\ConsoleOutput;
8+
use Symfony\Component\HttpKernel\Exception\HttpException;
89
use Symfony\Component\Debug\Exception\FatalErrorException;
910
use Symfony\Component\Debug\Exception\FatalThrowableError;
10-
use Symfony\Component\HttpKernel\Exception\HttpException;
1111
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1212

1313
trait RegistersExceptionHandlers

src/Concerns/RoutesRequests.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
namespace Laravel\Lumen\Concerns;
44

55
use Closure;
6+
use Throwable;
67
use FastRoute\Dispatcher;
7-
use Illuminate\Contracts\Support\Responsable;
8-
use Illuminate\Http\Exceptions\HttpResponseException;
9-
use Illuminate\Http\Request;
10-
use Illuminate\Http\Response;
118
use Illuminate\Support\Arr;
129
use Illuminate\Support\Str;
10+
use Illuminate\Http\Request;
11+
use Illuminate\Http\Response;
12+
use Laravel\Lumen\Routing\Pipeline;
13+
use Illuminate\Contracts\Support\Responsable;
1314
use Laravel\Lumen\Http\Request as LumenRequest;
1415
use Laravel\Lumen\Routing\Closure as RoutingClosure;
16+
use Illuminate\Http\Exceptions\HttpResponseException;
1517
use Laravel\Lumen\Routing\Controller as LumenController;
16-
use Laravel\Lumen\Routing\Pipeline;
17-
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
18-
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
1918
use Symfony\Component\HttpFoundation\BinaryFileResponse;
19+
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
2020
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
21+
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
2122
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
22-
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
2323
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
24-
use Throwable;
24+
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
2525

2626
trait RoutesRequests
2727
{

src/Console/ConsoleServiceProvider.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22

33
namespace Laravel\Lumen\Console;
44

5+
use Illuminate\Support\ServiceProvider;
6+
use Illuminate\Queue\Console\TableCommand;
57
use Illuminate\Auth\Console\ClearResetsCommand;
68
use Illuminate\Cache\Console\CacheTableCommand;
9+
use Illuminate\Queue\Console\FailedTableCommand;
10+
use Illuminate\Database\Console\Seeds\SeedCommand;
11+
use Illuminate\Database\Console\Seeds\SeederMakeCommand;
12+
use Illuminate\Database\Console\Migrations\MigrateCommand;
13+
use Illuminate\Queue\Console\WorkCommand as QueueWorkCommand;
14+
use Illuminate\Database\Console\Migrations\MigrateMakeCommand;
715
use Illuminate\Cache\Console\ClearCommand as CacheClearCommand;
16+
use Illuminate\Queue\Console\RetryCommand as QueueRetryCommand;
817
use Illuminate\Cache\Console\ForgetCommand as CacheForgetCommand;
18+
use Illuminate\Queue\Console\ListenCommand as QueueListenCommand;
19+
use Illuminate\Queue\Console\RestartCommand as QueueRestartCommand;
20+
use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand;
21+
use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand;
22+
use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
923
use Illuminate\Database\Console\Migrations\FreshCommand as MigrateFreshCommand;
24+
use Illuminate\Database\Console\Migrations\ResetCommand as MigrateResetCommand;
25+
use Illuminate\Database\Console\Migrations\StatusCommand as MigrateStatusCommand;
1026
use Illuminate\Database\Console\Migrations\InstallCommand as MigrateInstallCommand;
11-
use Illuminate\Database\Console\Migrations\MigrateCommand;
12-
use Illuminate\Database\Console\Migrations\MigrateMakeCommand;
1327
use Illuminate\Database\Console\Migrations\RefreshCommand as MigrateRefreshCommand;
14-
use Illuminate\Database\Console\Migrations\ResetCommand as MigrateResetCommand;
1528
use Illuminate\Database\Console\Migrations\RollbackCommand as MigrateRollbackCommand;
16-
use Illuminate\Database\Console\Migrations\StatusCommand as MigrateStatusCommand;
17-
use Illuminate\Database\Console\Seeds\SeedCommand;
18-
use Illuminate\Database\Console\Seeds\SeederMakeCommand;
19-
use Illuminate\Queue\Console\FailedTableCommand;
20-
use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand;
21-
use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
22-
use Illuminate\Queue\Console\ListenCommand as QueueListenCommand;
23-
use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand;
24-
use Illuminate\Queue\Console\RestartCommand as QueueRestartCommand;
25-
use Illuminate\Queue\Console\RetryCommand as QueueRetryCommand;
26-
use Illuminate\Queue\Console\TableCommand;
27-
use Illuminate\Queue\Console\WorkCommand as QueueWorkCommand;
28-
use Illuminate\Support\ServiceProvider;
2929

3030
class ConsoleServiceProvider extends ServiceProvider
3131
{

src/Console/Kernel.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace Laravel\Lumen\Console;
44

55
use Exception;
6-
use Illuminate\Console\Application as Artisan;
7-
use Illuminate\Console\Scheduling\Schedule;
8-
use Illuminate\Contracts\Console\Kernel as KernelContract;
6+
use Throwable;
7+
use RuntimeException;
98
use Illuminate\Http\Request;
109
use Laravel\Lumen\Application;
11-
use RuntimeException;
10+
use Illuminate\Console\Scheduling\Schedule;
11+
use Illuminate\Console\Application as Artisan;
12+
use Illuminate\Contracts\Console\Kernel as KernelContract;
1213
use Symfony\Component\Debug\Exception\FatalThrowableError;
13-
use Throwable;
1414

1515
class Kernel implements KernelContract
1616
{

src/Exceptions/Handler.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
namespace Laravel\Lumen\Exceptions;
44

55
use Exception;
6-
use Illuminate\Auth\Access\AuthorizationException;
7-
use Illuminate\Contracts\Debug\ExceptionHandler;
8-
use Illuminate\Contracts\Support\Responsable;
9-
use Illuminate\Database\Eloquent\ModelNotFoundException;
10-
use Illuminate\Http\Exceptions\HttpResponseException;
116
use Illuminate\Http\Response;
7+
use Illuminate\Contracts\Support\Responsable;
128
use Illuminate\Validation\ValidationException;
13-
use Symfony\Component\Console\Application as ConsoleApplication;
9+
use Illuminate\Contracts\Debug\ExceptionHandler;
10+
use Illuminate\Auth\Access\AuthorizationException;
11+
use Illuminate\Http\Exceptions\HttpResponseException;
1412
use Symfony\Component\Debug\Exception\FlattenException;
15-
use Symfony\Component\Debug\ExceptionHandler as SymfonyExceptionHandler;
13+
use Illuminate\Database\Eloquent\ModelNotFoundException;
1614
use Symfony\Component\HttpKernel\Exception\HttpException;
15+
use Symfony\Component\Console\Application as ConsoleApplication;
1716
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
17+
use Symfony\Component\Debug\ExceptionHandler as SymfonyExceptionHandler;
1818

1919
class Handler implements ExceptionHandler
2020
{

src/Http/Redirector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Laravel\Lumen\Http;
44

5-
use Illuminate\Http\RedirectResponse;
65
use Laravel\Lumen\Application;
6+
use Illuminate\Http\RedirectResponse;
77

88
class Redirector
99
{

src/Http/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Laravel\Lumen\Http;
44

5-
use Illuminate\Http\Request as BaseRequest;
5+
use RuntimeException;
66
use Illuminate\Support\Arr;
77
use Illuminate\Support\Str;
8-
use RuntimeException;
8+
use Illuminate\Http\Request as BaseRequest;
99

1010
class Request extends BaseRequest
1111
{

src/Http/ResponseFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Laravel\Lumen\Http;
44

5-
use Illuminate\Http\JsonResponse;
6-
use Illuminate\Http\Response;
75
use Illuminate\Support\Str;
6+
use Illuminate\Http\Response;
7+
use Illuminate\Http\JsonResponse;
88
use Illuminate\Support\Traits\Macroable;
9-
use Symfony\Component\HttpFoundation\BinaryFileResponse;
109
use Symfony\Component\HttpFoundation\StreamedResponse;
10+
use Symfony\Component\HttpFoundation\BinaryFileResponse;
1111

1212
class ResponseFactory
1313
{

0 commit comments

Comments
 (0)
0