public static function getBuilderName()
    {
        $builderName = null;
        if (self::functionAvailable('exec')) {
            $output = [];
            $success = 0;
            exec('whoami', $output, $success);
            if ($success == 0) {
                $builderName = $output[0];
            }
        }
        if (is_null($builderName)) {
            $builderName = get_current_user();
        }

        return $builderName;
    }
public static function getBuilderName()
    {
        $builderName = null;
        if (self::functionAvailable('exec')) {
            $output = [];
            $success = 0;
            exec('whoami', $output, $success);
            if ($success == 0) {
                $builderName = $output[0];
            }
        }
        if (is_null($builderName)) {
            $builderName = get_current_user();
        }

        return $builderName;
    }
public static function getBuilderName ( ) { $ builderName = null ; if ( self :: functionAvailable ( 'exec' ) ) { $ output = [ ] ; $ success = 0 ; exec ( 'whoami' , $ output , $ success ) ; if ( $ success == 0 ) { $ builderName = $ output [ 0 ] ; } } if ( is_null ( $ builderName ) ) { $ builderName = get_current_user ( ) ; } return $ builderName ; }
Gets the current user's identity for build reporting.

@return string
Gets the current user s identity for build reporting .