mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
[ticket/16955] Add missing docblocks and fix unclear ones
PHPBB3-16955
This commit is contained in:
parent
4284512594
commit
fab81eca2b
@ -1,4 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This file is part of the phpBB Forum Software package.
|
||||||
|
*
|
||||||
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||||
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||||
|
*
|
||||||
|
* For full copyright and license information, please see
|
||||||
|
* the docs/CREDITS.txt file.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
class APCUIterator implements Iterator
|
class APCUIterator implements Iterator
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,5 @@
|
|||||||
class Redis
|
class Redis
|
||||||
{
|
{
|
||||||
public const OPT_PREFIX = 2;
|
public const OPT_PREFIX = 2;
|
||||||
|
|
||||||
public const SERIALIZER_PHP = 1;
|
public const SERIALIZER_PHP = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -827,8 +827,7 @@ class oauth extends base
|
|||||||
* Sets a redirect to the authorization uri.
|
* Sets a redirect to the authorization uri.
|
||||||
*
|
*
|
||||||
* @param OAuth1Service|OAuth2Service $service The external OAuth service
|
* @param OAuth1Service|OAuth2Service $service The external OAuth service
|
||||||
* @return array Array if an error occurred,
|
* @return array|never Array if an error occurred, won't return on success
|
||||||
* won't return on success
|
|
||||||
*/
|
*/
|
||||||
protected function set_redirect($service)
|
protected function set_redirect($service)
|
||||||
{
|
{
|
||||||
|
@ -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_type The type (u_, m_, a_)
|
||||||
* @param string $role_description Description of the new role
|
* @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 = '')
|
public function role_add($role_name, $role_type, $role_description = '')
|
||||||
{
|
{
|
||||||
if ($this->role_exists($role_name))
|
if ($this->role_exists($role_name))
|
||||||
{
|
{
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'SELECT MAX(role_order) AS max_role_order
|
$sql = 'SELECT MAX(role_order) AS max_role_order
|
||||||
|
@ -35,7 +35,7 @@ class factory
|
|||||||
*
|
*
|
||||||
* @param string $name Service name
|
* @param string $name Service name
|
||||||
*
|
*
|
||||||
* @return object|bool Requested service or false if service could not be
|
* @return object|false Requested service or false if service could not be
|
||||||
* found by the container
|
* found by the container
|
||||||
*/
|
*/
|
||||||
public function get($name)
|
public function get($name)
|
||||||
|
@ -329,7 +329,7 @@ class filespec
|
|||||||
* Get mime type
|
* Get mime type
|
||||||
*
|
*
|
||||||
* @param string $filename Filename that needs to be checked
|
* @param string $filename Filename that needs to be checked
|
||||||
* @return string|false Mime type of supplied filename or false if mimetype could not be guessed
|
* @return string Mime type of supplied filename or empty string if mimetype could not be guessed
|
||||||
*/
|
*/
|
||||||
public function get_mimetype($filename)
|
public function get_mimetype($filename)
|
||||||
{
|
{
|
||||||
@ -343,7 +343,7 @@ class filespec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->mimetype;
|
return $this->mimetype ?: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -313,7 +313,7 @@ class filespec_storage
|
|||||||
* Get mime type
|
* Get mime type
|
||||||
*
|
*
|
||||||
* @param string $filename Filename that needs to be checked
|
* @param string $filename Filename that needs to be checked
|
||||||
* @return string|false Mime type of supplied filename or false if mimetype could not be guessed
|
* @return string Mime type of supplied filename or empty string if mimetype could not be guessed
|
||||||
*/
|
*/
|
||||||
public function get_mimetype($filename)
|
public function get_mimetype($filename)
|
||||||
{
|
{
|
||||||
@ -327,7 +327,7 @@ class filespec_storage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->mimetype;
|
return $this->mimetype ?: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user