AdjustQuotes   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A adjustQuotes() 0 9 2
1
<?php
2
3
namespace Robo\Traits\Common;
4
5
trait AdjustQuotes
6
{
7
    protected function adjustQuotes($expected)
8
    {
9
        $isWindows = defined('PHP_WINDOWS_VERSION_MAJOR');
10
11
        if ($isWindows) {
12
            return strtr($expected, "'", '"');
13
        }
14
        return $expected;
15
    }
16
}
17