summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Stream
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 09:30:18 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 16:34:56 +0100
commitb80ebc96748b45fd2e0ba9323308657c4b00b7ec (patch)
treeec20e0ffa2f86b9b54939a83a785407319f94559 /lib/private/Files/Stream
parent62403d0932be7d620c7bdadc6b4e13eb496fcd6f (diff)
downloadnextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.tar.gz
nextcloud-server-b80ebc96748b45fd2e0ba9323308657c4b00b7ec.zip
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Files/Stream')
-rw-r--r--lib/private/Files/Stream/Encryption.php12
-rw-r--r--lib/private/Files/Stream/Quota.php8
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php
index dc6cd9cea7f..2ae872de337 100644
--- a/lib/private/Files/Stream/Encryption.php
+++ b/lib/private/Files/Stream/Encryption.php
@@ -109,7 +109,7 @@ class Encryption extends Wrapper {
protected $fileUpdated;
public function __construct() {
- $this->expectedContextProperties = array(
+ $this->expectedContextProperties = [
'source',
'storage',
'internalPath',
@@ -124,7 +124,7 @@ class Encryption extends Wrapper {
'encryptionStorage',
'headerSize',
'signed'
- );
+ ];
}
@@ -165,8 +165,8 @@ class Encryption extends Wrapper {
$signed,
$wrapper = Encryption::class) {
- $context = stream_context_create(array(
- 'ocencryption' => array(
+ $context = stream_context_create([
+ 'ocencryption' => [
'source' => $source,
'storage' => $storage,
'internalPath' => $internalPath,
@@ -181,8 +181,8 @@ class Encryption extends Wrapper {
'encryptionStorage' => $encStorage,
'headerSize' => $headerSize,
'signed' => $signed
- )
- ));
+ ]
+ ]);
return self::wrapSource($source, $context, 'ocencryption', $wrapper, $mode);
}
diff --git a/lib/private/Files/Stream/Quota.php b/lib/private/Files/Stream/Quota.php
index 08272ad61cb..f07c0c2b678 100644
--- a/lib/private/Files/Stream/Quota.php
+++ b/lib/private/Files/Stream/Quota.php
@@ -44,12 +44,12 @@ class Quota extends Wrapper {
* @return resource
*/
static public function wrap($stream, $limit) {
- $context = stream_context_create(array(
- 'quota' => array(
+ $context = stream_context_create([
+ 'quota' => [
'source' => $stream,
'limit' => $limit
- )
- ));
+ ]
+ ]);
return Wrapper::wrapSource($stream, $context, 'quota', self::class);
}