FirebaseFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Richdynamix\LaravelFirebase;
4
5
use Kreait\Firebase\Factory;
6
use Kreait\Firebase\ServiceAccount;
7
8
class FirebaseFactory
9
{
10
    public static function create(ServiceAccount $serviceAccount, array $config)
11
    {
12
        return (new Factory)
13
            ->withServiceAccount($serviceAccount)
14
            ->withDatabaseUri($config['database_uri'])
15
            ->create();
16
    }
17
}
18