Skip to content

Commit 8675c79

Browse files
SobakMikk Mihkel Nurges
authored andcommitted
Code cleanup (#143)
1 parent 9069fc1 commit 8675c79

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

src/Rebing/GraphQL/GraphQL.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
use GraphQL\GraphQL as GraphQLBase;
66
use GraphQL\Type\Schema;
77
use GraphQL\Type\Definition\ObjectType;
8-
use Rebing\GraphQL\Events\SchemaAdded;
98
use Rebing\GraphQL\Exception\SchemaNotFound;
109
use Rebing\GraphQL\Support\PaginationType;
11-
use Session;
1210

1311
class GraphQL {
14-
1512
protected $app;
1613

1714
protected $schemas = [];
@@ -86,7 +83,10 @@ public function schema($schema = null)
8683
}
8784

8885
/**
89-
* @param array $opts - additional options, like 'schema', 'context' or 'operationName'
86+
* @param string $query
87+
* @param array $params
88+
* @param array $opts Additional options, like 'schema', 'context' or 'operationName'
89+
* @return mixed
9090
*/
9191
public function query($query, $params = [], $opts = [])
9292
{

src/Rebing/GraphQL/GraphQLController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
use Illuminate\Http\Request;
44
use Illuminate\Routing\Controller;
55

6-
use Rebing\GraphQL\GraphQLUploadMiddleware;
7-
86
class GraphQLController extends Controller {
97

108
public function query(Request $request, $schema = null)

src/Rebing/GraphQL/GraphQLUploadMiddleware.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ class GraphQLUploadMiddleware
1515
*
1616
* @param \Illuminate\Http\Request $request
1717
* @param \Closure $next
18-
* @param string|null $guard
1918
* @return mixed
2019
*/
21-
public function handle(Request $request, Closure $next, $guard = null)
20+
public function handle(Request $request, Closure $next)
2221
{
2322
$request = $this->processRequest($request);
2423
return $next($request);

src/Rebing/GraphQL/Support/Type.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use GraphQL\Type\Definition\FieldDefinition;
77
use GraphQL\Type\Definition\InputObjectType;
88
use GraphQL\Type\Definition\ObjectType;
9-
use GraphQL\Type\Definition\UnionType;
109
use Illuminate\Support\Fluent;
1110

1211
class Type extends Fluent {
@@ -146,7 +145,7 @@ public function __get($key)
146145
* Dynamically check if an attribute is set.
147146
*
148147
* @param string $key
149-
* @return void
148+
* @return bool
150149
*/
151150
public function __isset($key)
152151
{

0 commit comments

Comments
 (0)