public function environment()
    {
        if ($this->environment) {
            return $this->environment;
        }

        if (!$this->environmentProvider) {
            $this->environment = static::PRODUCTION;
            return $this->environment;
        }

        $this->setEnvironment(call_user_func($this->environmentProvider, $this));

        return $this->environment;
    }
public function environment()
    {
        if ($this->environment) {
            return $this->environment;
        }

        if (!$this->environmentProvider) {
            $this->environment = static::PRODUCTION;
            return $this->environment;
        }

        $this->setEnvironment(call_user_func($this->environmentProvider, $this));

        return $this->environment;
    }
public function environment ( ) { if ( $ this -> environment ) { return $ this -> environment ; } if ( ! $ this -> environmentProvider ) { $ this -> environment = static :: PRODUCTION ; return $ this -> environment ; } $ this -> setEnvironment ( call_user_func ( $ this -> environmentProvider , $ this ) ) ; return $ this -> environment ; }
Return the application environment.

@return string
Return the application environment .