-
Notifications
You must be signed in to change notification settings - Fork 27
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
Some Mode field can be strings #28
Conversation
@yupmin could you check if it's look good to you? |
|
||
return $mode; | ||
return new Mode($rateMode[0], $rateMode[1]); |
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.
cs
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.
@GrahamCampbell what is the issue?
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.
there should be exactly one space following return
, not two
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.
Oh nice catch!
4787f7f
to
b6dd4e5
Compare
@GrahamCampbell thanks for review |
* | ||
* @return Mode | ||
*/ | ||
public function create($rateMode) | ||
{ | ||
$rateMode = (array) $rateMode; | ||
if (!isset($rateMode[1])) { |
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.
would be cleaner to leave a newline before this if statement
@mhor Yes. I Tested this. It works well. |
@yupmin tag as 1.4.3 |
fix #27