@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\Context; |
4 | 4 | |
5 | -use Illuminate\Http\Request; |
|
6 | 5 | use Facade\FlareClient\Context\RequestContext; |
6 | +use Illuminate\Http\Request; |
|
7 | 7 | |
8 | 8 | class LaravelRequestContext extends RequestContext |
9 | 9 | { |
@@ -70,6 +70,9 @@ |
||
70 | 70 | })->first(); |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $class |
|
75 | + */ |
|
73 | 76 | protected function getAvailableMethods($class): Collection |
74 | 77 | { |
75 | 78 | $class = new ReflectionClass($class); |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use ReflectionClass; |
|
7 | -use ReflectionMethod; |
|
8 | 5 | use BadMethodCallException; |
9 | -use Illuminate\Support\Collection; |
|
10 | 6 | use Facade\IgnitionContracts\BaseSolution; |
11 | 7 | use Facade\IgnitionContracts\HasSolutionsForThrowable; |
8 | +use Illuminate\Support\Collection; |
|
9 | +use ReflectionClass; |
|
10 | +use ReflectionMethod; |
|
11 | +use Throwable; |
|
12 | 12 | |
13 | 13 | class BadMethodCallSolutionProvider implements HasSolutionsForThrowable |
14 | 14 | { |
@@ -36,6 +36,9 @@ |
||
36 | 36 | return 1; |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $value |
|
41 | + */ |
|
39 | 42 | public function compileString($value) |
40 | 43 | { |
41 | 44 | $value = $this->addEchoLineNumbers($value); |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\DumpRecorder; |
4 | 4 | |
5 | -use Illuminate\Support\Arr; |
|
6 | 5 | use Illuminate\Foundation\Application; |
7 | -use Symfony\Component\VarDumper\VarDumper; |
|
6 | +use Illuminate\Support\Arr; |
|
8 | 7 | use Symfony\Component\VarDumper\Cloner\Data; |
9 | 8 | use Symfony\Component\VarDumper\Cloner\VarCloner; |
10 | 9 | use Symfony\Component\VarDumper\Dumper\CliDumper; |
11 | 10 | use Symfony\Component\VarDumper\Dumper\HtmlDumper as BaseHtmlDumper; |
11 | +use Symfony\Component\VarDumper\VarDumper; |
|
12 | 12 | |
13 | 13 | class DumpRecorder |
14 | 14 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\ErrorPage; |
4 | 4 | |
5 | -use Throwable; |
|
5 | +use Facade\IgnitionContracts\SolutionProviderRepository; |
|
6 | 6 | use Facade\Ignition\IgnitionConfig; |
7 | 7 | use Illuminate\Foundation\Application; |
8 | -use Facade\IgnitionContracts\SolutionProviderRepository; |
|
8 | +use Throwable; |
|
9 | 9 | |
10 | 10 | class ErrorPageHandler |
11 | 11 | { |
@@ -4,15 +4,15 @@ |
||
4 | 4 | |
5 | 5 | use Closure; |
6 | 6 | use Exception; |
7 | -use Throwable; |
|
8 | -use Facade\Ignition\Ignition; |
|
9 | 7 | use Facade\FlareClient\Report; |
10 | -use Laravel\Telescope\Telescope; |
|
8 | +use Facade\Ignition\Http\Controllers\ShareReportController; |
|
9 | +use Facade\Ignition\Ignition; |
|
11 | 10 | use Facade\Ignition\IgnitionConfig; |
12 | -use Illuminate\Contracts\Support\Arrayable; |
|
13 | 11 | use Facade\Ignition\Solutions\SolutionTransformer; |
12 | +use Illuminate\Contracts\Support\Arrayable; |
|
14 | 13 | use Laravel\Telescope\Http\Controllers\HomeController; |
15 | -use Facade\Ignition\Http\Controllers\ShareReportController; |
|
14 | +use Laravel\Telescope\Telescope; |
|
15 | +use Throwable; |
|
16 | 16 | |
17 | 17 | class ErrorPageViewModel implements Arrayable |
18 | 18 | { |
@@ -2,53 +2,53 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition; |
4 | 4 | |
5 | -use Monolog\Logger; |
|
6 | -use Illuminate\Support\Arr; |
|
7 | 5 | use Facade\FlareClient\Flare; |
8 | -use Illuminate\Log\LogManager; |
|
9 | -use Illuminate\Queue\QueueManager; |
|
10 | 6 | use Facade\FlareClient\Http\Client; |
11 | -use Illuminate\Support\Facades\Log; |
|
12 | -use Whoops\Handler\HandlerInterface; |
|
13 | -use Illuminate\Support\Facades\Route; |
|
14 | -use Illuminate\Foundation\Application; |
|
7 | +use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
|
8 | +use Facade\Ignition\Commands\TestCommand; |
|
9 | +use Facade\Ignition\Context\LaravelContextDetector; |
|
10 | +use Facade\Ignition\DumpRecorder\DumpRecorder; |
|
11 | +use Facade\Ignition\ErrorPage\IgnitionWhoopsHandler; |
|
15 | 12 | use Facade\Ignition\ErrorPage\Renderer; |
16 | -use Facade\Ignition\Middleware\AddLogs; |
|
17 | -use Illuminate\Support\ServiceProvider; |
|
13 | +use Facade\Ignition\Http\Controllers\ExecuteSolutionController; |
|
14 | +use Facade\Ignition\Http\Controllers\HealthCheckController; |
|
15 | +use Facade\Ignition\Http\Controllers\ScriptController; |
|
16 | +use Facade\Ignition\Http\Controllers\ShareReportController; |
|
17 | +use Facade\Ignition\Http\Controllers\StyleController; |
|
18 | +use Facade\Ignition\LogRecorder\LogRecorder; |
|
18 | 19 | use Facade\Ignition\Logger\FlareHandler; |
19 | 20 | use Facade\Ignition\Middleware\AddDumps; |
20 | -use Illuminate\Log\Events\MessageLogged; |
|
21 | -use Facade\Ignition\Commands\TestCommand; |
|
21 | +use Facade\Ignition\Middleware\AddEnvironmentInformation; |
|
22 | +use Facade\Ignition\Middleware\AddGitInformation; |
|
23 | +use Facade\Ignition\Middleware\AddLogs; |
|
22 | 24 | use Facade\Ignition\Middleware\AddQueries; |
23 | -use Facade\Ignition\LogRecorder\LogRecorder; |
|
24 | 25 | use Facade\Ignition\Middleware\AddSolutions; |
25 | -use Facade\Ignition\Views\Engines\PhpEngine; |
|
26 | -use Facade\Ignition\DumpRecorder\DumpRecorder; |
|
27 | 26 | use Facade\Ignition\Middleware\SetNotifierName; |
28 | 27 | use Facade\Ignition\QueryRecorder\QueryRecorder; |
29 | -use Facade\Ignition\Middleware\AddGitInformation; |
|
30 | -use Facade\Ignition\Views\Engines\CompilerEngine; |
|
31 | -use Facade\Ignition\Context\LaravelContextDetector; |
|
32 | -use Facade\Ignition\ErrorPage\IgnitionWhoopsHandler; |
|
33 | -use Facade\Ignition\Http\Controllers\StyleController; |
|
34 | -use Facade\Ignition\Http\Controllers\ScriptController; |
|
35 | -use Facade\Ignition\Middleware\AddEnvironmentInformation; |
|
36 | -use Illuminate\View\Engines\PhpEngine as LaravelPhpEngine; |
|
37 | -use Facade\Ignition\Http\Controllers\HealthCheckController; |
|
38 | -use Facade\Ignition\Http\Controllers\ShareReportController; |
|
39 | -use Facade\Ignition\Http\Controllers\ExecuteSolutionController; |
|
40 | -use Facade\Ignition\SolutionProviders\SolutionProviderRepository; |
|
41 | -use Facade\Ignition\SolutionProviders\ViewNotFoundSolutionProvider; |
|
42 | 28 | use Facade\Ignition\SolutionProviders\BadMethodCallSolutionProvider; |
43 | 29 | use Facade\Ignition\SolutionProviders\DefaultDbNameSolutionProvider; |
30 | +use Facade\Ignition\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider; |
|
31 | +use Facade\Ignition\SolutionProviders\InvalidRouteActionSolutionProvider; |
|
44 | 32 | use Facade\Ignition\SolutionProviders\MissingAppKeySolutionProvider; |
45 | 33 | use Facade\Ignition\SolutionProviders\MissingImportSolutionProvider; |
34 | +use Facade\Ignition\SolutionProviders\MissingPackageSolutionProvider; |
|
35 | +use Facade\Ignition\SolutionProviders\SolutionProviderRepository; |
|
46 | 36 | use Facade\Ignition\SolutionProviders\TableNotFoundSolutionProvider; |
37 | +use Facade\Ignition\SolutionProviders\ViewNotFoundSolutionProvider; |
|
38 | +use Facade\Ignition\Views\Engines\CompilerEngine; |
|
39 | +use Facade\Ignition\Views\Engines\PhpEngine; |
|
40 | +use Illuminate\Foundation\Application; |
|
41 | +use Illuminate\Log\Events\MessageLogged; |
|
42 | +use Illuminate\Log\LogManager; |
|
43 | +use Illuminate\Queue\QueueManager; |
|
44 | +use Illuminate\Support\Arr; |
|
45 | +use Illuminate\Support\Facades\Log; |
|
46 | +use Illuminate\Support\Facades\Route; |
|
47 | +use Illuminate\Support\ServiceProvider; |
|
47 | 48 | use Illuminate\View\Engines\CompilerEngine as LaravelCompilerEngine; |
48 | -use Facade\Ignition\SolutionProviders\MissingPackageSolutionProvider; |
|
49 | -use Facade\Ignition\SolutionProviders\InvalidRouteActionSolutionProvider; |
|
50 | -use Facade\Ignition\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider; |
|
51 | -use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
|
49 | +use Illuminate\View\Engines\PhpEngine as LaravelPhpEngine; |
|
50 | +use Monolog\Logger; |
|
51 | +use Whoops\Handler\HandlerInterface; |
|
52 | 52 | |
53 | 53 | class IgnitionServiceProvider extends ServiceProvider |
54 | 54 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use Facade\Ignition\Support\ComposerClassMap; |
|
7 | -use Facade\Ignition\Solutions\SuggestImportSolution; |
|
8 | 5 | use Facade\IgnitionContracts\HasSolutionsForThrowable; |
6 | +use Facade\Ignition\Solutions\SuggestImportSolution; |
|
7 | +use Facade\Ignition\Support\ComposerClassMap; |
|
8 | +use Throwable; |
|
9 | 9 | |
10 | 10 | class MissingImportSolutionProvider implements HasSolutionsForThrowable |
11 | 11 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use Illuminate\Support\Str; |
|
5 | +use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
6 | +use Facade\Ignition\Solutions\MissingPackageSolution; |
|
7 | 7 | use Facade\Ignition\Support\Packagist\Package; |
8 | 8 | use Facade\Ignition\Support\Packagist\Packagist; |
9 | -use Facade\Ignition\Solutions\MissingPackageSolution; |
|
10 | -use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
9 | +use Illuminate\Support\Str; |
|
10 | +use Throwable; |
|
11 | 11 | |
12 | 12 | class MissingPackageSolutionProvider implements HasSolutionsForThrowable |
13 | 13 | { |