Completed
Push — master ( 9741f9...ba20bf )
by Steven
16:13 queued 11:18
created

InvalidConfig::credentialsJsonMissing()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Richdynamix\LaravelFirebase\Exceptions;
4
5
use Exception;
6
7
class InvalidConfig extends Exception
8
{
9
    /**
10
     * @param  string  $path
11
     *
12
     * @return InvalidConfig
13
     */
14
    public static function credentialsJsonMissing(string $path)
15
    {
16
        return new static(
17
            "Could not find a credentials file at `{$path}`."
18
        );
19
    }
20
}
21