StyleCI recommendations
This commit is contained in:
parent
a5d5f6066a
commit
502e96c129
2 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
|
|
||||||
use PrivateBin\Persistence\DataStore;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use PDO;
|
use PDO;
|
||||||
|
use PrivateBin\Persistence\DataStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration
|
* Configuration
|
||||||
|
|
|
@ -80,7 +80,7 @@ class DataStore extends AbstractPersistence
|
||||||
// don't overwrite already converted file
|
// don't overwrite already converted file
|
||||||
if (!is_readable($destFile)) {
|
if (!is_readable($destFile)) {
|
||||||
$handle = fopen($srcFile, 'r', false, stream_context_create());
|
$handle = fopen($srcFile, 'r', false, stream_context_create());
|
||||||
file_put_contents($destFile, $prefix . DataStore::PROTECTION_LINE . PHP_EOL);
|
file_put_contents($destFile, $prefix . self::PROTECTION_LINE . PHP_EOL);
|
||||||
file_put_contents($destFile, $handle, FILE_APPEND);
|
file_put_contents($destFile, $handle, FILE_APPEND);
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue