original_string: protected function validateFileType($name)
      {
          $extension = strtolower(File::extension($name));
  
          if (!in_array($extension, $this->assetExtensions)) {
              return false;
          }
  
          return true;
      }
code: protected function validateFileType($name)
      {
          $extension = strtolower(File::extension($name));
  
          if (!in_array($extension, $this->assetExtensions)) {
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateFileType ( $ name ) { $ extension = strtolower ( File :: extension ( $ name ) ) ; if ( ! in_array ( $ extension , $ this -> assetExtensions ) ) { return false ; } return true ; }
docstring: Check for valid asset file extension
  @param string
  @return bool
docstring_tokens: Check for valid asset file extension