S
S
Sergey Pribylskiy2012-09-25 07:55:19
PHP
Sergey Pribylskiy, 2012-09-25 07:55:19

Phpstorm and code documentation

Installed Phpstorm 5.
Function description and parameter description are not shown in code completion (ctrl+space). But the name itself is added and the input arguments. In Netbeans, this styling of functions worked well. What's wrong with the design?

/**
* Моя функция
* @param int $user_id ID-пользователя
* @return bool 
*/
function isLogged($user_id)
{
   // тут много кода
   return $result;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@resurtm, 2012-09-25
_

In the docblock lines two through five, you have no leading spaces. Those. should be:

/**
 * Моя функция
 * @param int $user_id ID-пользователя
 * @return bool 
 */

You:
/**
* Моя функция
* @param int $user_id ID-пользователя
* @return bool 
*/

Try it.

T
Trobing, 2017-03-20
@Trobing

To view the documentation, press Ctrl+Q on the function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question