original_string: protected function getDatabaseList($database)
      {
          $databases = $database;
  
          if( is_array(($database[0] ?? NULL)) )
          {
              $databases = $database[0];
          }
  
          if( empty($database) )
          {
              $databases = $this->tool->listDatabases();
          }
  
          return $databases;
      }
code: protected function getDatabaseList($database)
      {
          $databases = $database;
  
          if( is_array(($database[0] ?? NULL)) )
          {
              $databases = $database[0];
          }
  
          if( empty($database) )
          {
              $databases = $this->tool->listDatabases();
          }
  
          return $databases;
      }
code_tokens: protected function getDatabaseList ( $ database ) { $ databases = $ database ; if ( is_array ( ( $ database [ 0 ] ?? NULL ) ) ) { $ databases = $ database [ 0 ] ; } if ( empty ( $ database ) ) { $ databases = $ this -> tool -> listDatabases ( ) ; } return $ databases ; }
docstring: Protected get database list
docstring_tokens: Protected get database list