mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15699] Improve code style
PHPBB3-15699
This commit is contained in:
parent
bf467f8ece
commit
155b5168be
5 changed files with 23 additions and 27 deletions
|
@ -28,12 +28,12 @@
|
|||
</table>
|
||||
|
||||
{% if ERROR_MESSAGES is not empty %}
|
||||
<div class="errorbox">
|
||||
<div class="errorbox">
|
||||
<h3>{{ lang('WARNING') }}</h3>
|
||||
{% for ERROR_MESSAGE in ERROR_MESSAGES %}
|
||||
<p>{{ ERROR_MESSAGE }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form id="acp_storage" method="post" action="{{ U_ACTION }}">
|
||||
|
|
|
@ -33,13 +33,13 @@ if (!defined('IN_PHPBB'))
|
|||
|
||||
class acp_storage
|
||||
{
|
||||
/** @var driver_interface $db */
|
||||
/** @var driver_interface */
|
||||
protected $db;
|
||||
|
||||
/** @var language $log */
|
||||
/** @var language */
|
||||
protected $lang;
|
||||
|
||||
/** @var log_interface $log */
|
||||
/** @var log_interface */
|
||||
protected $log;
|
||||
|
||||
/** @var request */
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue