| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public static function createInstance(PluggableSchemaBuilder $builder, $definition, $id) { |
||
| 18 | $callable = ['GraphQL\Type\Definition\Type', strtolower($definition['name'])]; |
||
| 19 | if (is_callable($callable)) { |
||
| 20 | return $callable(); |
||
| 21 | } |
||
| 22 | |||
| 23 | return new CustomScalarType($definition); |
||
| 24 | } |
||
| 25 | |||
| 59 |