Completed
Pull Request — master (#11)
by Eric
21:21 queued 18:00
created

SymfonyInflector   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A singularize() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Serializer package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\Serializer\Inflector;
13
14
use Symfony\Component\Inflector\Inflector;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
class SymfonyInflector implements InflectorInterface
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function singularize($word)
25
    {
26
        return Inflector::singularize($word);
0 ignored issues
show
Bug Compatibility introduced by
The expression \Symfony\Component\Infle...or::singularize($word); of type array|string adds the type array to the return on line 26 which is incompatible with the return type declared by the interface Ivory\Serializer\Inflect...rInterface::singularize of type string.
Loading history...
27
    }
28
}
29