@@ -2,18 +2,18 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use Illuminate\Support\Arr; |
|
7 | -use InvalidArgumentException; |
|
8 | -use Illuminate\Support\Facades\View; |
|
9 | -use Symfony\Component\Finder\Finder; |
|
10 | -use Symfony\Component\Finder\SplFileInfo; |
|
11 | 5 | use Facade\IgnitionContracts\BaseSolution; |
6 | +use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
12 | 7 | use Facade\Ignition\Exceptions\ViewException; |
13 | -use Facade\Ignition\Support\StringComparator; |
|
14 | 8 | use Facade\Ignition\Solutions\CreateViewFileSolution; |
15 | 9 | use Facade\Ignition\Solutions\UpdateViewNameSolution; |
16 | -use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
10 | +use Facade\Ignition\Support\StringComparator; |
|
11 | +use Illuminate\Support\Arr; |
|
12 | +use Illuminate\Support\Facades\View; |
|
13 | +use InvalidArgumentException; |
|
14 | +use Symfony\Component\Finder\Finder; |
|
15 | +use Symfony\Component\Finder\SplFileInfo; |
|
16 | +use Throwable; |
|
17 | 17 | |
18 | 18 | class ViewNotFoundSolutionProvider implements HasSolutionsForThrowable |
19 | 19 | { |
@@ -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 | { |
@@ -10,6 +10,9 @@ |
||
10 | 10 | { |
11 | 11 | private $viewName; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $viewName |
|
15 | + */ |
|
13 | 16 | public function __construct($viewName = null) |
14 | 17 | { |
15 | 18 | $this->viewName = $viewName; |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\Solutions; |
4 | 4 | |
5 | +use Facade\IgnitionContracts\RunnableSolution; |
|
5 | 6 | use Illuminate\Support\Facades\View; |
6 | 7 | use Symfony\Component\Filesystem\Filesystem; |
7 | -use Facade\IgnitionContracts\RunnableSolution; |
|
8 | 8 | |
9 | 9 | class CreateViewFileSolution implements RunnableSolution |
10 | 10 | { |
@@ -9,6 +9,9 @@ |
||
9 | 9 | private $missingView; |
10 | 10 | private $suggestedView; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $missingView |
|
14 | + */ |
|
12 | 15 | public function __construct($missingView = null, $suggestedView = null, $controllerPath = null) |
13 | 16 | { |
14 | 17 | $this->missingView = $missingView; |
@@ -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 | { |