Passed
Push — master ( 2cfe4b...767241 )
by Marc
01:19
created

Env   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isWindows() 0 3 1
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
}