original_string: private function findTableSchemas($schema = null)
      {
          $tableNames = $this->getTableNames($schema, true);
  
          if (is_callable($this->tableNameFilter)) {
              $tableNames = array_filter($tableNames,
                  function($tableName) use ($schema) {
                      return call_user_func($this->tableNameFilter, $tableName, $schema);
                  }
              );
          }
  
          $tableSchemas = array_map(
              function($tableName) use ($schema) {
                  $tableSchema = new TableSchema();
                  $tableNameFull = $schema === null ? $tableName : "$schema.$tableName";
                  $this->resolveTableNames($tableSchema, $tableNameFull);
                  return $tableSchema;
              },
              $tableNames);
  
          return $tableSchemas;
      }
code: private function findTableSchemas($schema = null)
      {
          $tableNames = $this->getTableNames($schema, true);
  
          if (is_callable($this->tableNameFilter)) {
              $tableNames = array_filter($tableNames,
                  function($tableName) use ($schema) {
                      return call_user_func($this->tableNameFilter, $tableName, $schema);
                  }
              );
          }
  
          $tableSchemas = array_map(
              function($tableName) use ($schema) {
                  $tableSchema = new TableSchema();
                  $tableNameFull = $schema === null ? $tableName : "$schema.$tableName";
                  $this->resolveTableNames($tableSchema, $tableNameFull);
                  return $tableSchema;
              },
              $tableNames);
  
          return $tableSchemas;
      }
code_tokens: private function findTableSchemas ( $ schema = null ) { $ tableNames = $ this -> getTableNames ( $ schema , true ) ; if ( is_callable ( $ this -> tableNameFilter ) ) { $ tableNames = array_filter ( $ tableNames , function ( $ tableName ) use ( $ schema ) { return call_user_func ( $ this -> tableNameFilter , $ tableName , $ schema ) ; } ) ; } $ tableSchemas = array_map ( function ( $ tableName ) use ( $ schema ) { $ tableSchema = new TableSchema ( ) ; $ tableNameFull = $ schema === null ? $ tableName : "$schema.$tableName" ; $ this -> resolveTableNames ( $ tableSchema , $ tableNameFull ) ; return $ tableSchema ; } , $ tableNames ) ; return $ tableSchemas ; }
docstring: Searching table schemas in a default or specified schema
  @param string|null $schema
  @return array
docstring_tokens: Searching table schemas in a default or specified schema