We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 5 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __construct($name = 'globalId') |
||
19 | { |
||
20 | parent::__construct( |
||
21 | $name, |
||
22 | function ($id, $typeName = null) { |
||
23 | $typeNameEmpty = null === $typeName || '""' === $typeName || 'null' === $typeName || 'false' === $typeName; |
||
24 | |||
25 | return sprintf( |
||
26 | '%s::toGlobalId(%s, %s)', |
||
27 | \Overblog\GraphQLBundle\Relay\Node\GlobalId::class, |
||
28 | sprintf($typeNameEmpty ? '$info->parentType->name' : '%s', $typeName), |
||
29 | $id |
||
30 | ); |
||
31 | } |
||
32 | ); |
||
33 | } |
||
34 | } |
||
35 |