mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/15699] Improve code style
PHPBB3-15699
This commit is contained in:
@@ -299,10 +299,8 @@ class local implements adapter_interface, stream_interface
|
||||
* @param string $path The file
|
||||
*
|
||||
* @return array Properties
|
||||
* @throws storage_exception When cannot get size
|
||||
*
|
||||
* @throws storage_exception When cannot get size
|
||||
*
|
||||
*/
|
||||
public function file_size(string $path): array
|
||||
{
|
||||
|
@@ -211,6 +211,4 @@ class state_helper
|
||||
$this->config_text->set('storage_update_state', json_encode($state, JSON_THROW_ON_ERROR));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -124,7 +124,7 @@ class storage
|
||||
*
|
||||
* @return string Returns file contents
|
||||
*
|
||||
*@throws storage_exception When the file doesn't exist
|
||||
* @throws storage_exception When the file doesn't exist
|
||||
* When cannot read file contents
|
||||
*
|
||||
*/
|
||||
@@ -228,7 +228,7 @@ class storage
|
||||
* @param string $path File to read
|
||||
*
|
||||
* @return resource Returns a file pointer
|
||||
*@throws storage_exception When the file doesn't exist
|
||||
* @throws storage_exception When the file doesn't exist
|
||||
* When unable to open file
|
||||
*
|
||||
*/
|
||||
@@ -405,7 +405,7 @@ class storage
|
||||
* @param string $path The file
|
||||
*
|
||||
* @return \phpbb\storage\file_info Returns file_info object
|
||||
*@throws storage_exception When the adapter doesn't implement the method
|
||||
* @throws storage_exception When the adapter doesn't implement the method
|
||||
* When the file doesn't exist
|
||||
*
|
||||
*/
|
||||
@@ -486,7 +486,7 @@ class storage
|
||||
* Get space available in bytes
|
||||
*
|
||||
* @return float Returns available space
|
||||
*@throws storage_exception When unable to retrieve available storage space
|
||||
* @throws storage_exception When unable to retrieve available storage space
|
||||
*
|
||||
*/
|
||||
public function free_space()
|
||||
|
Reference in New Issue
Block a user