StringComparer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A compare() 0 4 1
1
<?php
2
3
// Copyright (c) Lellys Informática. All rights reserved. See License.txt in the project root for license information.
4
namespace Collections\Comparer;
5
6
use Collections\Generic\ComparerInterface;
7
8
/**
9
 * Represents a string comparison operation that uses specific case and culture-based or ordinal comparison rules.
10
 */
11
class StringComparer implements ComparerInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function compare($first, $second)
17
    {
18
        return strcmp($first, $second);
19
    }
20
}
21