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
[Codestyle] Use @link over @see for URL's and use correct return types #15302
Conversation
@@ -350,7 +350,7 @@ protected function _getList($query, $limitstart = 0, $limit = 0) | |||
* @param array $data data | |||
* @param boolean $loadData load current data | |||
* | |||
* @return JForm/false the JForm object or false | |||
* @return JForm / false the JForm object or 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.
Should be a pipe, JForm|false
@@ -5,7 +5,7 @@ class Joomla_Sniffs_Commenting_SingleCommentSniff implements PHP_CodeSniffer_Sni | |||
/** | |||
* Returns the token types that this sniff is interested in. | |||
* | |||
* @return array(int) | |||
* @return array |
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.
If this is returning an array of integers the correct annotation would be @return integer[]
@@ -45,7 +45,7 @@ public function __construct() | |||
/** | |||
* Returns the patterns that this test wishes to verify. | |||
* | |||
* @return array(string) | |||
* @return array |
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.
Same here, @return string[]
@@ -319,7 +319,7 @@ public function authenticate($credentials, $options = array()) | |||
* @param JAuthenticationResponse $response response including username of the user to authorise | |||
* @param array $options list of options | |||
* | |||
* @return array[JAuthenticationResponse] results of authorisation | |||
* @return array Array with results of authorisation containing a JAuthenticationResponse |
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.
@return JAuthenticationResponse[] Array of authentication response objects
(or something like that)
Thanks @mbabker i have fixed the inline comments. |
I have tested this item ✅ successfully on 853e77d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15302. |
Thanks 👍 |
Summary of Changes
Use @link over @see for URL's and use correct return types in the doc blocks
Testing Instructions
Code review as there a no production code changed
Documentation Changes Required
None
Additional Informations
I have excluded the externeal components such as fof (which has a lot of errors too) and everything in the vendor folder.