-
-
Notifications
You must be signed in to change notification settings - Fork 4
Improvements based on "Plugin Include Component Plugin" #1
Conversation
@@ -73,6 +73,9 @@ public function request($method, JUri $uri, $data = null, array $headers = null, | |||
// If data exists let's encode it and make sure our Content-type header is set. | |||
if (isset($data)) | |||
{ | |||
// Enable Post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need to set the CURLOPT_POST constant. The method is being set a few lines above with the CURLOPT_CUSTOMREQUEST constant.
Unit testing complete. There were 0 failures and 0 errors from 31 tests and 52 assertions. |
I'm running my own unit test suite and following the Joomla Platform code style standards (makes it easier to merge changes from the Platform in this case and submit the changes once I've made all the changes I need to and test them). Would you mind fixing up the code style as well? FILE: libraries/babdev/http/transport/curl.php FOUND 29 ERROR(S) AND 2 WARNING(S) AFFECTING 15 LINE(S) 76 | ERROR | Tabs must be used to indent lines; spaces are not allowed |
Hi, Sure, This is my first time pushing a change following this guidelines. How do Thanks, |
You just push a new commit to the branch and GitHub automatically adds it to the open pull request. As far as running the tools, this link from the Platform's Manual should help you get everything installed: http://developer.joomla.org/manual/appe-Joomla_Platform_Manual-Analysis.html One other suggestion also would be to go into Eclipse and set the code style settings there to follow the Platform's style as close as possible. For example, using a tab character instead of spaces is the common one that gets people. Once you have Eclipse (or whatever IDE you use) set up with that, you'll notice it's a lot easier to follow the code style rules. A lot of the error messages are useful as well and tell you what exactly the error is and on what line it occurred. |
Hi Mike,
I've just added features from Mike Reumer "Plugin Include Component Plugin".
// Enable Post
curl_setopt($ch, CURLOPT_POST, true);
...
....
Thanks,
Anibal