original_string: protected function _mapAliases() {
          return $this->cache(__METHOD__, function() {
              $query = $this->getQuery();
  
              if (!$query) {
                  return [];
              }
  
              $alias = $query->getAlias();
              $map = [
                  $query->getTable() => $alias,
                  strtolower($alias) => $alias
              ];
  
              foreach ($query->getJoins() as $join) {
                  $joinAlias = $join->getAlias();
  
                  $map[$join->getTable()] = $joinAlias;
                  $map[strtolower($joinAlias)] = $joinAlias;
              }
  
              return $map;
          });
      }
code: protected function _mapAliases() {
          return $this->cache(__METHOD__, function() {
              $query = $this->getQuery();
  
              if (!$query) {
                  return [];
              }
  
              $alias = $query->getAlias();
              $map = [
                  $query->getTable() => $alias,
                  strtolower($alias) => $alias
              ];
  
              foreach ($query->getJoins() as $join) {
                  $joinAlias = $join->getAlias();
  
                  $map[$join->getTable()] = $joinAlias;
                  $map[strtolower($joinAlias)] = $joinAlias;
              }
  
              return $map;
          });
      }
code_tokens: protected function _mapAliases ( ) { return $ this -> cache ( __METHOD__ , function ( ) { $ query = $ this -> getQuery ( ) ; if ( ! $ query ) { return [ ] ; } $ alias = $ query -> getAlias ( ) ; $ map = [ $ query -> getTable ( ) => $ alias , strtolower ( $ alias ) => $ alias ] ; foreach ( $ query -> getJoins ( ) as $ join ) { $ joinAlias = $ join -> getAlias ( ) ; $ map [ $ join -> getTable ( ) ] = $ joinAlias ; $ map [ strtolower ( $ joinAlias ) ] = $ joinAlias ; } return $ map ; } ) ; }
docstring: Return a mapping of table to alias for the primary table and joins.
  
  @return array
docstring_tokens: Return a mapping of table to alias for the primary table and joins .