[ticket/13358] Use protected and public keywords where applicable

PHPBB3-13358
This commit is contained in:
Marc Alexander 2014-11-21 23:30:47 +01:00
parent 171837eefe
commit 6d3ac29aee

View file

@ -16,10 +16,10 @@ namespace phpbb;
class file_downloader
{
/** @var string Error string */
public $error_string = '';
protected $error_string = '';
/** @var int Error number */
public $error_number = 0;
protected $error_number = 0;
/**
* Retrieve contents from remotely stored file
@ -36,7 +36,7 @@ class file_downloader
* @throws \RuntimeException If data can't be retrieved and no error
* message is returned
*/
function get($host, $directory, $filename, $port = 80, $timeout = 6)
public function get($host, $directory, $filename, $port = 80, $timeout = 6)
{
// Set default values for error variables
$this->error_number = 0;