Completed
Pull Request — master (#204)
by Ryan
11:34
created
src/Relay/Connection/Connection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 10.05.16.
15 15
  */
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $edgeFields = !empty($config['edgeFields']) ? $config['edgeFields'] : [];
61 61
 
62 62
         $edgeType = new ObjectType([
63
-            'name'        => $name . 'Edge',
63
+            'name'        => $name.'Edge',
64 64
             'description' => 'An edge in a connection.',
65 65
             'fields'      => \array_merge([
66 66
                 'node' => [
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $connectionFields = !empty($config['connectionFields']) ? $config['connectionFields'] : [];
93 93
 
94 94
         $connectionType = new ObjectType([
95
-            'name'        => $name . 'Connection',
95
+            'name'        => $name.'Connection',
96 96
             'description' => 'A connection to a list of items.',
97 97
             'fields'      => \array_merge([
98 98
                 'pageInfo' => [
Please login to merge, or discard this patch.
src/Relay/Connection/ArrayConnection.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /**
14 14
  * Date: 17.05.16.
15 15
  */
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $index = \array_search($object, $data, true);
30 30
 
31
-        return false === $index ? null : (string) self::keyToCursor($index);
31
+        return false === $index ? null : (string)self::keyToCursor($index);
32 32
     }
33 33
 
34 34
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public static function keyToCursor($key)
48 48
     {
49
-        return \base64_encode(self::PREFIX . $key);
49
+        return \base64_encode(self::PREFIX.$key);
50 50
     }
51 51
 
52 52
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $offset = \array_search($key, \array_keys($array), true);
102 102
         }
103 103
 
104
-        return null === $offset ? $default : (int) $offset;
104
+        return null === $offset ? $default : (int)$offset;
105 105
     }
106 106
 
107 107
     public static function connectionFromArray(array $data, array $args = [])
Please login to merge, or discard this patch.
src/Relay/NodeInterfaceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Relay/Field/NodeField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Relay/Field/GlobalIdField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of graphql-youshido project.
15 15
  *
Please login to merge, or discard this patch.
src/Schema/InternalSchemaMutationObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Schema/InternalSchemaQueryObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
Please login to merge, or discard this patch.
src/Schema/AbstractSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * http://opensource.org/licenses/MIT
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 /*
14 14
  * This file is a part of GraphQL project.
15 15
  *
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
     public function __construct($config = [])
32 32
     {
33 33
         if (!\array_key_exists('query', $config)) {
34
-            $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName($config) . 'Query']);
34
+            $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName($config).'Query']);
35 35
         }
36 36
 
37 37
         if (!\array_key_exists('mutation', $config)) {
38
-            $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config) . 'Mutation']);
38
+            $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName($config).'Mutation']);
39 39
         }
40 40
 
41 41
         if (!\array_key_exists('types', $config)) {
Please login to merge, or discard this patch.