-
Notifications
You must be signed in to change notification settings - Fork 129
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
Repairing BASE64 encoded vCard version 3 #441
Conversation
Codecov Report
@@ Coverage Diff @@
## master #441 +/- ##
============================================
+ Coverage 98.87% 98.87% +<.01%
- Complexity 1809 1811 +2
============================================
Files 65 65
Lines 5160 5168 +8
============================================
+ Hits 5102 5110 +8
Misses 58 58
Continue to review full report at Codecov.
|
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.
Looks great. Thank you very much. I added 2 tiny tweaks that you can accept right from the review (if you want them).
What's the point of the "offsetSet" function if you're not using it ? Just wondering. Also the identity operator shouldn't be necessary in this case, as strtoupper() always returns a string, but I guess it doesn't hurt. Applying the changes. Do you think we can see this merged in anytime soon ? |
Co-Authored-By: Webbeh <info@geeq.ch>
The
Apparently it's slightly faster, but it's probably negligible. As a general rule I find that using string comparisons ( In this case neither of my suggestions actually did anything, it's just small stuff to help guard consistency. I also never used the 'suggest' feature before so I hoped you could just accept the suggestion with the click of a button ;) |
It was not just "one click" but close enough :P Did you have to override the offsetSet method ? I don't see what more it could do compared to standard arrays. Yeah I know, it was just for consistency. It makes sense than the identity operator is slightly faster, since it doesn't have to bother with type casting. However, I'm assuming that if you provide two identical objects (let's say two strings with the value of "foo"), it still has to check whether the type is the same in both cases : in this one to check whether it's actually the same type or not, and with the equality operator to check whether to cast the object or not. Thanks for the merge ! |
Follow up of
#415
Repairs vCards in V3 that have a BASE64 encoding.