mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 09:49:14 +02:00
added configuration for PHP Coding Standards Fixer, including its fixes, resolving #47
This commit is contained in:
parent
87926ce157
commit
72aac25f68
17 changed files with 114 additions and 90 deletions
|
@ -119,7 +119,7 @@ abstract class AbstractPersistence
|
|||
protected static function _store($filename, $data)
|
||||
{
|
||||
self::_initialize();
|
||||
$file = self::$_path . DIRECTORY_SEPARATOR . $filename;
|
||||
$file = self::$_path . DIRECTORY_SEPARATOR . $filename;
|
||||
$writtenBytes = @file_put_contents($file, $data, LOCK_EX);
|
||||
if ($writtenBytes === false || $writtenBytes < strlen($data)) {
|
||||
throw new Exception('unable to write to file ' . $file, 13);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue