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.
Passed
Branch kind (653eae)
by Šimon
03:43
created
Category
src/Type/Definition/Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         return $type instanceof InputType &&
176 176
             (
177
-                ! $type instanceof WrappingType ||
177
+                !$type instanceof WrappingType ||
178 178
                 self::getNamedType($type) instanceof InputType
179 179
             );
180 180
     }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         return $type instanceof OutputType &&
207 207
             (
208
-                ! $type instanceof WrappingType ||
208
+                !$type instanceof WrappingType ||
209 209
                 self::getNamedType($type) instanceof OutputType
210 210
             );
211 211
     }
Please login to merge, or discard this patch.
src/Type/Definition/UnionType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function __construct($config)
31 31
     {
32
-        if (! isset($config['name'])) {
32
+        if (!isset($config['name'])) {
33 33
             $config['name'] = $this->tryInferName();
34 34
         }
35 35
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function isPossibleType(Type $type)
53 53
     {
54
-        if (! $type instanceof ObjectType) {
54
+        if (!$type instanceof ObjectType) {
55 55
             return false;
56 56
         }
57 57
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     public function getTypes()
72 72
     {
73 73
         if ($this->types === null) {
74
-            if (! isset($this->config['types'])) {
74
+            if (!isset($this->config['types'])) {
75 75
                 $types = null;
76 76
             } elseif (is_callable($this->config['types'])) {
77 77
                 $types = call_user_func($this->config['types']);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 $types = $this->config['types'];
80 80
             }
81 81
 
82
-            if (! is_array($types)) {
82
+            if (!is_array($types)) {
83 83
                 throw new InvariantViolation(
84 84
                     sprintf(
85 85
                         'Must provide Array of types or a callable which returns such an array for Union %s',
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         parent::assertValid();
121 121
 
122
-        if (! isset($this->config['resolveType'])) {
122
+        if (!isset($this->config['resolveType'])) {
123 123
             return;
124 124
         }
125 125
 
Please login to merge, or discard this patch.
src/Type/Definition/CustomScalarType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             'is also used as an input type, ensure "parseValue" and "parseLiteral" ' .
66 66
             'functions are also provided.'
67 67
         );
68
-        if (! isset($this->config['parseValue']) && ! isset($this->config['parseLiteral'])) {
68
+        if (!isset($this->config['parseValue']) && !isset($this->config['parseLiteral'])) {
69 69
             return;
70 70
         }
71 71
 
Please login to merge, or discard this patch.
src/Type/Definition/EnumType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function __construct($config)
37 37
     {
38
-        if (! isset($config['name'])) {
38
+        if (!isset($config['name'])) {
39 39
             $config['name'] = $this->tryInferName();
40 40
         }
41 41
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $lookup = $this->getNameLookup();
57 57
 
58
-        if (! is_string($name)) {
58
+        if (!is_string($name)) {
59 59
             return null;
60 60
         }
61 61
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     private function getNameLookup()
69 69
     {
70
-        if (! $this->nameLookup) {
70
+        if (!$this->nameLookup) {
71 71
             $lookup = new \ArrayObject();
72 72
             foreach ($this->getValues() as $value) {
73 73
                 $lookup[$value->name] = $value;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $config       = $this->config;
89 89
 
90 90
             if (isset($config['values'])) {
91
-                if (! is_array($config['values'])) {
91
+                if (!is_array($config['values'])) {
92 92
                     throw new InvariantViolation(sprintf('%s values must be an array', $this->name));
93 93
                 }
94 94
                 foreach ($config['values'] as $name => $value) {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $values = $this->getValues();
200 200
         foreach ($values as $value) {
201 201
             Utils::invariant(
202
-                ! isset($value->config['isDeprecated']),
202
+                !isset($value->config['isDeprecated']),
203 203
                 sprintf(
204 204
                     '%s.%s should provide "deprecationReason" instead of "isDeprecated".',
205 205
                     $this->name,
Please login to merge, or discard this patch.
src/Type/Definition/IDType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         if ($value === null) {
45 45
             return 'null';
46 46
         }
47
-        if (! is_scalar($value) && (! is_object($value) || ! method_exists($value, '__toString'))) {
47
+        if (!is_scalar($value) && (!is_object($value) || !method_exists($value, '__toString'))) {
48 48
             throw new Error('ID type cannot represent non scalar value: ' . Utils::printSafe($value));
49 49
         }
50 50
 
Please login to merge, or discard this patch.
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/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/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.