Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts authored and StyleCIBot committed Jan 24, 2019
1 parent 3ea698f commit 0396fd3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Http/Exception/Extension/DebugExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DebugExtension extends Extension
public function __construct(\Throwable $error, int $trace = self::MAX_TRACE_SIZE)
{
$this->exceptions[] = $error;
$this->trace = \max(0, $trace);
$this->trace = \max(0, $trace);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Exception/GraphQLExceptionLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GraphQLExceptionLocation implements GraphQLExceptionLocationInterface
*/
public function __construct(int $line, int $column = 0)
{
$this->line = $line;
$this->line = $line;
$this->column = $column;
}

Expand Down Expand Up @@ -68,7 +68,7 @@ public function getColumn(): int
*/
public static function fromArray(array $location): self
{
$line = (int)($location[static::JSON_LINE_KEY] ?? 0);
$line = (int)($location[static::JSON_LINE_KEY] ?? 0);
$column = (int)($location[static::JSON_COLUMN_KEY] ?? 0);

return new static($line, $column);
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Exception/GraphQLExceptionLocationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
interface GraphQLExceptionLocationInterface extends \JsonSerializable
{
public const JSON_LINE_KEY = 'line';
public const JSON_LINE_KEY = 'line';
public const JSON_COLUMN_KEY = 'column';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Provider/PsrHttpProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private function getContentTypes(): iterable
protected function getJson(): array
{
try {
$body = $this->request->getBody();
$body = $this->request->getBody();
$bodyId = \spl_object_hash($body);

if (! isset($this->bodies[$bodyId])) {
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class Query implements QueryInterface
*/
public function __construct(string $query, iterable $vars = [], string $operationName = null)
{
$this->query = $query;
$this->vars = $this->fromIterator($vars);
$this->query = $query;
$this->vars = $this->fromIterator($vars);
$this->operationName = $operationName;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/GlobalsProviderTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GlobalsProviderTestCase extends TestCase
*/
protected function provider(array $query = [], array $request = [], string $body = ''): ProviderInterface
{
$_GET = $query;
$_GET = $query;
$_POST = $request;

$path = __DIR__ . '/.temp/input-stream.' . \random_int(1, \PHP_INT_MAX) . '.txt';
Expand Down

0 comments on commit 0396fd3

Please sign in to comment.