We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -121,6 +121,9 @@ |
||
| 121 | 121 | return $node; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param string $name |
|
| 126 | + */ |
|
| 124 | 127 | private function addFieldsSelection($name, $enabledBuilder = true) |
| 125 | 128 | { |
| 126 | 129 | $builder = new TreeBuilder(); |
@@ -13,6 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | trait DIContainerMockTrait |
| 15 | 15 | { |
| 16 | + /** |
|
| 17 | + * @return null|\Symfony\Component\DependencyInjection\ContainerInterface |
|
| 18 | + */ |
|
| 16 | 19 | private function getDIContainerMock(array $services = [], array $parameters = []) |
| 17 | 20 | { |
| 18 | 21 | $container = $this->getMock('Symfony\\Component\\DependencyInjection\\Container', ['get', 'getParameter', 'has']); |
@@ -247,6 +247,9 @@ discard block |
||
| 247 | 247 | return $type; |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | + /** |
|
| 251 | + * @param callable $expression |
|
| 252 | + */ |
|
| 250 | 253 | private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null) |
| 251 | 254 | { |
| 252 | 255 | return function () use ($expression, $resolveCallback) { |
@@ -277,6 +280,10 @@ discard block |
||
| 277 | 280 | case is_array($result) || $result instanceof \ArrayAccess: |
| 278 | 281 | $result = array_filter( |
| 279 | 282 | array_map( |
| 283 | + |
|
| 284 | + /** |
|
| 285 | + * @param callable $object |
|
| 286 | + */ |
|
| 280 | 287 | function ($object) use ($checkAccess) { |
| 281 | 288 | return $checkAccess($object) ? $object : null; |
| 282 | 289 | }, |
@@ -287,6 +294,10 @@ discard block |
||
| 287 | 294 | |
| 288 | 295 | case $result instanceof Connection: |
| 289 | 296 | $result->edges = array_map( |
| 297 | + |
|
| 298 | + /** |
|
| 299 | + * @param callable $edge |
|
| 300 | + */ |
|
| 290 | 301 | function (Edge $edge) use ($checkAccess) { |
| 291 | 302 | $edge->node = $checkAccess($edge->node) ? $edge->node : null; |
| 292 | 303 | |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | * |
| 184 | 184 | * @see https://jtreminio.com/2013/03/unit-testing-tutorial-part-3-testing-protected-private-methods-coverage-reports-and-crap/ |
| 185 | 185 | * |
| 186 | - * @param object $object Instantiated object that we will run method on. |
|
| 186 | + * @param ConfigResolver $object Instantiated object that we will run method on. |
|
| 187 | 187 | * @param string $methodName Method name to call |
| 188 | 188 | * @param array $parameters Array of parameters to pass into method. |
| 189 | 189 | * |