Skip to content

Commit

Permalink
laravel pint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarsn committed Feb 26, 2025
1 parent a40e70b commit 8fb1242
Show file tree
Hide file tree
Showing 22 changed files with 438 additions and 467 deletions.
4 changes: 1 addition & 3 deletions src/Contracts/GraphQLBuilderContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
interface GraphQLBuilderContract
{
/**
* @param string|null $query
* @param array<string, mixed> $variables
* @return TestResponse
* @param array<string, mixed> $variables
*/
public function call(?string $query = null, array $variables = []): TestResponse;
}
8 changes: 4 additions & 4 deletions src/Drivers/NullDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ class NullDriver implements DriverContract

public function __construct(Container $app, ConfigContract $config)
{
$this->app = $app;
$this->config = $config;
$this->app = $app;
$this->config = $config;
}

public function getUrlPrefix(): ?string
{
return null;
return null;
}

public function getHttpMethodForSchema(string $schemaName): ?string
{
return null;
return null;
}
}
16 changes: 8 additions & 8 deletions src/Drivers/RebingDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ class RebingDriver implements DriverContract

public function __construct(Container $app, ConfigContract $config)
{
$this->app = $app;
$this->config = $config;
$this->app = $app;
$this->config = $config;
}

public function getUrlPrefix(): ?string
{
/** @var string|null $routePrefix */
$routePrefix = $this->config->get('graphql.route.prefix');
/** @var string|null $routePrefix */
$routePrefix = $this->config->get('graphql.route.prefix');

return $routePrefix;
return $routePrefix;
}

public function getHttpMethodForSchema(string $schemaName): ?string
{
/** @var string|null $method */
$method = $this->config->get('graphql.schemas.' . $schemaName . '.method.0');
/** @var string|null $method */
$method = $this->config->get('graphql.schemas.'.$schemaName.'.method.0');

return $method;
return $method;
}
}
5 changes: 1 addition & 4 deletions src/Exceptions/DriverNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@

use RuntimeException;

class DriverNotFoundException extends RuntimeException
{

}
class DriverNotFoundException extends RuntimeException {}
5 changes: 1 addition & 4 deletions src/Exceptions/GraphQLQueryNotProvidedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@

use RuntimeException;

class GraphQLQueryNotProvidedException extends RuntimeException
{

}
class GraphQLQueryNotProvidedException extends RuntimeException {}
Loading

0 comments on commit 8fb1242

Please sign in to comment.