| @@ -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 |  { | 
| @@ -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\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 |  { | 
| @@ -2,10 +2,10 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Facade\Ignition\Tabs; | 
| 4 | 4 | |
| 5 | -use Throwable; | |
| 6 | -use JsonSerializable; | |
| 7 | -use Illuminate\Support\Str; | |
| 8 | 5 | use Facade\FlareClient\Flare; | 
| 6 | +use Illuminate\Support\Str; | |
| 7 | +use JsonSerializable; | |
| 8 | +use Throwable; | |
| 9 | 9 | |
| 10 | 10 | abstract class Tab implements JsonSerializable | 
| 11 | 11 |  { | 
| @@ -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 MakeViewVariableOptionalSolution 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) | 
| 17 | 21 |      { | 
| 18 | 22 | $this->variableName = $variableName; |