| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 3 | public function __construct(array $config = []) |
|
| 31 | { |
||
| 32 | 3 | $options = Arr::only($config, ['characters']); |
|
| 33 | 3 | if (extension_loaded('gmp')) { |
|
| 34 | 3 | $this->base62 = new GmpEncoder($options); |
|
| 35 | 3 | } else { |
|
| 36 | $this->base62 = new PhpEncoder($options); |
||
| 37 | } |
||
| 38 | |||
| 39 | 3 | $this->integer = Arr::get($config, 'integer', $this->integer); |
|
| 40 | 3 | } |
|
| 41 | |||
| 64 |