-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fixes video title validator #48
base: master
Are you sure you want to change the base?
Conversation
src/Item/Video/VideoItem.php
Outdated
$loc, | ||
$playerEmbedded, | ||
$playerAutoPlay | ||
); |
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.
Whitespace found at end of line
The Travis CI build is failed due to failed assertion. The error message is as follows:
I think this test should be fixed/concerned. |
@@ -65,11 +65,16 @@ public function validateThumbnailLoc($loc) | |||
/** | |||
* @param $title | |||
* | |||
* @return bool | |||
* @return string|false |
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.
I think the return annotation should be type hint.
That is, it should be string|bool
.
Fixes #45
Updates VideoItemValidator:: validateTitle() to return the video title instead of true when the video title is the correct length, and false when it is too long or empty.