Completed
Pull Request — master (#29)
by Tom
03:21 queued 01:05
created

NoMatchingFilesException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromPatterns() 0 9 1
1
<?php
2
3
namespace TomPHP\ConfigServiceProvider\Exception;
4
5
final class NoMatchingFilesException extends \LogicException implements Exception
6
{
7
    use ExceptionFactory;
8
9
    /**
10
     * @param array $patterns
11
     *
12
     * @return self
13
     */
14
    public static function fromPatterns(array $patterns)
15
    {
16
        $patterns = '"' . implode('", "', $patterns) . '"';
17
18
        return self::create(
19
            'No files found matching patterns: [%s].',
20
            $patterns
21
        );
22
    }
23
}
24