Use correct parameters
remotes/origin/poc-doctrine-migrations
Lukas Reschke 10 years ago
parent f978474577
commit 3d8ea96e55
  1. 2
      lib/private/files/storage/common.php
  2. 2
      lib/private/files/storage/local.php
  3. 10
      lib/private/files/storage/localtempfiletrait.php
  4. 2
      lib/private/files/storage/mappedlocal.php
  5. 4
      lib/private/files/storage/wrapper/encryption.php

@ -274,6 +274,8 @@ abstract class Common implements Storage {
/**
* @param string $query
* @param string $dir
* @return array
*/
protected function searchInDir($query, $dir = '') {
$files = array();

@ -282,6 +282,8 @@ if (\OC_Util::runningOnWindows()) {
/**
* @param string $query
* @param string $dir
* @return array
*/
protected function searchInDir($query, $dir = '') {
$files = array();

@ -34,13 +34,12 @@ namespace OC\Files\Storage;
*/
trait LocalTempFileTrait {
/**
* @var string[]
*/
protected $cachedFiles = array();
/** @var string[] */
protected $cachedFiles = [];
/**
* @param string $path
* @return string
*/
protected function getCachedFile($path) {
if (!isset($this->cachedFiles[$path])) {
@ -49,6 +48,9 @@ trait LocalTempFileTrait {
return $this->cachedFiles[$path];
}
/**
* @param string $path
*/
protected function removeCachedFile($path) {
unset($this->cachedFiles[$path]);
}

@ -342,6 +342,8 @@ class MappedLocal extends \OC\Files\Storage\Common {
/**
* @param string $query
* @param string $dir
* @return array
*/
protected function searchInDir($query, $dir = '') {
$files = array();

@ -609,6 +609,10 @@ class Encryption extends Wrapper {
return $encryptionModule;
}
/**
* @param string $path
* @param int $unencryptedSize
*/
public function updateUnencryptedSize($path, $unencryptedSize) {
$this->unencryptedSize[$path] = $unencryptedSize;
}

Loading…
Cancel
Save