@@ -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,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 | { |