GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch cs-type (275053)
by Šimon
04:09
created
Category
src/Type/Definition/IntType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         }
58 58
 
59 59
         $num = floatval($value);
60
-        if ((! is_numeric($value) && ! is_bool($value)) || $num > self::MAX_INT || $num < self::MIN_INT) {
60
+        if ((!is_numeric($value) && !is_bool($value)) || $num > self::MAX_INT || $num < self::MIN_INT) {
61 61
             throw new Error(
62 62
                 'Int cannot represent non 32-bit signed integer value: ' .
63 63
                 Utils::printSafe($value)
Please login to merge, or discard this patch.
src/Type/Definition/FieldDefinition.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         if (is_callable($fields)) {
91 91
             $fields = $fields();
92 92
         }
93
-        if (! is_array($fields)) {
93
+        if (!is_array($fields)) {
94 94
             throw new InvariantViolation(
95 95
                 sprintf('%s fields must be an array or a callable which returns such an array.', $type->name)
96 96
             );
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
         $map = [];
99 99
         foreach ($fields as $name => $field) {
100 100
             if (is_array($field)) {
101
-                if (! isset($field['name'])) {
102
-                    if (! is_string($name)) {
101
+                if (!isset($field['name'])) {
102
+                    if (!is_string($name)) {
103 103
                         throw new InvariantViolation(
104 104
                             sprintf(
105 105
                                 '%s fields must be an associative array with field names as keys or a function which returns such an array.',
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
                     $field['name'] = $name;
112 112
                 }
113
-                if (isset($field['args']) && ! is_array($field['args'])) {
113
+                if (isset($field['args']) && !is_array($field['args'])) {
114 114
                     throw new InvariantViolation(
115 115
                         sprintf('%s.%s args must be an array.', $type->name, $name)
116 116
                     );
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             } elseif ($field instanceof self) {
120 120
                 $fieldDef = $field;
121 121
             } else {
122
-                if (! is_string($name) || ! $field) {
122
+                if (!is_string($name) || !$field) {
123 123
                     throw new InvariantViolation(
124 124
                         sprintf(
125 125
                             '%s.%s field config must be an array, but got: %s',
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function isDeprecated()
187 187
     {
188
-        return ! ! $this->deprecationReason;
188
+        return !!$this->deprecationReason;
189 189
     }
190 190
 
191 191
     /**
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             throw new InvariantViolation(sprintf('%s.%s: %s', $parentType->name, $this->name, $e->getMessage()));
208 208
         }
209 209
         Utils::invariant(
210
-            ! isset($this->config['isDeprecated']),
210
+            !isset($this->config['isDeprecated']),
211 211
             sprintf(
212 212
                 '%s.%s should provide "deprecationReason" instead of "isDeprecated".',
213 213
                 $parentType->name,
Please login to merge, or discard this patch.
src/Type/Definition/NonNull.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public static function assertNullableType($type)
32 32
     {
33 33
         Utils::invariant(
34
-            Type::isType($type) && ! $type instanceof self,
34
+            Type::isType($type) && !$type instanceof self,
35 35
             'Expected ' . Utils::printSafe($type) . ' to be a GraphQL nullable type.'
36 36
         );
37 37
 
Please login to merge, or discard this patch.
src/Type/Definition/InterfaceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function __construct(array $config)
34 34
     {
35
-        if (! isset($config['name'])) {
35
+        if (!isset($config['name'])) {
36 36
             $config['name'] = $this->tryInferName();
37 37
         }
38 38
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $resolveType = $this->config['resolveType'] ?? null;
115 115
 
116 116
         Utils::invariant(
117
-            ! isset($resolveType) || is_callable($resolveType),
117
+            !isset($resolveType) || is_callable($resolveType),
118 118
             sprintf(
119 119
                 '%s must provide "resolveType" as a function, but got: %s',
120 120
                 $this->name,
Please login to merge, or discard this patch.
src/Type/Definition/InputObjectType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function __construct(array $config)
33 33
     {
34
-        if (! isset($config['name'])) {
34
+        if (!isset($config['name'])) {
35 35
             $config['name'] = $this->tryInferName();
36 36
         }
37 37
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $fields       = $this->config['fields'] ?? [];
69 69
             $fields       = is_callable($fields) ? call_user_func($fields) : $fields;
70 70
 
71
-            if (! is_array($fields)) {
71
+            if (!is_array($fields)) {
72 72
                 throw new InvariantViolation(
73 73
                     spritnf('%s fields must be an array or a callable which returns such an array.', $this->name)
74 74
                 );
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         parent::assertValid();
98 98
 
99 99
         Utils::invariant(
100
-            ! empty($this->getFields()),
100
+            !empty($this->getFields()),
101 101
             sprintf(
102 102
                 '%s fields must be an associative array with field names as keys or a callable which returns such an array.',
103 103
                 $this->name
Please login to merge, or discard this patch.
src/Type/Definition/ObjectType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function __construct(array $config)
82 82
     {
83
-        if (! isset($config['name'])) {
83
+        if (!isset($config['name'])) {
84 84
             $config['name'] = $this->tryInferName();
85 85
         }
86 86
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
     private function getInterfaceMap()
152 152
     {
153
-        if (! $this->interfaceMap) {
153
+        if (!$this->interfaceMap) {
154 154
             $this->interfaceMap = [];
155 155
             foreach ($this->getInterfaces() as $interface) {
156 156
                 $this->interfaceMap[$interface->name] = $interface;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             $interfaces = $this->config['interfaces'] ?? [];
170 170
             $interfaces = is_callable($interfaces) ? call_user_func($interfaces) : $interfaces;
171 171
 
172
-            if ($interfaces && ! is_array($interfaces)) {
172
+            if ($interfaces && !is_array($interfaces)) {
173 173
                 throw new InvariantViolation(
174 174
                     sprintf('%s interfaces must be an Array or a callable which returns an Array.', $this->name)
175 175
                 );
Please login to merge, or discard this patch.
src/Type/Definition/FieldArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     {
75 75
         $map = [];
76 76
         foreach ($config as $name => $argConfig) {
77
-            if (! is_array($argConfig)) {
77
+            if (!is_array($argConfig)) {
78 78
                 $argConfig = ['type' => $argConfig];
79 79
             }
80 80
             $map[] = new self($argConfig + ['name' => $name]);
Please login to merge, or discard this patch.
src/Type/Definition/BooleanType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function serialize($value)
29 29
     {
30
-        return ! ! $value;
30
+        return !!$value;
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/Type/Definition/StringType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         if (is_object($value) && method_exists($value, '__toString')) {
47 47
             return (string) $value;
48 48
         }
49
-        if (! is_scalar($value)) {
49
+        if (!is_scalar($value)) {
50 50
             throw new Error('String cannot represent non scalar value: ' . Utils::printSafe($value));
51 51
         }
52 52
 
Please login to merge, or discard this patch.