original_string: public function getFilenameController($filename)
      {
          $filename = strtolower(basename($filename));
          if (preg_match('/^respondent/', $filename)) {
              return 'respondent';
          }
          if (preg_match('/^appointment/', $filename)) {
              return 'calendar';
          }
  
          return false;
      }
code: public function getFilenameController($filename)
      {
          $filename = strtolower(basename($filename));
          if (preg_match('/^respondent/', $filename)) {
              return 'respondent';
          }
          if (preg_match('/^appointment/', $filename)) {
              return 'calendar';
          }
  
          return false;
      }
code_tokens: public function getFilenameController ( $ filename ) { $ filename = strtolower ( basename ( $ filename ) ) ; if ( preg_match ( '/^respondent/' , $ filename ) ) { return 'respondent' ; } if ( preg_match ( '/^appointment/' , $ filename ) ) { return 'calendar' ; } return false ; }
docstring: Get the controller that should be linked to the filename
  
  @param string $filename Name of file to import
  @return string or false if none found.
docstring_tokens: Get the controller that should be linked to the filename