original_string: public function doItBaby()
      {
  
          if (
          	EnvironmentLabel::$plugin->getSettings()->showLabel
  			&& Craft::$app->getRequest()->isCpRequest
  			&& Craft::$app->getUser()->getIdentity()
  		) {
  			$view = Craft::$app->getView();
  			$view->registerCss($this->getCss());
  			$view->registerCss("{$this->getTargetSelector()} { content: '{$this->getRenderedText()}'; }");
  			$view->registerJs($this->getJs());
          }
  
      }
code: public function doItBaby()
      {
  
          if (
          	EnvironmentLabel::$plugin->getSettings()->showLabel
  			&& Craft::$app->getRequest()->isCpRequest
  			&& Craft::$app->getUser()->getIdentity()
  		) {
  			$view = Craft::$app->getView();
  			$view->registerCss($this->getCss());
  			$view->registerCss("{$this->getTargetSelector()} { content: '{$this->getRenderedText()}'; }");
  			$view->registerJs($this->getJs());
          }
  
      }
code_tokens: public function doItBaby ( ) { if ( EnvironmentLabel :: $ plugin -> getSettings ( ) -> showLabel && Craft :: $ app -> getRequest ( ) -> isCpRequest && Craft :: $ app -> getUser ( ) -> getIdentity ( ) ) { $ view = Craft :: $ app -> getView ( ) ; $ view -> registerCss ( $ this -> getCss ( ) ) ; $ view -> registerCss ( "{$this->getTargetSelector()} { content: '{$this->getRenderedText()}'; }" ) ; $ view -> registerJs ( $ this -> getJs ( ) ) ; } }
docstring: If we're in an authenticated CP request, the label is added to the CP,
  and some JS variables are injected for convenience debugging things in the console.
docstring_tokens: If we re in an authenticated CP request the label is added to the CP and some JS variables are injected for convenience debugging things in the console .