@@ -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 | { |
@@ -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 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
6 | -use Illuminate\Support\Collection; |
|
7 | -use Facade\IgnitionContracts\Solution; |
|
8 | -use Facade\IgnitionContracts\ProvidesSolution; |
|
9 | 5 | use Facade\IgnitionContracts\HasSolutionsForThrowable; |
6 | +use Facade\IgnitionContracts\ProvidesSolution; |
|
7 | +use Facade\IgnitionContracts\Solution; |
|
10 | 8 | use Facade\IgnitionContracts\SolutionProviderRepository as SolutionProviderRepositoryContract; |
9 | +use Illuminate\Support\Collection; |
|
10 | +use Throwable; |
|
11 | 11 | |
12 | 12 | class SolutionProviderRepository implements SolutionProviderRepositoryContract |
13 | 13 | { |
@@ -2,16 +2,16 @@ |
||
2 | 2 | |
3 | 3 | namespace Facade\Ignition\SolutionProviders; |
4 | 4 | |
5 | -use Throwable; |
|
5 | +use Facade\IgnitionContracts\BaseSolution; |
|
6 | +use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
7 | +use Facade\Ignition\Exceptions\ViewException; |
|
8 | +use Facade\Ignition\Support\StringComparator; |
|
6 | 9 | use Illuminate\Support\Arr; |
7 | -use InvalidArgumentException; |
|
8 | 10 | use Illuminate\Support\Facades\View; |
11 | +use InvalidArgumentException; |
|
9 | 12 | use Symfony\Component\Finder\Finder; |
10 | 13 | use Symfony\Component\Finder\SplFileInfo; |
11 | -use Facade\IgnitionContracts\BaseSolution; |
|
12 | -use Facade\Ignition\Exceptions\ViewException; |
|
13 | -use Facade\Ignition\Support\StringComparator; |
|
14 | -use Facade\IgnitionContracts\HasSolutionsForThrowable; |
|
14 | +use Throwable; |
|
15 | 15 | |
16 | 16 | class ViewNotFoundSolutionProvider implements HasSolutionsForThrowable |
17 | 17 | { |