1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/15253] Fix code style

PHPBB3-15253
This commit is contained in:
Rubén Calvo
2017-06-27 10:41:30 +02:00
parent de288be1b3
commit 94ee3dc8b0
5 changed files with 20 additions and 34 deletions

View File

@@ -15,6 +15,8 @@ namespace phpbb\storage\adapter;
use phpbb\storage\exception\exception;
use phpbb\filesystem\exception\filesystem_exception;
use phpbb\config\config;
use phpbb\filesystem\filesystem;
/**
* @internal Experimental
@@ -34,7 +36,7 @@ class local implements adapter_interface
/**
* Constructor
*/
public function __construct(\phpbb\config\config $config, \phpbb\filesystem\filesystem $filesystem, $phpbb_root_path, $path_key)
public function __construct(config $config, filesystem $filesystem, $phpbb_root_path, $path_key)
{
$this->filesystem = $filesystem;
$this->root_path = $phpbb_root_path . $config[$path_key];
@@ -75,7 +77,9 @@ class local implements adapter_interface
throw new exception('', $path); // FILE_DONT_EXIST
}
if (($content = @file_get_contents($this->root_path . $path)) === false)
$content = @file_get_contents($this->root_path . $path);
if ($content === false)
{
throw new exception('', $path); // CANNOT READ FILE
}