Skip to content
This repository was archived by the owner on Feb 10, 2019. It is now read-only.

Commit 389c38d

Browse files
committed
Fix with spaces
1 parent 4be3fad commit 389c38d

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/Folklore/GraphQL/Support/Type.php

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
class Type extends Fluent implements TypeConvertible
1313
{
1414
protected static $instances = [];
15-
15+
1616
protected $inputObject = false;
1717
protected $enumObject = false;
18-
18+
1919
public function attributes()
2020
{
2121
return [];
2222
}
23-
23+
2424
public function fields()
2525
{
2626
return [];
2727
}
28-
28+
2929
public function interfaces()
3030
{
3131
return [];
3232
}
33-
33+
3434
protected function getFieldResolver($name, $field)
3535
{
3636
$resolveMethod = 'resolve'.studly_case($name).'Field';
@@ -43,10 +43,10 @@ protected function getFieldResolver($name, $field)
4343
return call_user_func_array($resolver, $args);
4444
};
4545
}
46-
46+
4747
return null;
4848
}
49-
49+
5050
public function getFields()
5151
{
5252
$fields = $this->fields();
@@ -57,11 +57,9 @@ public function getFields()
5757
$field->name = $name;
5858
$allFields[$name] = $field->toArray();
5959
} else {
60-
6160
$resolver = $this->getFieldResolver($name, $field);
6261

6362
if (isset($field['class'])) {
64-
6563
$field = $field['class'];
6664

6765
if (is_string($field)) {
@@ -79,7 +77,7 @@ public function getFields()
7977
$allFields[$name] = $field;
8078
}
8179
}
82-
80+
8381
return $allFields;
8482
}
8583

@@ -92,17 +90,17 @@ public function getAttributes()
9290
{
9391
$attributes = $this->attributes();
9492
$interfaces = $this->interfaces();
95-
93+
9694
$attributes = array_merge($this->attributes, [
9795
'fields' => function () {
9896
return $this->getFields();
9997
}
10098
], $attributes);
101-
99+
102100
if (sizeof($interfaces)) {
103101
$attributes['interfaces'] = $interfaces;
104102
}
105-
103+
106104
return $attributes;
107105
}
108106

@@ -115,7 +113,7 @@ public function toArray()
115113
{
116114
return $this->getAttributes();
117115
}
118-
116+
119117
public function toType()
120118
{
121119
if ($this->inputObject) {

0 commit comments

Comments
 (0)