We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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()) { |
@@ -61,6 +61,9 @@ discard block |
||
| 61 | 61 | self::$fieldBuilderClassMap[$name] = $fieldBuilderClass; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | + /** |
|
| 65 | + * @param string $type |
|
| 66 | + */ |
|
| 64 | 67 | protected static function checkBuilderClass($builderClass, $type) |
| 65 | 68 | { |
| 66 | 69 | $interface = MappingInterface::class; |
@@ -123,6 +126,9 @@ discard block |
||
| 123 | 126 | throw new InvalidConfigurationException(sprintf('%s builder "%s" not found.', ucfirst($type), $name)); |
| 124 | 127 | } |
| 125 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $name |
|
| 131 | + */ |
|
| 126 | 132 | protected function outputFieldsSelection($name) |
| 127 | 133 | { |
| 128 | 134 | $builder = new TreeBuilder(); |
@@ -64,7 +64,13 @@ |
||
| 64 | 64 | |
| 65 | 65 | abstract protected function getTagName(); |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @return string |
|
| 69 | + */ |
|
| 67 | 70 | abstract protected function getResolverServiceID(); |
| 68 | 71 | |
| 72 | + /** |
|
| 73 | + * @return string |
|
| 74 | + */ |
|
| 69 | 75 | abstract protected function getParameterName(); |
| 70 | 76 | } |
@@ -162,6 +162,9 @@ |
||
| 162 | 162 | ->end(); |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string $typeToTreat |
|
| 167 | + */ |
|
| 165 | 168 | private function relayNormalizer($typeToTreat, $definitionBuilderClass) |
| 166 | 169 | { |
| 167 | 170 | 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() |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | trait DIContainerMockTrait |
| 22 | 22 | { |
| 23 | + /** |
|
| 24 | + * @return null|\Symfony\Component\DependencyInjection\ContainerInterface |
|
| 25 | + */ |
|
| 23 | 26 | private function getDIContainerMock(array $services = [], array $parameters = []) |
| 24 | 27 | { |
| 25 | 28 | $container = $this->getMockBuilder(Container::class) |
@@ -123,6 +123,10 @@ |
||
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string|null $className |
|
| 128 | + * @param boolean $withMethod |
|
| 129 | + */ |
|
| 126 | 130 | private function addDefinitionTagsFromAliasesMethod(Definition $definition, $className, $tagName, $withMethod) |
| 127 | 131 | { |
| 128 | 132 | // from getAliases |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | // from config |
| 71 | 71 | $typesMappings = array_filter(array_map( |
| 72 | 72 | function (array $typeMapping) use ($container) { |
| 73 | - $params = $this->detectFilesByType($container, $typeMapping['dir'], $typeMapping['type']); |
|
| 73 | + $params = $this->detectFilesByType($container, $typeMapping['dir'], $typeMapping['type']); |
|
| 74 | 74 | |
| 75 | 75 | return $params; |
| 76 | 76 | }, |