Completed
Push — master ( 6dbe16...beb04b )
by WEBEWEB
02:15
created

OSHelper::isWindows()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Helper;
13
14
/**
15
 * OS helper.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\CoreBundle\Helper
19
 */
20
class OSHelper {
21
22
    /**
23
     * Determines if the operating system is Linux.
24
     *
25
     * @return Returns true in case of success, false otherwise.
26
     */
27
    public static function isLinux() {
28
        return !static::isWindows();
29
    }
30
31
    /**
32
     * Determines if the operating system is Windows.
33
     *
34
     * @return Returns true in case of success, false otherwise.
35
     */
36
    public static function isWindows() {
37
        return "\\" === DIRECTORY_SEPARATOR;
38
    }
39
40
}
41