original_string: public function isImageFileExtensionKosher($filename) {
  
          // must have acceptable file extension
          $imageFileExtension = $this->ImagesHelper->filenameWithExtensionOnly($filename);
  
          $haystack = Config::get('lasallecmsfrontend.acceptable_image_extensions_for_uploading');
  
          if (in_array(strtolower($imageFileExtension), $haystack)) {
              return true;
          }
  
          return false;
      }
code: public function isImageFileExtensionKosher($filename) {
  
          // must have acceptable file extension
          $imageFileExtension = $this->ImagesHelper->filenameWithExtensionOnly($filename);
  
          $haystack = Config::get('lasallecmsfrontend.acceptable_image_extensions_for_uploading');
  
          if (in_array(strtolower($imageFileExtension), $haystack)) {
              return true;
          }
  
          return false;
      }
code_tokens: public function isImageFileExtensionKosher ( $ filename ) { // must have acceptable file extension $ imageFileExtension = $ this -> ImagesHelper -> filenameWithExtensionOnly ( $ filename ) ; $ haystack = Config :: get ( 'lasallecmsfrontend.acceptable_image_extensions_for_uploading' ) ; if ( in_array ( strtolower ( $ imageFileExtension ) , $ haystack ) ) { return true ; } return false ; }
docstring: Is the image's extension allowed?
  
  @param  string   $filename         The image's filename
  @return bool
docstring_tokens: Is the image s extension allowed?