Uninflected   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 1
b 0
f 0
dl 0
loc 24
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefault() 0 3 1
A getSingular() 0 3 1
A getPlural() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Inflector\Rules\French;
6
7
use Doctrine\Inflector\Rules\Pattern;
8
9
final class Uninflected
10
{
11
    /**
12
     * @return Pattern[]
13
     */
14 73
    public static function getSingular() : iterable
15
    {
16 73
        yield from self::getDefault();
0 ignored issues
show
Bug Best Practice introduced by
The expression YieldFromNode returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Pattern[].
Loading history...
17 73
    }
18
19
    /**
20
     * @return Pattern[]
21
     */
22 73
    public static function getPlural() : iterable
23
    {
24 73
        yield from self::getDefault();
0 ignored issues
show
Bug Best Practice introduced by
The expression YieldFromNode returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Pattern[].
Loading history...
25 73
    }
26
27
    /**
28
     * @return Pattern[]
29
     */
30 73
    private static function getDefault() : iterable
31
    {
32 73
        yield new Pattern('');
0 ignored issues
show
Bug Best Practice introduced by
The expression yield new Doctrine\Inflector\Rules\Pattern('') returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Pattern[].
Loading history...
33 73
    }
34
}
35