Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file uploads #222

Merged
merged 1 commit into from
Mar 9, 2019
Merged

Fix file uploads #222

merged 1 commit into from
Mar 9, 2019

Conversation

tvaughan73
Copy link
Contributor

Attaching files to an issue does not work. Before this fix, the file redmine would attach to an issue would be empty because the curl opts to add the file are missing.
The necessary curl opts have been added for the file to be read into the body of the request.

@kbsali
Copy link
Owner

kbsali commented Mar 5, 2019

thanks for the fix,
could you php-cs-fix the code please?

@tvaughan73
Copy link
Contributor Author

Sorry, no, I do not have time to figure out how to use that. If you want your library fixed you can either fix the style yourself, or deny the PR and have broken code.

@tvaughan73
Copy link
Contributor Author

So I went through all the trouble to figure out how to use php-cs-fix and it did not find anything wrong. So, what is it that you want changed??

@kbsali
Copy link
Owner

kbsali commented Mar 9, 2019

Sorry, no, I do not have time to figure out how to use that.

Sorry, this is a library I created years ago for a very specific need and thought I could share the work with the community. I haven't used Redmine for years now, how would it sound if I'd say "I do not have time to work on this now"?

If you want your library fixed you can either fix the style yourself, or deny the PR and have broken code.

It's great fixing code, I appreciate! To me code style is equally important ! So yes, I'd rather have broken code than merging code not following the cs standard of the lib. I could indeed fix it myself, that's probably what I'll end up doing, and I won't get a penny for it (are you getting paid for using this library?).

So I went through all the trouble to figure out how to use php-cs-fix and it did not find anything wrong. So, what is it that you want changed??

Sorry about getting you go through all the trouble of using a tool that, I think, you should use in every single PHP project you work on. It's not much that needed fixing, as said above, I'll fix it myself!

My final recommendation is that you might consider forking all the "buggy, open source free" libraries you use out there and use those forks in your projects! You'll benefit from you fixes right away and won't need to "go through all the trouble" of following the library's standards.

Thanks for you help! ;)

@kbsali kbsali merged commit fa7d5fb into kbsali:master Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants