SilexKitchenEditionGuess   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A suggestPatterns() 0 8 2
1
<?php
2
3
namespace Openl10n\Cli\File\Guess;
4
5
class SilexKitchenEditionGuess implements PatternGuess
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    public function suggestPatterns($inDir)
11
    {
12
        if (!is_dir($inDir.'/resources/locales')) {
13
            return [];
14
        }
15
16
        return ['resources/locales/<locale>.yml'];
17
    }
18
}
19