Passed
Pull Request — master (#50)
by
unknown
01:19
created

Env::isWindows()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 *
4
 * For the full copyright and license information, please view the
5
 * LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Copyright (c) 2016 Metagûsto <[email protected]>
8
 */
9
10
namespace Asm\Ansible\Utils;
11
12
13
class Env
14
{
15
    /**
16
     * @return bool True if the host machine is running Windows
17
     */
18
    public static function isWindows(): bool
19
    {
20
        return defined('PHP_WINDOWS_VERSION_BUILD');
21
    }
22
}