We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -152,6 +152,10 @@ |
||
152 | 152 | ->end(); |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param string $typeToTreat |
|
157 | + * @param string $definitionBuilderClass |
|
158 | + */ |
|
155 | 159 | private function relayNormalizer($typeToTreat, $definitionBuilderClass) |
156 | 160 | { |
157 | 161 | return function ($types) use ($typeToTreat, $definitionBuilderClass) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ->thenInvalid( |
70 | 70 | sprintf( |
71 | 71 | 'Don\'t use internal config keys %s, replace it by "config" instead.', |
72 | - implode(', ', $configTypeKeys) |
|
72 | + implode(', ', $configTypeKeys) |
|
73 | 73 | ) |
74 | 74 | ) |
75 | 75 | ->end() |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | self::$fieldBuilderClassMap[$name] = $fieldBuilderClass; |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $type |
|
59 | + */ |
|
57 | 60 | protected static function checkBuilderClass($builderClass, $type) |
58 | 61 | { |
59 | 62 | $interface = 'Overblog\\GraphQLBundle\\Definition\\Builder\\MappingInterface'; |
@@ -116,6 +119,9 @@ discard block |
||
116 | 119 | throw new InvalidConfigurationException(sprintf('%s builder "%s" not found.', ucfirst($type), $name)); |
117 | 120 | } |
118 | 121 | |
122 | + /** |
|
123 | + * @param string $name |
|
124 | + */ |
|
119 | 125 | protected function outputFieldsSelection($name) |
120 | 126 | { |
121 | 127 | $builder = new TreeBuilder(); |
@@ -18,6 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | trait DIContainerMockTrait |
20 | 20 | { |
21 | + /** |
|
22 | + * @return null|\Symfony\Component\DependencyInjection\ContainerInterface |
|
23 | + */ |
|
21 | 24 | private function getDIContainerMock(array $services = [], array $parameters = []) |
22 | 25 | { |
23 | 26 | $container = $this->getMockBuilder('Symfony\\Component\\DependencyInjection\\Container') |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $expectedData = [ |
49 | 49 | 'user' => [ |
50 | 50 | 'friends' => [ |
51 | - 'totalCount' => 4, |
|
51 | + 'totalCount' => 4, |
|
52 | 52 | 'edges' => [ |
53 | 53 | [ |
54 | 54 | 'friendshipTime' => 'Yesterday', |
@@ -207,7 +207,7 @@ |
||
207 | 207 | $client->request('POST', $uri, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($data)); |
208 | 208 | $result = $client->getResponse()->getContent(); |
209 | 209 | |
210 | - $expected = [ |
|
210 | + $expected = [ |
|
211 | 211 | ['id' => 'friends', 'payload' => ['data' => $this->expectedData]], |
212 | 212 | ['id' => 'friendsTotalCount', 'payload' => ['data' => ['user' => ['friends' => ['totalCount' => 4]]]]], |
213 | 213 | ]; |
@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | return $treeBuilder; |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $name |
|
167 | + */ |
|
165 | 168 | private function addBuilderSection($name) |
166 | 169 | { |
167 | 170 | $builder = new TreeBuilder(); |
@@ -195,6 +198,9 @@ discard block |
||
195 | 198 | return $node; |
196 | 199 | } |
197 | 200 | |
201 | + /** |
|
202 | + * @param string $name |
|
203 | + */ |
|
198 | 204 | private function addSecurityQuerySection($name, $disabledValue) |
199 | 205 | { |
200 | 206 | $builder = new TreeBuilder(); |
@@ -88,6 +88,9 @@ discard block |
||
88 | 88 | return $this; |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $name |
|
93 | + */ |
|
91 | 94 | public function addSchema($name, Schema $schema) |
92 | 95 | { |
93 | 96 | $this->schemas[$name] = $schema; |
@@ -192,6 +195,11 @@ discard block |
||
192 | 195 | return $this->prepareResult($result, $startTime, $startMemoryUsage); |
193 | 196 | } |
194 | 197 | |
198 | + /** |
|
199 | + * @param ExecutionResult $result |
|
200 | + * @param double $startTime |
|
201 | + * @param integer $startMemoryUsage |
|
202 | + */ |
|
195 | 203 | private function prepareResult($result, $startTime, $startMemoryUsage) |
196 | 204 | { |
197 | 205 | if ($this->hasDebugInfo()) { |
@@ -105,7 +105,7 @@ |
||
105 | 105 | if (!empty($config['definitions']['mappings']['types'])) { |
106 | 106 | $typesMappings = array_filter(array_map( |
107 | 107 | function (array $typeMapping) use ($container) { |
108 | - $params = $this->detectConfigFiles($container, $typeMapping['dir'], $typeMapping['type']); |
|
108 | + $params = $this->detectConfigFiles($container, $typeMapping['dir'], $typeMapping['type']); |
|
109 | 109 | |
110 | 110 | return $params; |
111 | 111 | }, |