Skip to content
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

Merged
merged 8 commits into from May 23, 2017

Conversation

zero-24
Copy link
Contributor

@zero-24 zero-24 commented Apr 14, 2017

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.

@@ -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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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)

@zero-24
Copy link
Contributor Author

zero-24 commented Apr 14, 2017

Thanks @mbabker i have fixed the inline comments.

@alikon
Copy link
Contributor

alikon commented Apr 16, 2017

I have tested this item ✅ successfully on 853e77d

review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15302.

@rdeutz rdeutz added this to the Joomla 3.7.3 milestone May 23, 2017
@rdeutz rdeutz merged commit d57a8e5 into joomla:staging May 23, 2017
@zero-24
Copy link
Contributor Author

zero-24 commented May 23, 2017

Thanks 👍

@zero-24 zero-24 deleted the vscode_warnings branch May 23, 2017 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants