SilexKitchenEditionGuess::suggestPatterns()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
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