AdjustQuotes::adjustQuotes()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 2
nc 2
nop 1
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