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

InvalidConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A credentialsJsonMissing() 0 6 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