original_string: public function fieldNameFilter($str)
      {
          $path = explode('.', rtrim($str, '.'));
  
          return array_shift($path) . ($path ? '[' . implode('][', $path) . ']' : '');
      }
code: public function fieldNameFilter($str)
      {
          $path = explode('.', rtrim($str, '.'));
  
          return array_shift($path) . ($path ? '[' . implode('][', $path) . ']' : '');
      }
code_tokens: public function fieldNameFilter ( $ str ) { $ path = explode ( '.' , rtrim ( $ str , '.' ) ) ; return array_shift ( $ path ) . ( $ path ? '[' . implode ( '][' , $ path ) . ']' : '' ) ; }
docstring: Filters field name by changing dot notation into array notation.
  
  @param  string $str
  
  @return string
docstring_tokens: Filters field name by changing dot notation into array notation .