Completed
Pull Request — master (#196)
by
unknown
02:54
created
src/Parser/Tokenizer.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -194,6 +194,9 @@  discard block
 block discarded – undo
194 194
         return new Token($this->getKeyword($value), $this->getLine(), $this->getColumn(), $value);
195 195
     }
196 196
 
197
+    /**
198
+     * @param string $name
199
+     */
197 200
     protected function getKeyword($name)
198 201
     {
199 202
         switch ($name) {
@@ -273,6 +276,9 @@  discard block
 block discarded – undo
273 276
         }
274 277
     }
275 278
 
279
+    /**
280
+     * @param string $message
281
+     */
276 282
     protected function createException($message)
277 283
     {
278 284
         return new SyntaxErrorException(sprintf('%s', $message), $this->getLocation());
Please login to merge, or discard this patch.
Tests/Parser/ParserTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
24 24
 use Youshido\GraphQL\Parser\Token;
25 25
 
26 26
 class TokenizerTestingParser extends Parser {
27
+
28
+    /**
29
+     * @param string $source
30
+     */
27 31
     public function initTokenizerForTesting($source) {
28 32
         $this->initTokenizer($source);
29 33
     }
@@ -102,6 +106,9 @@  discard block
 block discarded – undo
102 106
         ]);
103 107
     }
104 108
 
109
+    /**
110
+     * @param string $graphQLString
111
+     */
105 112
     private function tokenizeStringContents($graphQLString) {
106 113
         $parser = new TokenizerTestingParser();
107 114
         $parser->initTokenizerForTesting('"' . $graphQLString . '"');
Please login to merge, or discard this patch.