@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\Solutions; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Blade; |
|
6 | 5 | use Facade\IgnitionContracts\RunnableSolution; |
6 | +use Illuminate\Support\Facades\Blade; |
|
7 | 7 | |
8 | 8 | class SuggestCorrectVariableNameSolution implements RunnableSolution |
9 | 9 | { |
@@ -13,6 +13,10 @@ |
||
13 | 13 | /** @var string */ |
14 | 14 | private $viewFile; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $variableName |
|
18 | + * @param string $viewFile |
|
19 | + */ |
|
16 | 20 | public function __construct($variableName = null, $viewFile = null, $suggested = null) |
17 | 21 | { |
18 | 22 | $this->variableName = $variableName; |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use ParseError; |
|
7 | -use Illuminate\Support\Str; |
|
8 | 5 | use Facade\IgnitionContracts\BaseSolution; |
9 | 6 | use Facade\IgnitionContracts\HasSolutionsForThrowable; |
7 | +use Illuminate\Support\Str; |
|
8 | +use ParseError; |
|
10 | 9 | use Symfony\Component\Debug\Exception\FatalThrowableError; |
10 | +use Throwable; |
|
11 | 11 | |
12 | 12 | class MergeConflictSolutionProvider implements HasSolutionsForThrowable |
13 | 13 | { |
@@ -3,15 +3,15 @@ |
||
3 | 3 | namespace Facade\Ignition\Views\Engines; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use ReflectionProperty; |
|
7 | -use Illuminate\Support\Arr; |
|
8 | -use Illuminate\Support\Collection; |
|
9 | -use Illuminate\Filesystem\Filesystem; |
|
10 | -use Facade\Ignition\Exceptions\ViewException; |
|
11 | 6 | use Facade\IgnitionContracts\ProvidesSolution; |
7 | +use Facade\Ignition\Exceptions\ViewException; |
|
12 | 8 | use Facade\Ignition\Exceptions\ViewExceptionWithSolution; |
13 | -use Facade\Ignition\Views\Concerns\CollectsViewExceptions; |
|
14 | 9 | use Facade\Ignition\Views\Compilers\BladeSourceMapCompiler; |
10 | +use Facade\Ignition\Views\Concerns\CollectsViewExceptions; |
|
11 | +use Illuminate\Filesystem\Filesystem; |
|
12 | +use Illuminate\Support\Arr; |
|
13 | +use Illuminate\Support\Collection; |
|
14 | +use ReflectionProperty; |
|
15 | 15 | |
16 | 16 | class CompilerEngine extends \Illuminate\View\Engines\CompilerEngine |
17 | 17 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | 5 | use Facade\IgnitionContracts\BaseSolution; |
7 | -use Facade\Ignition\Exceptions\ViewException; |
|
8 | 6 | use Facade\IgnitionContracts\HasSolutionsForThrowable; |
7 | +use Facade\Ignition\Exceptions\ViewException; |
|
9 | 8 | use Facade\Ignition\Solutions\MakeViewVariableOptionalSolution; |
10 | 9 | use Facade\Ignition\Solutions\SuggestCorrectVariableNameSolution; |
10 | +use Throwable; |
|
11 | 11 | |
12 | 12 | class UndefinedVariableSolutionProvider implements HasSolutionsForThrowable |
13 | 13 | { |
@@ -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\Ignition; |
|
11 | 9 | use Facade\Ignition\IgnitionConfig; |
12 | -use Illuminate\Contracts\Support\Arrayable; |
|
13 | -use Laravel\Telescope\IncomingExceptionEntry; |
|
14 | 10 | use Facade\Ignition\Solutions\SolutionTransformer; |
11 | +use Illuminate\Contracts\Support\Arrayable; |
|
15 | 12 | use Laravel\Telescope\Http\Controllers\HomeController; |
13 | +use Laravel\Telescope\IncomingExceptionEntry; |
|
14 | +use Laravel\Telescope\Telescope; |
|
15 | +use Throwable; |
|
16 | 16 | |
17 | 17 | class ErrorPageViewModel implements Arrayable |
18 | 18 | { |
@@ -34,6 +34,9 @@ |
||
34 | 34 | /** @var array */ |
35 | 35 | protected $defaultTabProps = []; |
36 | 36 | |
37 | + /** |
|
38 | + * @param Throwable $throwable |
|
39 | + */ |
|
37 | 40 | public function __construct(?Throwable $throwable, IgnitionConfig $ignitionConfig, Report $report, array $solutions) |
38 | 41 | { |
39 | 42 | $this->throwable = $throwable; |
@@ -2,15 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use InvalidArgumentException; |
|
7 | -use Illuminate\Support\Facades\Route; |
|
8 | -use Illuminate\Foundation\Application; |
|
9 | 5 | use Facade\IgnitionContracts\BaseSolution; |
6 | +use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
10 | 7 | use Facade\Ignition\Exceptions\ViewException; |
11 | 8 | use Facade\Ignition\Support\StringComparator; |
12 | -use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
9 | +use Illuminate\Foundation\Application; |
|
10 | +use Illuminate\Support\Facades\Route; |
|
11 | +use InvalidArgumentException; |
|
13 | 12 | use Symfony\Component\Routing\Exception\RouteNotFoundException; |
13 | +use Throwable; |
|
14 | 14 | |
15 | 15 | class RouteNotDefinedSolutionProvider implements HasSolutionsForThrowable |
16 | 16 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\ErrorPage; |
4 | 4 | |
5 | -use Throwable; |
|
6 | 5 | use Facade\FlareClient\Report; |
6 | +use Facade\IgnitionContracts\SolutionProviderRepository; |
|
7 | 7 | use Facade\Ignition\IgnitionConfig; |
8 | 8 | use Illuminate\Foundation\Application; |
9 | -use Facade\IgnitionContracts\SolutionProviderRepository; |
|
9 | +use Throwable; |
|
10 | 10 | |
11 | 11 | class ErrorPageHandler |
12 | 12 | { |
@@ -2,63 +2,63 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use Monolog\Logger; |
|
7 | -use Illuminate\Support\Arr; |
|
8 | 5 | use Facade\FlareClient\Flare; |
9 | -use Illuminate\Log\LogManager; |
|
10 | -use Illuminate\Queue\QueueManager; |
|
11 | 6 | use Facade\FlareClient\Http\Client; |
12 | -use Illuminate\Support\Facades\Log; |
|
13 | -use Whoops\Handler\HandlerInterface; |
|
14 | -use Illuminate\Support\Facades\Route; |
|
15 | -use Illuminate\Foundation\Application; |
|
7 | +use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
|
8 | +use Facade\Ignition\Commands\SolutionMakeCommand; |
|
9 | +use Facade\Ignition\Commands\TestCommand; |
|
10 | +use Facade\Ignition\Context\LaravelContextDetector; |
|
11 | +use Facade\Ignition\DumpRecorder\DumpRecorder; |
|
12 | +use Facade\Ignition\ErrorPage\IgnitionWhoopsHandler; |
|
16 | 13 | use Facade\Ignition\ErrorPage\Renderer; |
17 | -use Facade\Ignition\Middleware\AddLogs; |
|
18 | -use Illuminate\Support\ServiceProvider; |
|
14 | +use Facade\Ignition\Exceptions\InvalidConfig; |
|
15 | +use Facade\Ignition\Http\Controllers\ExecuteSolutionController; |
|
16 | +use Facade\Ignition\Http\Controllers\HealthCheckController; |
|
17 | +use Facade\Ignition\Http\Controllers\ScriptController; |
|
18 | +use Facade\Ignition\Http\Controllers\ShareReportController; |
|
19 | +use Facade\Ignition\Http\Controllers\StyleController; |
|
20 | +use Facade\Ignition\Http\Middleware\IgnitionConfigValueEnabled; |
|
21 | +use Facade\Ignition\Http\Middleware\IgnitionEnabled; |
|
22 | +use Facade\Ignition\LogRecorder\LogRecorder; |
|
19 | 23 | use Facade\Ignition\Logger\FlareHandler; |
20 | 24 | use Facade\Ignition\Middleware\AddDumps; |
21 | -use Illuminate\Log\Events\MessageLogged; |
|
22 | -use Facade\Ignition\Commands\TestCommand; |
|
25 | +use Facade\Ignition\Middleware\AddEnvironmentInformation; |
|
26 | +use Facade\Ignition\Middleware\AddGitInformation; |
|
27 | +use Facade\Ignition\Middleware\AddLogs; |
|
23 | 28 | use Facade\Ignition\Middleware\AddQueries; |
24 | -use Facade\Ignition\LogRecorder\LogRecorder; |
|
25 | 29 | use Facade\Ignition\Middleware\AddSolutions; |
26 | -use Facade\Ignition\Views\Engines\PhpEngine; |
|
27 | -use Facade\Ignition\Exceptions\InvalidConfig; |
|
28 | -use Facade\Ignition\DumpRecorder\DumpRecorder; |
|
29 | 30 | use Facade\Ignition\Middleware\SetNotifierName; |
30 | 31 | use Facade\Ignition\QueryRecorder\QueryRecorder; |
31 | -use Facade\Ignition\Commands\SolutionMakeCommand; |
|
32 | -use Facade\Ignition\Middleware\AddGitInformation; |
|
33 | -use Facade\Ignition\Views\Engines\CompilerEngine; |
|
34 | -use Facade\Ignition\Context\LaravelContextDetector; |
|
35 | -use Facade\Ignition\ErrorPage\IgnitionWhoopsHandler; |
|
36 | -use Facade\Ignition\Http\Middleware\IgnitionEnabled; |
|
37 | -use Facade\Ignition\Http\Controllers\StyleController; |
|
38 | -use Facade\Ignition\Http\Controllers\ScriptController; |
|
39 | -use Facade\Ignition\Middleware\AddEnvironmentInformation; |
|
40 | -use Illuminate\View\Engines\PhpEngine as LaravelPhpEngine; |
|
41 | -use Facade\Ignition\Http\Controllers\HealthCheckController; |
|
42 | -use Facade\Ignition\Http\Controllers\ShareReportController; |
|
43 | -use Facade\Ignition\Http\Controllers\ExecuteSolutionController; |
|
44 | -use Facade\Ignition\Http\Middleware\IgnitionConfigValueEnabled; |
|
45 | -use Facade\Ignition\SolutionProviders\SolutionProviderRepository; |
|
46 | -use Facade\Ignition\SolutionProviders\ViewNotFoundSolutionProvider; |
|
47 | 32 | use Facade\Ignition\SolutionProviders\BadMethodCallSolutionProvider; |
48 | 33 | use Facade\Ignition\SolutionProviders\DefaultDbNameSolutionProvider; |
34 | +use Facade\Ignition\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider; |
|
35 | +use Facade\Ignition\SolutionProviders\InvalidRouteActionSolutionProvider; |
|
49 | 36 | use Facade\Ignition\SolutionProviders\MergeConflictSolutionProvider; |
50 | 37 | use Facade\Ignition\SolutionProviders\MissingAppKeySolutionProvider; |
51 | 38 | use Facade\Ignition\SolutionProviders\MissingColumnSolutionProvider; |
52 | 39 | use Facade\Ignition\SolutionProviders\MissingImportSolutionProvider; |
53 | -use Facade\Ignition\SolutionProviders\TableNotFoundSolutionProvider; |
|
54 | -use Illuminate\View\Engines\CompilerEngine as LaravelCompilerEngine; |
|
55 | 40 | use Facade\Ignition\SolutionProviders\MissingPackageSolutionProvider; |
41 | +use Facade\Ignition\SolutionProviders\RunningLaravelDuskInProductionProvider; |
|
42 | +use Facade\Ignition\SolutionProviders\SolutionProviderRepository; |
|
43 | +use Facade\Ignition\SolutionProviders\TableNotFoundSolutionProvider; |
|
56 | 44 | use Facade\Ignition\SolutionProviders\UndefinedVariableSolutionProvider; |
57 | 45 | use Facade\Ignition\SolutionProviders\UnknownValidationSolutionProvider; |
58 | -use Facade\Ignition\SolutionProviders\InvalidRouteActionSolutionProvider; |
|
59 | -use Facade\Ignition\SolutionProviders\RunningLaravelDuskInProductionProvider; |
|
60 | -use Facade\Ignition\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider; |
|
61 | -use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
|
46 | +use Facade\Ignition\SolutionProviders\ViewNotFoundSolutionProvider; |
|
47 | +use Facade\Ignition\Views\Engines\CompilerEngine; |
|
48 | +use Facade\Ignition\Views\Engines\PhpEngine; |
|
49 | +use Illuminate\Foundation\Application; |
|
50 | +use Illuminate\Log\Events\MessageLogged; |
|
51 | +use Illuminate\Log\LogManager; |
|
52 | +use Illuminate\Queue\QueueManager; |
|
53 | +use Illuminate\Support\Arr; |
|
54 | +use Illuminate\Support\Facades\Log; |
|
55 | +use Illuminate\Support\Facades\Route; |
|
56 | +use Illuminate\Support\ServiceProvider; |
|
57 | +use Illuminate\View\Engines\CompilerEngine as LaravelCompilerEngine; |
|
58 | +use Illuminate\View\Engines\PhpEngine as LaravelPhpEngine; |
|
59 | +use Monolog\Logger; |
|
60 | +use Throwable; |
|
61 | +use Whoops\Handler\HandlerInterface; |
|
62 | 62 | |
63 | 63 | class IgnitionServiceProvider extends ServiceProvider |
64 | 64 | { |