mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16955] Add missing docblocks and fix unclear ones
PHPBB3-16955
This commit is contained in:
@@ -266,13 +266,13 @@ class permission implements \phpbb\db\migration\tool\tool_interface
|
||||
* @param string $role_type The type (u_, m_, a_)
|
||||
* @param string $role_description Description of the new role
|
||||
*
|
||||
* @return int|null Inserted SQL id or false if role already exists
|
||||
* @return int|null Inserted SQL id or null if role already exists
|
||||
*/
|
||||
public function role_add($role_name, $role_type, $role_description = '')
|
||||
{
|
||||
if ($this->role_exists($role_name))
|
||||
{
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
$sql = 'SELECT MAX(role_order) AS max_role_order
|
||||
|
Reference in New Issue
Block a user