original_string: protected function getExtension($file)
      {
          if (strpos($file, '.') !== false) {
              $tempExt = strtolower(substr($file, strrpos($file, '.') + 1, strlen($file) - strrpos($file, '.')));
              return strtolower(trim($tempExt,'/'));
          }
          return '';
      }
code: protected function getExtension($file)
      {
          if (strpos($file, '.') !== false) {
              $tempExt = strtolower(substr($file, strrpos($file, '.') + 1, strlen($file) - strrpos($file, '.')));
              return strtolower(trim($tempExt,'/'));
          }
          return '';
      }
code_tokens: protected function getExtension ( $ file ) { if ( strpos ( $ file , '.' ) !== false ) { $ tempExt = strtolower ( substr ( $ file , strrpos ( $ file , '.' ) + 1 , strlen ( $ file ) - strrpos ( $ file , '.' ) ) ) ; return strtolower ( trim ( $ tempExt , '/' ) ) ; } return '' ; }
docstring: Returns the extension of a file, lowercase
  
  @param  string  $file
  @return string
docstring_tokens: Returns the extension of a file lowercase