Skip to content

Commit 501914a

Browse files
committed
Don't rely on helper functions
1 parent b0811ee commit 501914a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/HashidsFactory.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace Vinkla\Hashids;
1515

1616
use Hashids\Hashids;
17+
use Illuminate\Support\Arr;
1718

1819
/**
1920
* This is the Hashids factory class.
@@ -48,9 +49,9 @@ public function make(array $config): Hashids
4849
protected function getConfig(array $config): array
4950
{
5051
return [
51-
'salt' => array_get($config, 'salt', ''),
52-
'length' => array_get($config, 'length', 0),
53-
'alphabet' => array_get($config, 'alphabet', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'),
52+
'salt' => Arr::get($config, 'salt', ''),
53+
'length' => Arr::get($config, 'length', 0),
54+
'alphabet' => Arr::get($config, 'alphabet', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'),
5455
];
5556
}
5657

0 commit comments

Comments
 (0)