original_string: protected function _normalizeTableColumns($columns)
      {
          $_defaults = [
              'get' => false,
              'before' => '',
              'after' => '',
          ];
          $result = [];
  
          foreach ($columns as $name => $options) {
              if (is_array($options)) {
                  $_defaults['get'] = $name;
                  $result[$name] = array_merge($_defaults, $options);
              } else {
                  $_defaults['get'] = $options;
                  $result[$options] = $_defaults;
              }
          }
          return $result;
      }
code: protected function _normalizeTableColumns($columns)
      {
          $_defaults = [
              'get' => false,
              'before' => '',
              'after' => '',
          ];
          $result = [];
  
          foreach ($columns as $name => $options) {
              if (is_array($options)) {
                  $_defaults['get'] = $name;
                  $result[$name] = array_merge($_defaults, $options);
              } else {
                  $_defaults['get'] = $options;
                  $result[$options] = $_defaults;
              }
          }
          return $result;
      }
code_tokens: protected function _normalizeTableColumns ( $ columns ) { $ _defaults = [ 'get' => false , 'before' => '' , 'after' => '' , ] ; $ result = [ ] ; foreach ( $ columns as $ name => $ options ) { if ( is_array ( $ options ) ) { $ _defaults [ 'get' ] = $ name ; $ result [ $ name ] = array_merge ( $ _defaults , $ options ) ; } else { $ _defaults [ 'get' ] = $ options ; $ result [ $ options ] = $ _defaults ; } } return $ result ; }
docstring: Normalizes the tablecolumns-array.
  
  @param array $columns Columns to normalize.
  @return array
docstring_tokens: Normalizes the tablecolumns - array .