Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Jun 12, 2024
1 parent 1944db1 commit 2021083
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 19 deletions.
6 changes: 3 additions & 3 deletions src/DiscoverSolutionProviders.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

class DiscoverSolutionProviders
{
/** @var array<string, string>*/
/** @var array<string, string> */
protected array $config = [
'ai' => 'SolutionProviders/OpenAi',
'php' => 'SolutionProviders',
'laravel' => 'SolutionProviders/Laravel'
'laravel' => 'SolutionProviders/Laravel',
];

/**
Expand Down Expand Up @@ -62,7 +62,7 @@ protected function getProviderClassesForType(string $type): array

$files = glob($globPattern);

if (!$files) {
if (! $files) {
return [];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Spatie\ErrorSolutions\Contracts\BaseSolution;
use Spatie\ErrorSolutions\Contracts\HasSolutionsForThrowable;
use Spatie\ErrorSolutions\Contracts\Solution;
use Spatie\LaravelIgnition\Exceptions\ViewException as IgnitionViewException;
use Spatie\LaravelFlare\Exceptions\ViewException as FlareViewException;
use Spatie\ErrorSolutions\Solutions\Laravel\MakeViewVariableOptionalSolution;
use Spatie\ErrorSolutions\Solutions\Laravel\SuggestCorrectVariableNameSolution;
use Spatie\LaravelFlare\Exceptions\ViewException as FlareViewException;
use Spatie\LaravelIgnition\Exceptions\ViewException as IgnitionViewException;
use Throwable;

class UndefinedViewVariableSolutionProvider implements HasSolutionsForThrowable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use InvalidArgumentException;
use Spatie\ErrorSolutions\Contracts\BaseSolution;
use Spatie\ErrorSolutions\Contracts\HasSolutionsForThrowable;
use Spatie\ErrorSolutions\Support\Laravel\StringComparator;
use Spatie\Ignition\Exceptions\ViewException as IgnitionViewException;
use Spatie\LaravelFlare\Exceptions\ViewException as FlareViewException;
use Spatie\ErrorSolutions\Support\Laravel\StringComparator;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Throwable;
Expand Down
1 change: 0 additions & 1 deletion src/Support/AiPromptRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ public function renderAsString(array $data, string $viewPath): string
return ob_get_clean();
}
}

2 changes: 1 addition & 1 deletion src/Support/Laravel/LivewireComponentParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LivewireComponentParser
/** @var class-string<Component> */
protected string $componentClass;

/** @var ReflectionClass<Component> */
/** @var ReflectionClass<Component> */
protected ReflectionClass $reflectionClass;

public static function create(string $componentAlias): self
Expand Down
4 changes: 2 additions & 2 deletions tests/DiscoverSolutionProvidersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
use Spatie\ErrorSolutions\Contracts\HasSolutionsForThrowable;
use Spatie\ErrorSolutions\DiscoverSolutionProviders;

it('can get all solution providers', function() {
it('can get all solution providers', function () {
$providers = DiscoverSolutionProviders::for(['php', 'laravel']);

expect($providers)
->not()->toBeEmpty()
->toImplement(HasSolutionsForThrowable::class);
});

it('will discover more solution providers for more types', function() {
it('will discover more solution providers for more types', function () {
$phpProviders = DiscoverSolutionProviders::for(['php']);

$laravelProviders = DiscoverSolutionProviders::for(['php', 'laravel']);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Illuminate\Support\Facades\View;
use Spatie\LaravelIgnition\Solutions\MakeViewVariableOptionalSolution;
use Spatie\ErrorSolutions\Support\Laravel\Composer\ComposerClassMap;
use Spatie\LaravelIgnition\Solutions\MakeViewVariableOptionalSolution;

beforeEach(function () {
View::addLocation(__DIR__.'/../stubs/views');
Expand Down
8 changes: 0 additions & 8 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
namespace Spatie\ErrorSolutions\Tests;

use Illuminate\Foundation\Testing\Concerns\MakesHttpRequests;
use Illuminate\Http\Request;
use Spatie\FlareClient\Glows\Glow;
use Spatie\FlareClient\Report;
use Spatie\LaravelIgnition\Facades\Flare;
use Spatie\LaravelIgnition\IgnitionServiceProvider;
use Spatie\LaravelIgnition\Tests\TestClasses\FakeTime;
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
use function Spatie\LaravelIgnition\Tests\config;

class TestCase extends \Orchestra\Testbench\TestCase
{
Expand Down

0 comments on commit 2021083

Please sign in to comment.