protected function fillStandardizedEnvVars(array $env)
    {
        $map = [
            // defined in Ruby lib
            'serviceName' => 'CI_NAME',
            'serviceNumber' => 'CI_BUILD_NUMBER',
            'serviceBuildUrl' => 'CI_BUILD_URL',
            'serviceBranch' => 'CI_BRANCH',
            'servicePullRequest' => 'CI_PULL_REQUEST',

            // extends by php-coveralls
            'serviceJobId' => 'CI_JOB_ID',
            'serviceEventType' => 'COVERALLS_EVENT_TYPE',
            'repoToken' => 'COVERALLS_REPO_TOKEN',
        ];

        foreach ($map as $propName => $envName) {
            if (isset($env[$envName])) {
                $this->$propName = $env[$envName];
            }
        }

        return $this;
    }
protected function fillStandardizedEnvVars(array $env)
    {
        $map = [
            // defined in Ruby lib
            'serviceName' => 'CI_NAME',
            'serviceNumber' => 'CI_BUILD_NUMBER',
            'serviceBuildUrl' => 'CI_BUILD_URL',
            'serviceBranch' => 'CI_BRANCH',
            'servicePullRequest' => 'CI_PULL_REQUEST',

            // extends by php-coveralls
            'serviceJobId' => 'CI_JOB_ID',
            'serviceEventType' => 'COVERALLS_EVENT_TYPE',
            'repoToken' => 'COVERALLS_REPO_TOKEN',
        ];

        foreach ($map as $propName => $envName) {
            if (isset($env[$envName])) {
                $this->$propName = $env[$envName];
            }
        }

        return $this;
    }
protected function fillStandardizedEnvVars ( array $ env ) { $ map = [ // defined in Ruby lib 'serviceName' => 'CI_NAME' , 'serviceNumber' => 'CI_BUILD_NUMBER' , 'serviceBuildUrl' => 'CI_BUILD_URL' , 'serviceBranch' => 'CI_BRANCH' , 'servicePullRequest' => 'CI_PULL_REQUEST' , // extends by php-coveralls 'serviceJobId' => 'CI_JOB_ID' , 'serviceEventType' => 'COVERALLS_EVENT_TYPE' , 'repoToken' => 'COVERALLS_REPO_TOKEN' , ] ; foreach ( $ map as $ propName => $ envName ) { if ( isset ( $ env [ $ envName ] ) ) { $ this -> $ propName = $ env [ $ envName ] ; } } return $ this ; }
Fill standardized environment variables.

"CI_NAME", "CI_BUILD_NUMBER" must be set.

Env vars are:

* CI_NAME
* CI_BUILD_NUMBER
* CI_BUILD_URL
* CI_BRANCH
* CI_PULL_REQUEST

These vars are supported by Codeship.

@param array $env $_SERVER environment

@return $this
Fill standardized environment variables .