We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * @param Argument|array $args |
|
| 132 | + * @param Argument $args |
|
| 133 | 133 | * |
| 134 | 134 | * @return Argument |
| 135 | 135 | */ |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @return string |
|
| 57 | + */ |
|
| 55 | 58 | private function guessTagName(Definition $definition) |
| 56 | 59 | { |
| 57 | 60 | $tagName = null; |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | return $this->cache[$alias]; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $alias |
|
| 32 | + */ |
|
| 30 | 33 | private function string2Type($alias) |
| 31 | 34 | { |
| 32 | 35 | if (false !== ($type = $this->wrapTypeIfNeeded($alias))) { |
@@ -468,7 +468,7 @@ |
||
| 468 | 468 | /** |
| 469 | 469 | * Parse annotation |
| 470 | 470 | * |
| 471 | - * @param mixed $annotation |
|
| 471 | + * @param mixed $annotations |
|
| 472 | 472 | * |
| 473 | 473 | * @return array |
| 474 | 474 | */ |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | throw new \Exception('In order to use annotation, you need to require doctrine ORM'); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - $loader = require __DIR__ . '/../../../../autoload.php'; |
|
| 20 | + $loader = require __DIR__.'/../../../../autoload.php'; |
|
| 21 | 21 | |
| 22 | 22 | \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass')); |
| 23 | 23 | \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(__DIR__.'/../../Annotation/GraphQLAnnotation.php'); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $entityName = substr($file->getFilename(), 0, -4); |
| 43 | 43 | if (preg_match('#namespace (.+);#', $fileContent, $namespace)) { |
| 44 | - $className = $namespace[1] . '\\' . $entityName; |
|
| 44 | + $className = $namespace[1].'\\'.$entityName; |
|
| 45 | 45 | } else { |
| 46 | 46 | $className = $entityName; |
| 47 | 47 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $alias => [ |
| 117 | 117 | 'type' => 'enum', |
| 118 | 118 | 'config' => [ |
| 119 | - 'description' => $entityName . ' type', |
|
| 119 | + 'description' => $entityName.' type', |
|
| 120 | 120 | ], |
| 121 | 121 | ] |
| 122 | 122 | ]; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $alias => [ |
| 187 | 187 | 'type' => $type, |
| 188 | 188 | 'config' => [ |
| 189 | - 'description' => $entityName . ' type', |
|
| 189 | + 'description' => $entityName.' type', |
|
| 190 | 190 | 'fields' => [], |
| 191 | 191 | ], |
| 192 | 192 | ] |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | $type = explode('\\', $type); |
| 297 | - $type = $type[count($type)-1]; |
|
| 297 | + $type = $type[count($type) - 1]; |
|
| 298 | 298 | |
| 299 | 299 | // Get the graphQL type representation |
| 300 | 300 | // Specific case for ID and relation |