Passed
Push — master ( 1b58c8...5bb8d0 )
by Aleksandr
02:30
created

os_prefix()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 1
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
if (!function_exists('os_prefix')) {
4
    /**
5
     * Getting prefix from operation system name.
6
     *
7
     * @return string
8
     */
9
    function os_prefix()
10
    {
11
        return strtoupper(substr(PHP_OS, 0, 3));
12
    }
13
}