diff --git a/phpBB/phpbb/storage/adapter/adapter_interface.php b/phpBB/phpbb/storage/adapter/adapter_interface.php index 96617c8e6a..6584a7255f 100644 --- a/phpBB/phpbb/storage/adapter/adapter_interface.php +++ b/phpBB/phpbb/storage/adapter/adapter_interface.php @@ -99,7 +99,7 @@ interface adapter_interface /* * Get space available in bytes. * - * @throws \phpbb\storage\exception\exception When can't get available space + * @throws \phpbb\storage\exception\exception When unable to retrieve available storage spac * * @return int Returns available space */ diff --git a/phpBB/phpbb/storage/adapter/local.php b/phpBB/phpbb/storage/adapter/local.php index fd0fbe84d8..b23d251ee7 100644 --- a/phpBB/phpbb/storage/adapter/local.php +++ b/phpBB/phpbb/storage/adapter/local.php @@ -425,12 +425,8 @@ class local implements adapter_interface, stream_interface return generate_board_url() . $this->path . $path; } - /* - * Get space available in bytes. - * - * @throws \phpbb\storage\exception\exception When can't get available space - * - * @return int Returns available space + /** + * {@inheritdoc} */ public function free_space() { diff --git a/phpBB/phpbb/storage/storage.php b/phpBB/phpbb/storage/storage.php index 63369af7e8..71d3ea5ed2 100644 --- a/phpBB/phpbb/storage/storage.php +++ b/phpBB/phpbb/storage/storage.php @@ -235,6 +235,12 @@ class storage } } + /** + * Track file into database. + * + * @param string $path The target file + * @param bool $update Update file size when already tracked + */ public function track_file($path, $update = false) { $sql_ary = array( @@ -270,6 +276,11 @@ class storage $this->cache->destroy('_storage_' . $this->get_name() . '_numfiles'); } + /** + * Untrack file. + * + * @param string $path The target file + */ public function untrack_file($path) { $sql_ary = array(