Failed Conditions
Pull Request — master (#569)
by Max
08:35
created
tests/Validator/KnownDirectivesTest.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@  discard block
 block discarded – undo
32 32
         ');
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $sdlString
37
+     * @param Schema $schema
38
+     */
35 39
     private function expectSDLErrors($sdlString, $schema = null, $errors = [])
36 40
     {
37 41
         return $this->expectSDLErrorsFromRule(new KnownDirectives(), $sdlString, $schema, $errors);
@@ -97,6 +101,11 @@  discard block
 block discarded – undo
97 101
         );
98 102
     }
99 103
 
104
+    /**
105
+     * @param string $directiveName
106
+     * @param integer $line
107
+     * @param integer $column
108
+     */
100 109
     private function unknownDirective($directiveName, $line, $column)
101 110
     {
102 111
         return FormattedError::create(
@@ -320,6 +329,12 @@  discard block
 block discarded – undo
320 329
         );
321 330
     }
322 331
 
332
+    /**
333
+     * @param string $directiveName
334
+     * @param string $placement
335
+     * @param integer $line
336
+     * @param integer $column
337
+     */
323 338
     private function misplacedDirective($directiveName, $placement, $line, $column)
324 339
     {
325 340
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/KnownFragmentNamesTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -70,6 +70,11 @@
 block discarded – undo
70 70
         );
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $fragName
75
+     * @param integer $line
76
+     * @param integer $column
77
+     */
73 78
     private function undefFrag($fragName, $line, $column)
74 79
     {
75 80
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/KnownTypeNamesTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -57,6 +57,11 @@
 block discarded – undo
57 57
         );
58 58
     }
59 59
 
60
+    /**
61
+     * @param string $typeName
62
+     * @param integer $line
63
+     * @param integer $column
64
+     */
60 65
     private function unknownType($typeName, $suggestedTypes, $line, $column)
61 66
     {
62 67
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/LoneAnonymousOperationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -100,6 +100,10 @@
 block discarded – undo
100 100
         );
101 101
     }
102 102
 
103
+    /**
104
+     * @param integer $line
105
+     * @param integer $column
106
+     */
103 107
     private function anonNotAlone($line, $column)
104 108
     {
105 109
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/LoneSchemaDefinitionTest.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -11,11 +11,19 @@  discard block
 block discarded – undo
11 11
 
12 12
 class LoneSchemaDefinitionTest extends ValidatorTestCase
13 13
 {
14
+    /**
15
+     * @param string $sdlString
16
+     * @param \GraphQL\Type\Schema $schema
17
+     */
14 18
     private function expectSDLErrors($sdlString, $schema = null, $errors = [])
15 19
     {
16 20
         return $this->expectSDLErrorsFromRule(new LoneSchemaDefinition(), $sdlString, $schema, $errors);
17 21
     }
18 22
 
23
+    /**
24
+     * @param integer $line
25
+     * @param integer $column
26
+     */
19 27
     private function schemaDefinitionNotAlone($line, $column)
20 28
     {
21 29
         return FormattedError::create(
@@ -24,6 +32,10 @@  discard block
 block discarded – undo
24 32
         );
25 33
     }
26 34
 
35
+    /**
36
+     * @param integer $line
37
+     * @param integer $column
38
+     */
27 39
     private function canNotDefineSchemaWithinExtension($line, $column)
28 40
     {
29 41
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/NoFragmentCyclesTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -106,6 +106,11 @@
 block discarded – undo
106 106
         );
107 107
     }
108 108
 
109
+    /**
110
+     * @param string $fargment
111
+     * @param integer $line
112
+     * @param integer $column
113
+     */
109 114
     private function cycleError($fargment, $spreadNames, $line, $column)
110 115
     {
111 116
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/NoUndefinedVariablesTest.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -180,6 +180,14 @@
 block discarded – undo
180 180
         );
181 181
     }
182 182
 
183
+    /**
184
+     * @param string $varName
185
+     * @param integer $line
186
+     * @param integer $column
187
+     * @param string $opName
188
+     * @param integer $l2
189
+     * @param integer $c2
190
+     */
183 191
     private function undefVar($varName, $line, $column, $opName = null, $l2 = null, $c2 = null)
184 192
     {
185 193
         $locs = [new SourceLocation($line, $column)];
Please login to merge, or discard this patch.
tests/Validator/NoUnusedFragmentsTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -115,6 +115,11 @@
 block discarded – undo
115 115
         );
116 116
     }
117 117
 
118
+    /**
119
+     * @param string $fragName
120
+     * @param integer $line
121
+     * @param integer $column
122
+     */
118 123
     private function unusedFrag($fragName, $line, $column)
119 124
     {
120 125
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/NoUnusedVariablesTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -158,6 +158,12 @@
 block discarded – undo
158 158
         );
159 159
     }
160 160
 
161
+    /**
162
+     * @param string $varName
163
+     * @param null|string $opName
164
+     * @param integer $line
165
+     * @param integer $column
166
+     */
161 167
     private function unusedVar($varName, $opName, $line, $column)
162 168
     {
163 169
         return FormattedError::create(
Please login to merge, or discard this patch.