| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 48 | protected static function parseInstance($config, $instance) |
|
| 21 | { |
||
| 22 | 48 | if (null === $config) { |
|
| 23 | 48 | return null; |
|
| 24 | } |
||
| 25 | |||
| 26 | 30 | $instance->right = Right::parse($config['right'] ?? null); |
|
| 27 | 30 | $instance->byReference = ParseUtils::parseBool($config['byReference'] ?? null); |
|
| 28 | |||
| 29 | 30 | return $instance; |
|
| 30 | } |
||
| 31 | } |
||
| 32 |