-
Notifications
You must be signed in to change notification settings - Fork 267
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
Closes #978 #979
Closes #978 #979
Conversation
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.
Thanks for your contribution. Review comments:
Please follow our coding guidelines (PSR-2 / 12) in submitted code.
This is a bug, so should be targeted at hotfix/5.22 branch; if you could change target and rebase your branch accordingly, it would be great.
I knew there would be some changes, working on those.
Is there a PHPCodeSniffer rule set somewhere in the repo that I can run against my changes to make sure they are aligned with your coding standards?
Not a Git Ninja here, I may need a little help.
I don't know what I don't know, so I'm letting you know what I don't know. |
I think I have all of the code specific changes, I just need to figure out how to get them to the right branch. and adjust this PR. |
That's a work in progress. You'll find the current state of things at https://github.com/dregad/ADOdb/blob/codesniffer/phpcs.xml.dist if that helps. At the moment the code base is not clean enough that I can easily run the tool against it, and it's a low-priority thing so...
Your feature branch is based on master. The idea is to move the branch to be on top of hotfix/5.22 instead. There's several ways to do this, what I usually do is
Then (assuming you have the branch tracking your Github fork):
That's the easiest part, just click the Edit button next to the pull request's title and change the base Let me know if you need more help |
And if that sounds too difficult, forget about it I can do it myself too |
I was able to add upstream, but can't fetch it.
Permission denied (publickey). Please make sure you have the correct access rights |
I value the learning experience. Not an issue. |
Got it needed to |
88b7f79
to
1465f47
Compare
I "think" we are good to go. |
Here is a piece of phpcs.xml that may help based on the conversations here & the <arg name="tab-width" value="4"/>
<rule ref="Generic.WhiteSpace">
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed" />
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="tabIndent" value="true" />
</properties>
</rule>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120" />
<property name="absoluteLineLimit" value="120" />
</properties>
</rule> |
Will do. Thanks for your efforts, I appreciate the collaboration on this
No, with the fix for #981 it's necessary to prevent an exception from being thrown when the |
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.
- Missing declaration for $ADODB_GETONE_EOF global
- A few coding guidelines issues
- A comment explaining the reason for using
@
would be useful
I'll fix those myself with a follow-up commit.
Thanks
I can't believe I missed that. 🤦♂️
OK, I see what you mean.
You are most welcome, thank you for maintaining ADOdb. 😄 |
Fixes Issue #978