original_string: protected function detectRoot()
      {
          $facade = $this->facade;
  
          try {
              //If possible, get the facade root
              if (method_exists($facade, 'getFacadeRoot')) {
                  $root = get_class($facade::getFacadeRoot());
              } else {
                  $root = $facade;
              }
  
              //If it doesn't exist, skip it
              if (!class_exists($root) && !interface_exists($root)) {
                  return;
              }
  
              $this->root = $root;
  
              //When the database connection is not set, some classes will be skipped
          } catch (\PDOException $e) {
              $this->error(
                  "PDOException: " . $e->getMessage() .
                  "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." .
                  " Skipping $facade."
              );
          } catch (\Exception $e) {
              $this->error("Exception: " . $e->getMessage() . "\nSkipping $facade.");
          }
      }
code: protected function detectRoot()
      {
          $facade = $this->facade;
  
          try {
              //If possible, get the facade root
              if (method_exists($facade, 'getFacadeRoot')) {
                  $root = get_class($facade::getFacadeRoot());
              } else {
                  $root = $facade;
              }
  
              //If it doesn't exist, skip it
              if (!class_exists($root) && !interface_exists($root)) {
                  return;
              }
  
              $this->root = $root;
  
              //When the database connection is not set, some classes will be skipped
          } catch (\PDOException $e) {
              $this->error(
                  "PDOException: " . $e->getMessage() .
                  "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." .
                  " Skipping $facade."
              );
          } catch (\Exception $e) {
              $this->error("Exception: " . $e->getMessage() . "\nSkipping $facade.");
          }
      }
code_tokens: protected function detectRoot ( ) { $ facade = $ this -> facade ; try { //If possible, get the facade root if ( method_exists ( $ facade , 'getFacadeRoot' ) ) { $ root = get_class ( $ facade :: getFacadeRoot ( ) ) ; } else { $ root = $ facade ; } //If it doesn't exist, skip it if ( ! class_exists ( $ root ) && ! interface_exists ( $ root ) ) { return ; } $ this -> root = $ root ; //When the database connection is not set, some classes will be skipped } catch ( \ PDOException $ e ) { $ this -> error ( "PDOException: " . $ e -> getMessage ( ) . "\nPlease configure your database connection correctly, or use the sqlite memory driver (-M)." . " Skipping $facade." ) ; } catch ( \ Exception $ e ) { $ this -> error ( "Exception: " . $ e -> getMessage ( ) . "\nSkipping $facade." ) ; } }
docstring: Get the real root of a facade
  
  @return bool|string
docstring_tokens: Get the real root of a facade