original_string: protected function parseObserver($observer)
      {
          if (preg_match('([^A-Za-z0-9_/\\\\])', $observer)) {
              throw new InvalidArgumentException('Observer name contains invalid characters.');
          }
  
          $observer = str_replace('/', '\\', $observer);
  
          if (! Str::startsWith($observer, [
              $rootNamespace = $this->laravel->getNamespace(),
              '\\'
          ])) {
              $observer = $rootNamespace . $this->getComponentNamespace()
                  . '\Observers\\'
                  . rtrim($observer, 'Observer') . 'Observer';
          }
  
          return $observer;
      }
code: protected function parseObserver($observer)
      {
          if (preg_match('([^A-Za-z0-9_/\\\\])', $observer)) {
              throw new InvalidArgumentException('Observer name contains invalid characters.');
          }
  
          $observer = str_replace('/', '\\', $observer);
  
          if (! Str::startsWith($observer, [
              $rootNamespace = $this->laravel->getNamespace(),
              '\\'
          ])) {
              $observer = $rootNamespace . $this->getComponentNamespace()
                  . '\Observers\\'
                  . rtrim($observer, 'Observer') . 'Observer';
          }
  
          return $observer;
      }
code_tokens: protected function parseObserver ( $ observer ) { if ( preg_match ( '([^A-Za-z0-9_/\\\\])' , $ observer ) ) { throw new InvalidArgumentException ( 'Observer name contains invalid characters.' ) ; } $ observer = str_replace ( '/' , '\\' , $ observer ) ; if ( ! Str :: startsWith ( $ observer , [ $ rootNamespace = $ this -> laravel -> getNamespace ( ) , '\\' ] ) ) { $ observer = $ rootNamespace . $ this -> getComponentNamespace ( ) . '\Observers\\' . rtrim ( $ observer , 'Observer' ) . 'Observer' ; } return $ observer ; }
docstring: Get the fully-qualified observer class name.
  
  @param  string $observer
  
  @return string
docstring_tokens: Get the fully - qualified observer class name .