original_string: protected function parseSchemaAndTable($table)
      {
          $table = explode('.', $table);
  
          if (is_array($schema = $this->connection->getConfig('schema'))) {
              if (in_array($table[0], $schema)) {
                  return [array_shift($table), implode('.', $table)];
              }
  
              $schema = head($schema);
          }
  
          return [$schema ?: 'public', implode('.', $table)];
      }
code: protected function parseSchemaAndTable($table)
      {
          $table = explode('.', $table);
  
          if (is_array($schema = $this->connection->getConfig('schema'))) {
              if (in_array($table[0], $schema)) {
                  return [array_shift($table), implode('.', $table)];
              }
  
              $schema = head($schema);
          }
  
          return [$schema ?: 'public', implode('.', $table)];
      }
code_tokens: protected function parseSchemaAndTable ( $ table ) { $ table = explode ( '.' , $ table ) ; if ( is_array ( $ schema = $ this -> connection -> getConfig ( 'schema' ) ) ) { if ( in_array ( $ table [ 0 ] , $ schema ) ) { return [ array_shift ( $ table ) , implode ( '.' , $ table ) ] ; } $ schema = head ( $ schema ) ; } return [ $ schema ? : 'public' , implode ( '.' , $ table ) ] ; }
docstring: Parse the table name and extract the schema and table.
  
  @param  string  $table
  @return array
docstring_tokens: Parse the table name and extract the schema and table .