protected function addDefaultRules()
    {
        if ($this->isProduction) {
            $this->collection->addUserAgentRules((new UserAgentRule('*'))->setAllow(['/']));
        } else {
            $this->collection->addUserAgentRules((new UserAgentRule('*'))->setDisallow(['/']));
        }
    }
protected function addDefaultRules()
    {
        if ($this->isProduction) {
            $this->collection->addUserAgentRules((new UserAgentRule('*'))->setAllow(['/']));
        } else {
            $this->collection->addUserAgentRules((new UserAgentRule('*'))->setDisallow(['/']));
        }
    }
protected function addDefaultRules ( ) { if ( $ this -> isProduction ) { $ this -> collection -> addUserAgentRules ( ( new UserAgentRule ( '*' ) ) -> setAllow ( [ '/' ] ) ) ; } else { $ this -> collection -> addUserAgentRules ( ( new UserAgentRule ( '*' ) ) -> setDisallow ( [ '/' ] ) ) ; } }
Add default rules environment-dependant.
Add default rules environment - dependant .