mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[ticket/11227] @return void -> @return null, per coding guidelines.
PHPBB3-11227
This commit is contained in:
parent
3a702084e4
commit
ec4343c744
@ -109,7 +109,7 @@ class phpbb_config implements ArrayAccess, IteratorAggregate, Countable
|
||||
* @param String $key The configuration option's name
|
||||
* @param bool $use_cache Whether this variable should be cached or if it
|
||||
* changes too frequently to be efficiently cached
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function delete($key, $use_cache = true)
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ class phpbb_config_db extends phpbb_config
|
||||
* @param String $key The configuration option's name
|
||||
* @param bool $use_cache Whether this variable should be cached or if it
|
||||
* changes too frequently to be efficiently cached
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function delete($key, $use_cache = true)
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ class phpbb_cron_manager
|
||||
*
|
||||
* @param array|Traversable $tasks Array of instances of phpbb_cron_task
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function load_tasks($tasks)
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ class phpbb_cron_task_core_prune_all_forums extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ class phpbb_cron_task_core_prune_forum extends phpbb_cron_task_base implements p
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
@ -138,7 +138,7 @@ class phpbb_cron_task_core_prune_forum extends phpbb_cron_task_base implements p
|
||||
*
|
||||
* @param phpbb_request_interface $request Request object.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function parse_parameters(phpbb_request_interface $request)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ class phpbb_cron_task_core_queue extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ class phpbb_cron_task_core_tidy_cache extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ class phpbb_cron_task_core_tidy_database extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ class phpbb_cron_task_core_tidy_sessions extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ class phpbb_cron_task_core_tidy_warnings extends phpbb_cron_task_base
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ interface phpbb_cron_task_parametrized extends phpbb_cron_task
|
||||
*
|
||||
* @param phpbb_request_interface $request Request object.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function parse_parameters(phpbb_request_interface $request);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ interface phpbb_cron_task
|
||||
/**
|
||||
* Runs this cron task.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function run();
|
||||
|
||||
|
@ -433,7 +433,7 @@ function set_modified_headers($stamp, $browser)
|
||||
*
|
||||
* @param bool $exit Whether to die or not.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
function file_gc($exit = true)
|
||||
{
|
||||
|
@ -104,7 +104,7 @@ class phpbb_group_positions
|
||||
* Addes a group by group_id
|
||||
*
|
||||
* @param int $group_id group_id of the group to be added
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function add_group($group_id)
|
||||
{
|
||||
@ -128,7 +128,7 @@ class phpbb_group_positions
|
||||
*
|
||||
* @param int $group_id group_id of the group to be deleted
|
||||
* @param bool $skip_group Skip setting the group to GROUP_DISABLED, to save the query, when you need to update it anyway.
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function delete_group($group_id, $skip_group = false)
|
||||
{
|
||||
@ -159,7 +159,7 @@ class phpbb_group_positions
|
||||
* Moves a group up by group_id
|
||||
*
|
||||
* @param int $group_id group_id of the group to be moved
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function move_up($group_id)
|
||||
{
|
||||
@ -170,7 +170,7 @@ class phpbb_group_positions
|
||||
* Moves a group down by group_id
|
||||
*
|
||||
* @param int $group_id group_id of the group to be moved
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function move_down($group_id)
|
||||
{
|
||||
@ -184,7 +184,7 @@ class phpbb_group_positions
|
||||
* @param int $delta number of steps:
|
||||
* - positive = move up
|
||||
* - negative = move down
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function move($group_id, $delta)
|
||||
{
|
||||
|
@ -125,7 +125,7 @@ class phpbb_lock_db
|
||||
* Note: Attempting to release a lock that is already released,
|
||||
* that is, calling release() multiple times, is harmless.
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function release()
|
||||
{
|
||||
|
@ -110,7 +110,7 @@ class phpbb_style_resource_locator implements phpbb_template_locator
|
||||
* Typically it is one directory level deep, e.g. "template/".
|
||||
*
|
||||
* @param string $template_path Relative path to templates directory within style directories
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function set_template_path($template_path)
|
||||
{
|
||||
@ -121,7 +121,7 @@ class phpbb_style_resource_locator implements phpbb_template_locator
|
||||
* Sets the location of templates directory within style directories
|
||||
* to the default, which is "template/".
|
||||
*
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
public function set_default_template_path()
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ class phpbb_template_compile
|
||||
*
|
||||
* @param resource $source_stream Source stream
|
||||
* @param resource $dest_stream Destination stream
|
||||
* @return void
|
||||
* @return null
|
||||
*/
|
||||
private function compile_stream_to_stream($source_stream, $dest_stream)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user