We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 22-24 (lines=3) @@ | ||
| 19 | { |
|
| 20 | public function toMappingDefinition(array $config) |
|
| 21 | { |
|
| 22 | if (!isset($config['idFetcher']) || !is_string($config['idFetcher'])) { |
|
| 23 | throw new \InvalidArgumentException('Node "idFetcher" config is invalid.'); |
|
| 24 | } |
|
| 25 | ||
| 26 | $idFetcher = $this->cleanIdFetcher($config['idFetcher']); |
|
| 27 | $nodeInterfaceType = isset($config['nodeInterfaceType']) && is_string($config['nodeInterfaceType']) ? $config['nodeInterfaceType'] : null; |
|
| @@ 22-24 (lines=3) @@ | ||
| 19 | { |
|
| 20 | public function toMappingDefinition(array $config) |
|
| 21 | { |
|
| 22 | if (!isset($config['argName']) || !is_string($config['argName'])) { |
|
| 23 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "argName" config is required.'); |
|
| 24 | } |
|
| 25 | ||
| 26 | if (!isset($config['inputType']) || !is_string($config['inputType'])) { |
|
| 27 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "inputType" config is required.'); |
|
| @@ 26-28 (lines=3) @@ | ||
| 23 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "argName" config is required.'); |
|
| 24 | } |
|
| 25 | ||
| 26 | if (!isset($config['inputType']) || !is_string($config['inputType'])) { |
|
| 27 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "inputType" config is required.'); |
|
| 28 | } |
|
| 29 | ||
| 30 | if (!isset($config['outputType']) || !is_string($config['outputType'])) { |
|
| 31 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "outputType" config is required.'); |
|
| @@ 30-32 (lines=3) @@ | ||
| 27 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "inputType" config is required.'); |
|
| 28 | } |
|
| 29 | ||
| 30 | if (!isset($config['outputType']) || !is_string($config['outputType'])) { |
|
| 31 | throw new \InvalidArgumentException('A valid pluralIdentifyingRoot "outputType" config is required.'); |
|
| 32 | } |
|
| 33 | ||
| 34 | if (!array_key_exists('resolveSingleInput', $config)) { |
|
| 35 | throw new \InvalidArgumentException('PluralIdentifyingRoot "resolveSingleInput" config is required.'); |
|