maj+ header

This commit is contained in:
2018-08-22 14:46:33 +02:00
parent 28c9e9d76f
commit 3fc62ab1f1
443 changed files with 24198 additions and 6201 deletions
+5 -6
View File
@@ -48,7 +48,7 @@ class File implements FileInterface
/**
* @var array|File[]
*/
static protected $instances = array();
static protected $instances = [];
/**
* Get file instance.
@@ -97,8 +97,6 @@ class File implements FileInterface
/**
* Prevent constructor from being used.
*
* @internal
*/
protected function __construct()
{
@@ -106,8 +104,6 @@ class File implements FileInterface
/**
* Prevent cloning.
*
* @internal
*/
protected function __clone()
{
@@ -224,7 +220,7 @@ class File implements FileInterface
public function unlock()
{
if (!$this->handle) {
return;
return false;
}
if ($this->locked) {
flock($this->handle, LOCK_UN);
@@ -232,6 +228,8 @@ class File implements FileInterface
}
fclose($this->handle);
$this->handle = null;
return true;
}
/**
@@ -282,6 +280,7 @@ class File implements FileInterface
*
* @param mixed $var
* @return string|array
* @throws \RuntimeException
*/
public function content($var = null)
{