File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace BeyondCode \LaravelFavicon ;
4
4
5
+ use Illuminate \Support \Arr ;
6
+
5
7
class Favicon
6
8
{
7
9
/** @var array */
@@ -14,16 +16,16 @@ public function __construct(array $config)
14
16
15
17
public function getFaviconText (string $ environment )
16
18
{
17
- return array_get ($ this ->config , 'enabled_environments. ' .$ environment .'.text ' );
19
+ return Arr:: get ($ this ->config , 'enabled_environments. ' .$ environment .'.text ' );
18
20
}
19
21
20
22
public function getFaviconColor (string $ environment )
21
23
{
22
- return array_get ($ this ->config , 'enabled_environments. ' .$ environment .'.color ' );
24
+ return Arr:: get ($ this ->config , 'enabled_environments. ' .$ environment .'.color ' );
23
25
}
24
26
25
27
public function getFaviconBackgroundColor (string $ environment )
26
28
{
27
- return array_get ($ this ->config , 'enabled_environments. ' .$ environment .'.background_color ' );
29
+ return Arr:: get ($ this ->config , 'enabled_environments. ' .$ environment .'.background_color ' );
28
30
}
29
31
}
You can’t perform that action at this time.
0 commit comments