Completed
Pull Request — stable9 (#4226)
by Lukas
11:11
created
lib/public/files/cache/iupdater.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -30,47 +30,47 @@
 block discarded – undo
30 30
  * @since 9.0.0
31 31
  */
32 32
 interface IUpdater {
33
-	/**
34
-	 * Get the propagator for etags and mtime for the view the updater works on
35
-	 *
36
-	 * @return IPropagator
37
-	 * @since 9.0.0
38
-	 */
39
-	public function getPropagator();
33
+    /**
34
+     * Get the propagator for etags and mtime for the view the updater works on
35
+     *
36
+     * @return IPropagator
37
+     * @since 9.0.0
38
+     */
39
+    public function getPropagator();
40 40
 
41
-	/**
42
-	 * Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem
43
-	 *
44
-	 * @param string $path the path of the file to propagate the changes for
45
-	 * @param int|null $time the timestamp to set as mtime for the parent folders, if left out the current time is used
46
-	 * @since 9.0.0
47
-	 */
48
-	public function propagate($path, $time = null);
41
+    /**
42
+     * Propagate etag and mtime changes for the parent folders of $path up to the root of the filesystem
43
+     *
44
+     * @param string $path the path of the file to propagate the changes for
45
+     * @param int|null $time the timestamp to set as mtime for the parent folders, if left out the current time is used
46
+     * @since 9.0.0
47
+     */
48
+    public function propagate($path, $time = null);
49 49
 
50
-	/**
51
-	 * Update the cache for $path and update the size, etag and mtime of the parent folders
52
-	 *
53
-	 * @param string $path
54
-	 * @param int $time
55
-	 * @since 9.0.0
56
-	 */
57
-	public function update($path, $time = null);
50
+    /**
51
+     * Update the cache for $path and update the size, etag and mtime of the parent folders
52
+     *
53
+     * @param string $path
54
+     * @param int $time
55
+     * @since 9.0.0
56
+     */
57
+    public function update($path, $time = null);
58 58
 
59
-	/**
60
-	 * Remove $path from the cache and update the size, etag and mtime of the parent folders
61
-	 *
62
-	 * @param string $path
63
-	 * @since 9.0.0
64
-	 */
65
-	public function remove($path);
59
+    /**
60
+     * Remove $path from the cache and update the size, etag and mtime of the parent folders
61
+     *
62
+     * @param string $path
63
+     * @since 9.0.0
64
+     */
65
+    public function remove($path);
66 66
 
67
-	/**
68
-	 * Rename a file or folder in the cache and update the size, etag and mtime of the parent folders
69
-	 *
70
-	 * @param IStorage $sourceStorage
71
-	 * @param string $source
72
-	 * @param string $target
73
-	 * @since 9.0.0
74
-	 */
75
-	public function renameFromStorage(IStorage $sourceStorage, $source, $target);
67
+    /**
68
+     * Rename a file or folder in the cache and update the size, etag and mtime of the parent folders
69
+     *
70
+     * @param IStorage $sourceStorage
71
+     * @param string $source
72
+     * @param string $target
73
+     * @since 9.0.0
74
+     */
75
+    public function renameFromStorage(IStorage $sourceStorage, $source, $target);
76 76
 }
Please login to merge, or discard this patch.
lib/public/files/cache/iwatcher.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -28,56 +28,56 @@
 block discarded – undo
28 28
  * @since 9.0.0
29 29
  */
30 30
 interface IWatcher {
31
-	const CHECK_NEVER = 0; // never check the underlying filesystem for updates
32
-	const CHECK_ONCE = 1; // check the underlying filesystem for updates once every request for each file
33
-	const CHECK_ALWAYS = 2; // always check the underlying filesystem for updates
31
+    const CHECK_NEVER = 0; // never check the underlying filesystem for updates
32
+    const CHECK_ONCE = 1; // check the underlying filesystem for updates once every request for each file
33
+    const CHECK_ALWAYS = 2; // always check the underlying filesystem for updates
34 34
 
35
-	/**
36
-	 * @param int $policy either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
37
-	 * @since 9.0.0
38
-	 */
39
-	public function setPolicy($policy);
35
+    /**
36
+     * @param int $policy either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
37
+     * @since 9.0.0
38
+     */
39
+    public function setPolicy($policy);
40 40
 
41
-	/**
42
-	 * @return int either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
43
-	 * @since 9.0.0
44
-	 */
45
-	public function getPolicy();
41
+    /**
42
+     * @return int either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
43
+     * @since 9.0.0
44
+     */
45
+    public function getPolicy();
46 46
 
47
-	/**
48
-	 * check $path for updates and update if needed
49
-	 *
50
-	 * @param string $path
51
-	 * @param ICacheEntry|null $cachedEntry
52
-	 * @return boolean true if path was updated
53
-	 * @since 9.0.0
54
-	 */
55
-	public function checkUpdate($path, $cachedEntry = null);
47
+    /**
48
+     * check $path for updates and update if needed
49
+     *
50
+     * @param string $path
51
+     * @param ICacheEntry|null $cachedEntry
52
+     * @return boolean true if path was updated
53
+     * @since 9.0.0
54
+     */
55
+    public function checkUpdate($path, $cachedEntry = null);
56 56
 
57
-	/**
58
-	 * Update the cache for changes to $path
59
-	 *
60
-	 * @param string $path
61
-	 * @param ICacheEntry $cachedData
62
-	 * @since 9.0.0
63
-	 */
64
-	public function update($path, $cachedData);
57
+    /**
58
+     * Update the cache for changes to $path
59
+     *
60
+     * @param string $path
61
+     * @param ICacheEntry $cachedData
62
+     * @since 9.0.0
63
+     */
64
+    public function update($path, $cachedData);
65 65
 
66
-	/**
67
-	 * Check if the cache for $path needs to be updated
68
-	 *
69
-	 * @param string $path
70
-	 * @param ICacheEntry $cachedData
71
-	 * @return bool
72
-	 * @since 9.0.0
73
-	 */
74
-	public function needsUpdate($path, $cachedData);
66
+    /**
67
+     * Check if the cache for $path needs to be updated
68
+     *
69
+     * @param string $path
70
+     * @param ICacheEntry $cachedData
71
+     * @return bool
72
+     * @since 9.0.0
73
+     */
74
+    public function needsUpdate($path, $cachedData);
75 75
 
76
-	/**
77
-	 * remove deleted files in $path from the cache
78
-	 *
79
-	 * @param string $path
80
-	 * @since 9.0.0
81
-	 */
82
-	public function cleanFolder($path);
76
+    /**
77
+     * remove deleted files in $path from the cache
78
+     *
79
+     * @param string $path
80
+     * @since 9.0.0
81
+     */
82
+    public function cleanFolder($path);
83 83
 }
Please login to merge, or discard this patch.
lib/public/files/cache/icacheentry.php 1 patch
Indentation   +92 added lines, -92 removed lines patch added patch discarded remove patch
@@ -28,108 +28,108 @@
 block discarded – undo
28 28
  * @since 9.0.0
29 29
  */
30 30
 interface ICacheEntry {
31
-	const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
31
+    const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
32 32
 
33
-	/**
34
-	 * Get the numeric id of a file
35
-	 *
36
-	 * @return int
37
-	 * @since 9.0.0
38
-	 */
39
-	public function getId();
33
+    /**
34
+     * Get the numeric id of a file
35
+     *
36
+     * @return int
37
+     * @since 9.0.0
38
+     */
39
+    public function getId();
40 40
 
41
-	/**
42
-	 * Get the numeric id for the storage
43
-	 *
44
-	 * @return int
45
-	 * @since 9.0.0
46
-	 */
47
-	public function getStorageId();
41
+    /**
42
+     * Get the numeric id for the storage
43
+     *
44
+     * @return int
45
+     * @since 9.0.0
46
+     */
47
+    public function getStorageId();
48 48
 
49
-	/**
50
-	 * Get the path of the file relative to the storage root
51
-	 *
52
-	 * @return string
53
-	 * @since 9.0.0
54
-	 */
55
-	public function getPath();
49
+    /**
50
+     * Get the path of the file relative to the storage root
51
+     *
52
+     * @return string
53
+     * @since 9.0.0
54
+     */
55
+    public function getPath();
56 56
 
57
-	/**
58
-	 * Get the file name
59
-	 *
60
-	 * @return string
61
-	 * @since 9.0.0
62
-	 */
63
-	public function getName();
57
+    /**
58
+     * Get the file name
59
+     *
60
+     * @return string
61
+     * @since 9.0.0
62
+     */
63
+    public function getName();
64 64
 
65
-	/**
66
-	 * Get the full mimetype
67
-	 *
68
-	 * @return string
69
-	 * @since 9.0.0
70
-	 */
71
-	public function getMimeType();
65
+    /**
66
+     * Get the full mimetype
67
+     *
68
+     * @return string
69
+     * @since 9.0.0
70
+     */
71
+    public function getMimeType();
72 72
 
73
-	/**
74
-	 * Get the first part of the mimetype
75
-	 *
76
-	 * @return string
77
-	 * @since 9.0.0
78
-	 */
79
-	public function getMimePart();
73
+    /**
74
+     * Get the first part of the mimetype
75
+     *
76
+     * @return string
77
+     * @since 9.0.0
78
+     */
79
+    public function getMimePart();
80 80
 
81
-	/**
82
-	 * Get the file size in bytes
83
-	 *
84
-	 * @return int
85
-	 * @since 9.0.0
86
-	 */
87
-	public function getSize();
81
+    /**
82
+     * Get the file size in bytes
83
+     *
84
+     * @return int
85
+     * @since 9.0.0
86
+     */
87
+    public function getSize();
88 88
 
89
-	/**
90
-	 * Get the last modified date as unix timestamp
91
-	 *
92
-	 * @return int
93
-	 * @since 9.0.0
94
-	 */
95
-	public function getMTime();
89
+    /**
90
+     * Get the last modified date as unix timestamp
91
+     *
92
+     * @return int
93
+     * @since 9.0.0
94
+     */
95
+    public function getMTime();
96 96
 
97
-	/**
98
-	 * Get the last modified date on the storage as unix timestamp
99
-	 *
100
-	 * Note that when a file is updated we also update the mtime of all parent folders to make it visible to the user which folder has had updates most recently
101
-	 * This can differ from the mtime on the underlying storage which usually only changes when a direct child is added, removed or renamed
102
-	 *
103
-	 * @return int
104
-	 * @since 9.0.0
105
-	 */
106
-	public function getStorageMTime();
97
+    /**
98
+     * Get the last modified date on the storage as unix timestamp
99
+     *
100
+     * Note that when a file is updated we also update the mtime of all parent folders to make it visible to the user which folder has had updates most recently
101
+     * This can differ from the mtime on the underlying storage which usually only changes when a direct child is added, removed or renamed
102
+     *
103
+     * @return int
104
+     * @since 9.0.0
105
+     */
106
+    public function getStorageMTime();
107 107
 
108
-	/**
109
-	 * Get the etag for the file
110
-	 *
111
-	 * An etag is used for change detection of files and folders, an etag of a file changes whenever the content of the file changes
112
-	 * Etag for folders change whenever a file in the folder has changed
113
-	 *
114
-	 * @return string
115
-	 * @since 9.0.0
116
-	 */
117
-	public function getEtag();
108
+    /**
109
+     * Get the etag for the file
110
+     *
111
+     * An etag is used for change detection of files and folders, an etag of a file changes whenever the content of the file changes
112
+     * Etag for folders change whenever a file in the folder has changed
113
+     *
114
+     * @return string
115
+     * @since 9.0.0
116
+     */
117
+    public function getEtag();
118 118
 
119
-	/**
120
-	 * Get the permissions for the file stored as bitwise combination of \OCP\PERMISSION_READ, \OCP\PERMISSION_CREATE
121
-	 * \OCP\PERMISSION_UPDATE, \OCP\PERMISSION_DELETE and \OCP\PERMISSION_SHARE
122
-	 *
123
-	 * @return int
124
-	 * @since 9.0.0
125
-	 */
126
-	public function getPermissions();
119
+    /**
120
+     * Get the permissions for the file stored as bitwise combination of \OCP\PERMISSION_READ, \OCP\PERMISSION_CREATE
121
+     * \OCP\PERMISSION_UPDATE, \OCP\PERMISSION_DELETE and \OCP\PERMISSION_SHARE
122
+     *
123
+     * @return int
124
+     * @since 9.0.0
125
+     */
126
+    public function getPermissions();
127 127
 
128
-	/**
129
-	 * Check if the file is encrypted
130
-	 *
131
-	 * @return bool
132
-	 * @since 9.0.0
133
-	 */
134
-	public function isEncrypted();
128
+    /**
129
+     * Check if the file is encrypted
130
+     *
131
+     * @return bool
132
+     * @since 9.0.0
133
+     */
134
+    public function isEncrypted();
135 135
 }
Please login to merge, or discard this patch.
lib/public/files/cache/iscanner.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -28,55 +28,55 @@
 block discarded – undo
28 28
  * @since 9.0.0
29 29
  */
30 30
 interface IScanner {
31
-	const SCAN_RECURSIVE = true;
32
-	const SCAN_SHALLOW = false;
31
+    const SCAN_RECURSIVE = true;
32
+    const SCAN_SHALLOW = false;
33 33
 
34
-	const REUSE_ETAG = 1;
35
-	const REUSE_SIZE = 2;
34
+    const REUSE_ETAG = 1;
35
+    const REUSE_SIZE = 2;
36 36
 
37
-	/**
38
-	 * scan a single file and store it in the cache
39
-	 *
40
-	 * @param string $file
41
-	 * @param int $reuseExisting
42
-	 * @param int $parentId
43
-	 * @param array | null $cacheData existing data in the cache for the file to be scanned
44
-	 * @param bool $lock set to false to disable getting an additional read lock during scanning
45
-	 * @return array an array of metadata of the scanned file
46
-	 * @throws \OC\ServerNotAvailableException
47
-	 * @throws \OCP\Lock\LockedException
48
-	 * @since 9.0.0
49
-	 */
50
-	public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null, $lock = true);
37
+    /**
38
+     * scan a single file and store it in the cache
39
+     *
40
+     * @param string $file
41
+     * @param int $reuseExisting
42
+     * @param int $parentId
43
+     * @param array | null $cacheData existing data in the cache for the file to be scanned
44
+     * @param bool $lock set to false to disable getting an additional read lock during scanning
45
+     * @return array an array of metadata of the scanned file
46
+     * @throws \OC\ServerNotAvailableException
47
+     * @throws \OCP\Lock\LockedException
48
+     * @since 9.0.0
49
+     */
50
+    public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null, $lock = true);
51 51
 
52
-	/**
53
-	 * scan a folder and all its children
54
-	 *
55
-	 * @param string $path
56
-	 * @param bool $recursive
57
-	 * @param int $reuse
58
-	 * @param bool $lock set to false to disable getting an additional read lock during scanning
59
-	 * @return array an array of the meta data of the scanned file or folder
60
-	 * @since 9.0.0
61
-	 */
62
-	public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true);
52
+    /**
53
+     * scan a folder and all its children
54
+     *
55
+     * @param string $path
56
+     * @param bool $recursive
57
+     * @param int $reuse
58
+     * @param bool $lock set to false to disable getting an additional read lock during scanning
59
+     * @return array an array of the meta data of the scanned file or folder
60
+     * @since 9.0.0
61
+     */
62
+    public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true);
63 63
 
64
-	/**
65
-	 * check if the file should be ignored when scanning
66
-	 * NOTE: files with a '.part' extension are ignored as well!
67
-	 *       prevents unfinished put requests to be scanned
68
-	 *
69
-	 * @param string $file
70
-	 * @return boolean
71
-	 * @since 9.0.0
72
-	 */
73
-	public static function isPartialFile($file);
64
+    /**
65
+     * check if the file should be ignored when scanning
66
+     * NOTE: files with a '.part' extension are ignored as well!
67
+     *       prevents unfinished put requests to be scanned
68
+     *
69
+     * @param string $file
70
+     * @return boolean
71
+     * @since 9.0.0
72
+     */
73
+    public static function isPartialFile($file);
74 74
 
75
-	/**
76
-	 * walk over any folders that are not fully scanned yet and scan them
77
-	 *
78
-	 * @since 9.0.0
79
-	 */
80
-	public function backgroundScan();
75
+    /**
76
+     * walk over any folders that are not fully scanned yet and scan them
77
+     *
78
+     * @since 9.0.0
79
+     */
80
+    public function backgroundScan();
81 81
 }
82 82
 
Please login to merge, or discard this patch.
lib/public/files/cache/icache.php 1 patch
Indentation   +199 added lines, -199 removed lines patch added patch discarded remove patch
@@ -35,223 +35,223 @@
 block discarded – undo
35 35
  * @since 9.0.0
36 36
  */
37 37
 interface ICache {
38
-	const NOT_FOUND = 0;
39
-	const PARTIAL = 1; //only partial data available, file not cached in the database
40
-	const SHALLOW = 2; //folder in cache, but not all child files are completely scanned
41
-	const COMPLETE = 3;
38
+    const NOT_FOUND = 0;
39
+    const PARTIAL = 1; //only partial data available, file not cached in the database
40
+    const SHALLOW = 2; //folder in cache, but not all child files are completely scanned
41
+    const COMPLETE = 3;
42 42
 
43
-	/**
44
-	 * Get the numeric storage id for this cache's storage
45
-	 *
46
-	 * @return int
47
-	 * @since 9.0.0
48
-	 */
49
-	public function getNumericStorageId();
43
+    /**
44
+     * Get the numeric storage id for this cache's storage
45
+     *
46
+     * @return int
47
+     * @since 9.0.0
48
+     */
49
+    public function getNumericStorageId();
50 50
 
51
-	/**
52
-	 * get the stored metadata of a file or folder
53
-	 *
54
-	 * @param string | int $file either the path of a file or folder or the file id for a file or folder
55
-	 * @return ICacheEntry|false the cache entry or false if the file is not found in the cache
56
-	 * @since 9.0.0
57
-	 */
58
-	public function get($file);
51
+    /**
52
+     * get the stored metadata of a file or folder
53
+     *
54
+     * @param string | int $file either the path of a file or folder or the file id for a file or folder
55
+     * @return ICacheEntry|false the cache entry or false if the file is not found in the cache
56
+     * @since 9.0.0
57
+     */
58
+    public function get($file);
59 59
 
60
-	/**
61
-	 * get the metadata of all files stored in $folder
62
-	 *
63
-	 * Only returns files one level deep, no recursion
64
-	 *
65
-	 * @param string $folder
66
-	 * @return ICacheEntry[]
67
-	 * @since 9.0.0
68
-	 */
69
-	public function getFolderContents($folder);
60
+    /**
61
+     * get the metadata of all files stored in $folder
62
+     *
63
+     * Only returns files one level deep, no recursion
64
+     *
65
+     * @param string $folder
66
+     * @return ICacheEntry[]
67
+     * @since 9.0.0
68
+     */
69
+    public function getFolderContents($folder);
70 70
 
71
-	/**
72
-	 * get the metadata of all files stored in $folder
73
-	 *
74
-	 * Only returns files one level deep, no recursion
75
-	 *
76
-	 * @param int $fileId the file id of the folder
77
-	 * @return ICacheEntry[]
78
-	 * @since 9.0.0
79
-	 */
80
-	public function getFolderContentsById($fileId);
71
+    /**
72
+     * get the metadata of all files stored in $folder
73
+     *
74
+     * Only returns files one level deep, no recursion
75
+     *
76
+     * @param int $fileId the file id of the folder
77
+     * @return ICacheEntry[]
78
+     * @since 9.0.0
79
+     */
80
+    public function getFolderContentsById($fileId);
81 81
 
82
-	/**
83
-	 * store meta data for a file or folder
84
-	 * This will automatically call either insert or update depending on if the file exists
85
-	 *
86
-	 * @param string $file
87
-	 * @param array $data
88
-	 *
89
-	 * @return int file id
90
-	 * @throws \RuntimeException
91
-	 * @since 9.0.0
92
-	 */
93
-	public function put($file, array $data);
82
+    /**
83
+     * store meta data for a file or folder
84
+     * This will automatically call either insert or update depending on if the file exists
85
+     *
86
+     * @param string $file
87
+     * @param array $data
88
+     *
89
+     * @return int file id
90
+     * @throws \RuntimeException
91
+     * @since 9.0.0
92
+     */
93
+    public function put($file, array $data);
94 94
 
95
-	/**
96
-	 * insert meta data for a new file or folder
97
-	 *
98
-	 * @param string $file
99
-	 * @param array $data
100
-	 *
101
-	 * @return int file id
102
-	 * @throws \RuntimeException
103
-	 * @since 9.0.0
104
-	 */
105
-	public function insert($file, array $data);
95
+    /**
96
+     * insert meta data for a new file or folder
97
+     *
98
+     * @param string $file
99
+     * @param array $data
100
+     *
101
+     * @return int file id
102
+     * @throws \RuntimeException
103
+     * @since 9.0.0
104
+     */
105
+    public function insert($file, array $data);
106 106
 
107
-	/**
108
-	 * update the metadata of an existing file or folder in the cache
109
-	 *
110
-	 * @param int $id the fileid of the existing file or folder
111
-	 * @param array $data [$key => $value] the metadata to update, only the fields provided in the array will be updated, non-provided values will remain unchanged
112
-	 * @since 9.0.0
113
-	 */
114
-	public function update($id, array $data);
107
+    /**
108
+     * update the metadata of an existing file or folder in the cache
109
+     *
110
+     * @param int $id the fileid of the existing file or folder
111
+     * @param array $data [$key => $value] the metadata to update, only the fields provided in the array will be updated, non-provided values will remain unchanged
112
+     * @since 9.0.0
113
+     */
114
+    public function update($id, array $data);
115 115
 
116
-	/**
117
-	 * get the file id for a file
118
-	 *
119
-	 * A file id is a numeric id for a file or folder that's unique within an owncloud instance which stays the same for the lifetime of a file
120
-	 *
121
-	 * File ids are easiest way for apps to store references to a file since unlike paths they are not affected by renames or sharing
122
-	 *
123
-	 * @param string $file
124
-	 * @return int
125
-	 * @since 9.0.0
126
-	 */
127
-	public function getId($file);
116
+    /**
117
+     * get the file id for a file
118
+     *
119
+     * A file id is a numeric id for a file or folder that's unique within an owncloud instance which stays the same for the lifetime of a file
120
+     *
121
+     * File ids are easiest way for apps to store references to a file since unlike paths they are not affected by renames or sharing
122
+     *
123
+     * @param string $file
124
+     * @return int
125
+     * @since 9.0.0
126
+     */
127
+    public function getId($file);
128 128
 
129
-	/**
130
-	 * get the id of the parent folder of a file
131
-	 *
132
-	 * @param string $file
133
-	 * @return int
134
-	 * @since 9.0.0
135
-	 */
136
-	public function getParentId($file);
129
+    /**
130
+     * get the id of the parent folder of a file
131
+     *
132
+     * @param string $file
133
+     * @return int
134
+     * @since 9.0.0
135
+     */
136
+    public function getParentId($file);
137 137
 
138
-	/**
139
-	 * check if a file is available in the cache
140
-	 *
141
-	 * @param string $file
142
-	 * @return bool
143
-	 * @since 9.0.0
144
-	 */
145
-	public function inCache($file);
138
+    /**
139
+     * check if a file is available in the cache
140
+     *
141
+     * @param string $file
142
+     * @return bool
143
+     * @since 9.0.0
144
+     */
145
+    public function inCache($file);
146 146
 
147
-	/**
148
-	 * remove a file or folder from the cache
149
-	 *
150
-	 * when removing a folder from the cache all files and folders inside the folder will be removed as well
151
-	 *
152
-	 * @param string $file
153
-	 * @since 9.0.0
154
-	 */
155
-	public function remove($file);
147
+    /**
148
+     * remove a file or folder from the cache
149
+     *
150
+     * when removing a folder from the cache all files and folders inside the folder will be removed as well
151
+     *
152
+     * @param string $file
153
+     * @since 9.0.0
154
+     */
155
+    public function remove($file);
156 156
 
157
-	/**
158
-	 * Move a file or folder in the cache
159
-	 *
160
-	 * @param string $source
161
-	 * @param string $target
162
-	 * @since 9.0.0
163
-	 */
164
-	public function move($source, $target);
157
+    /**
158
+     * Move a file or folder in the cache
159
+     *
160
+     * @param string $source
161
+     * @param string $target
162
+     * @since 9.0.0
163
+     */
164
+    public function move($source, $target);
165 165
 
166
-	/**
167
-	 * Move a file or folder in the cache
168
-	 *
169
-	 * Note that this should make sure the entries are removed from the source cache
170
-	 *
171
-	 * @param \OCP\Files\Cache\ICache $sourceCache
172
-	 * @param string $sourcePath
173
-	 * @param string $targetPath
174
-	 * @throws \OC\DatabaseException
175
-	 * @since 9.0.0
176
-	 */
177
-	public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath);
166
+    /**
167
+     * Move a file or folder in the cache
168
+     *
169
+     * Note that this should make sure the entries are removed from the source cache
170
+     *
171
+     * @param \OCP\Files\Cache\ICache $sourceCache
172
+     * @param string $sourcePath
173
+     * @param string $targetPath
174
+     * @throws \OC\DatabaseException
175
+     * @since 9.0.0
176
+     */
177
+    public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath);
178 178
 
179
-	/**
180
-	 * Get the scan status of a file
181
-	 *
182
-	 * - ICache::NOT_FOUND: File is not in the cache
183
-	 * - ICache::PARTIAL: File is not stored in the cache but some incomplete data is known
184
-	 * - ICache::SHALLOW: The folder and it's direct children are in the cache but not all sub folders are fully scanned
185
-	 * - ICache::COMPLETE: The file or folder, with all it's children) are fully scanned
186
-	 *
187
-	 * @param string $file
188
-	 *
189
-	 * @return int ICache::NOT_FOUND, ICache::PARTIAL, ICache::SHALLOW or ICache::COMPLETE
190
-	 * @since 9.0.0
191
-	 */
192
-	public function getStatus($file);
179
+    /**
180
+     * Get the scan status of a file
181
+     *
182
+     * - ICache::NOT_FOUND: File is not in the cache
183
+     * - ICache::PARTIAL: File is not stored in the cache but some incomplete data is known
184
+     * - ICache::SHALLOW: The folder and it's direct children are in the cache but not all sub folders are fully scanned
185
+     * - ICache::COMPLETE: The file or folder, with all it's children) are fully scanned
186
+     *
187
+     * @param string $file
188
+     *
189
+     * @return int ICache::NOT_FOUND, ICache::PARTIAL, ICache::SHALLOW or ICache::COMPLETE
190
+     * @since 9.0.0
191
+     */
192
+    public function getStatus($file);
193 193
 
194
-	/**
195
-	 * search for files matching $pattern, files are matched if their filename matches the search pattern
196
-	 *
197
-	 * @param string $pattern the search pattern using SQL search syntax (e.g. '%searchstring%')
198
-	 * @return ICacheEntry[] an array of cache entries where the name matches the search pattern
199
-	 * @since 9.0.0
200
-	 * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
201
-	 */
202
-	public function search($pattern);
194
+    /**
195
+     * search for files matching $pattern, files are matched if their filename matches the search pattern
196
+     *
197
+     * @param string $pattern the search pattern using SQL search syntax (e.g. '%searchstring%')
198
+     * @return ICacheEntry[] an array of cache entries where the name matches the search pattern
199
+     * @since 9.0.0
200
+     * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
201
+     */
202
+    public function search($pattern);
203 203
 
204
-	/**
205
-	 * search for files by mimetype
206
-	 *
207
-	 * @param string $mimetype either a full mimetype to search ('text/plain') or only the first part of a mimetype ('image')
208
-	 *        where it will search for all mimetypes in the group ('image/*')
209
-	 * @return ICacheEntry[] an array of cache entries where the mimetype matches the search
210
-	 * @since 9.0.0
211
-	 * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
212
-	 */
213
-	public function searchByMime($mimetype);
204
+    /**
205
+     * search for files by mimetype
206
+     *
207
+     * @param string $mimetype either a full mimetype to search ('text/plain') or only the first part of a mimetype ('image')
208
+     *        where it will search for all mimetypes in the group ('image/*')
209
+     * @return ICacheEntry[] an array of cache entries where the mimetype matches the search
210
+     * @since 9.0.0
211
+     * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
212
+     */
213
+    public function searchByMime($mimetype);
214 214
 
215
-	/**
216
-	 * Search for files by tag of a given users.
217
-	 *
218
-	 * Note that every user can tag files differently.
219
-	 *
220
-	 * @param string|int $tag name or tag id
221
-	 * @param string $userId owner of the tags
222
-	 * @return ICacheEntry[] file data
223
-	 * @since 9.0.0
224
-	 * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
225
-	 */
226
-	public function searchByTag($tag, $userId);
215
+    /**
216
+     * Search for files by tag of a given users.
217
+     *
218
+     * Note that every user can tag files differently.
219
+     *
220
+     * @param string|int $tag name or tag id
221
+     * @param string $userId owner of the tags
222
+     * @return ICacheEntry[] file data
223
+     * @since 9.0.0
224
+     * @deprecated 9.0.0 due to lack of pagination, not all backends might implement this
225
+     */
226
+    public function searchByTag($tag, $userId);
227 227
 
228
-	/**
229
-	 * find a folder in the cache which has not been fully scanned
230
-	 *
231
-	 * If multiple incomplete folders are in the cache, the one with the highest id will be returned,
232
-	 * use the one with the highest id gives the best result with the background scanner, since that is most
233
-	 * likely the folder where we stopped scanning previously
234
-	 *
235
-	 * @return string|bool the path of the folder or false when no folder matched
236
-	 * @since 9.0.0
237
-	 */
238
-	public function getIncomplete();
228
+    /**
229
+     * find a folder in the cache which has not been fully scanned
230
+     *
231
+     * If multiple incomplete folders are in the cache, the one with the highest id will be returned,
232
+     * use the one with the highest id gives the best result with the background scanner, since that is most
233
+     * likely the folder where we stopped scanning previously
234
+     *
235
+     * @return string|bool the path of the folder or false when no folder matched
236
+     * @since 9.0.0
237
+     */
238
+    public function getIncomplete();
239 239
 
240
-	/**
241
-	 * get the path of a file on this storage by it's file id
242
-	 *
243
-	 * @param int $id the file id of the file or folder to search
244
-	 * @return string|null the path of the file (relative to the storage) or null if a file with the given id does not exists within this cache
245
-	 * @since 9.0.0
246
-	 */
247
-	public function getPathById($id);
240
+    /**
241
+     * get the path of a file on this storage by it's file id
242
+     *
243
+     * @param int $id the file id of the file or folder to search
244
+     * @return string|null the path of the file (relative to the storage) or null if a file with the given id does not exists within this cache
245
+     * @since 9.0.0
246
+     */
247
+    public function getPathById($id);
248 248
 
249
-	/**
250
-	 * normalize the given path for usage in the cache
251
-	 *
252
-	 * @param string $path
253
-	 * @return string
254
-	 * @since 9.0.0
255
-	 */
256
-	public function normalize($path);
249
+    /**
250
+     * normalize the given path for usage in the cache
251
+     *
252
+     * @param string $path
253
+     * @return string
254
+     * @since 9.0.0
255
+     */
256
+    public function normalize($path);
257 257
 }
Please login to merge, or discard this patch.
lib/public/files/cache/ipropagator.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
  * @since 9.0.0
29 29
  */
30 30
 interface IPropagator {
31
-	/**
32
-	 * @param string $internalPath
33
-	 * @param int $time
34
-	 * @return array[] all propagated cache entries
35
-	 * @since 9.0.0
36
-	 */
37
-	public function propagateChange($internalPath, $time);
31
+    /**
32
+     * @param string $internalPath
33
+     * @param int $time
34
+     * @return array[] all propagated cache entries
35
+     * @since 9.0.0
36
+     */
37
+    public function propagateChange($internalPath, $time);
38 38
 }
Please login to merge, or discard this patch.
lib/public/files/imimetypedetector.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -34,46 +34,46 @@
 block discarded – undo
34 34
  **/
35 35
 interface IMimeTypeDetector {
36 36
 
37
-	/**
38
-	 * detect mimetype only based on filename, content of file is not used
39
-	 * @param string $path
40
-	 * @return string
41
-	 * @since 8.2.0
42
-	 **/
43
-	public function detectPath($path);
37
+    /**
38
+     * detect mimetype only based on filename, content of file is not used
39
+     * @param string $path
40
+     * @return string
41
+     * @since 8.2.0
42
+     **/
43
+    public function detectPath($path);
44 44
 
45
-	/**
46
-	 * detect mimetype based on both filename and content
47
-	 *
48
-	 * @param string $path
49
-	 * @return string
50
-	 * @since 8.2.0
51
-	 */
52
-	public function detect($path);
45
+    /**
46
+     * detect mimetype based on both filename and content
47
+     *
48
+     * @param string $path
49
+     * @return string
50
+     * @since 8.2.0
51
+     */
52
+    public function detect($path);
53 53
 
54
-	/**
55
-	 * Get a secure mimetype that won't expose potential XSS.
56
-	 *
57
-	 * @param string $mimeType
58
-	 * @return string
59
-	 * @since 8.2.0
60
-	 */
61
-	public function getSecureMimeType($mimeType);
54
+    /**
55
+     * Get a secure mimetype that won't expose potential XSS.
56
+     *
57
+     * @param string $mimeType
58
+     * @return string
59
+     * @since 8.2.0
60
+     */
61
+    public function getSecureMimeType($mimeType);
62 62
 
63
-	/**
64
-	 * detect mimetype based on the content of a string
65
-	 *
66
-	 * @param string $data
67
-	 * @return string
68
-	 * @since 8.2.0
69
-	 */
70
-	public function detectString($data);
63
+    /**
64
+     * detect mimetype based on the content of a string
65
+     *
66
+     * @param string $data
67
+     * @return string
68
+     * @since 8.2.0
69
+     */
70
+    public function detectString($data);
71 71
 
72
-	/**
73
-	 * Get path to the icon of a file type
74
-	 * @param string $mimeType the MIME type
75
-	 * @return string the url
76
-	 * @since 8.2.0
77
-	 */
78
-	public function mimeTypeIcon($mimeType);
72
+    /**
73
+     * Get path to the icon of a file type
74
+     * @param string $mimeType the MIME type
75
+     * @return string the url
76
+     * @since 8.2.0
77
+     */
78
+    public function mimeTypeIcon($mimeType);
79 79
 }
Please login to merge, or discard this patch.
lib/public/files/storage.php 1 patch
Indentation   +410 added lines, -410 removed lines patch added patch discarded remove patch
@@ -47,414 +47,414 @@
 block discarded – undo
47 47
  * @deprecated 9.0.0 use \OCP\Files\Storage\IStorage instead
48 48
  */
49 49
 interface Storage extends IStorage {
50
-	/**
51
-	 * $parameters is a free form array with the configuration options needed to construct the storage
52
-	 *
53
-	 * @param array $parameters
54
-	 * @since 6.0.0
55
-	 */
56
-	public function __construct($parameters);
57
-
58
-	/**
59
-	 * Get the identifier for the storage,
60
-	 * the returned id should be the same for every storage object that is created with the same parameters
61
-	 * and two storage objects with the same id should refer to two storages that display the same files.
62
-	 *
63
-	 * @return string
64
-	 * @since 6.0.0
65
-	 */
66
-	public function getId();
67
-
68
-	/**
69
-	 * see http://php.net/manual/en/function.mkdir.php
70
-	 * implementations need to implement a recursive mkdir
71
-	 *
72
-	 * @param string $path
73
-	 * @return bool
74
-	 * @since 6.0.0
75
-	 */
76
-	public function mkdir($path);
77
-
78
-	/**
79
-	 * see http://php.net/manual/en/function.rmdir.php
80
-	 *
81
-	 * @param string $path
82
-	 * @return bool
83
-	 * @since 6.0.0
84
-	 */
85
-	public function rmdir($path);
86
-
87
-	/**
88
-	 * see http://php.net/manual/en/function.opendir.php
89
-	 *
90
-	 * @param string $path
91
-	 * @return resource|false
92
-	 * @since 6.0.0
93
-	 */
94
-	public function opendir($path);
95
-
96
-	/**
97
-	 * see http://php.net/manual/en/function.is-dir.php
98
-	 *
99
-	 * @param string $path
100
-	 * @return bool
101
-	 * @since 6.0.0
102
-	 */
103
-	public function is_dir($path);
104
-
105
-	/**
106
-	 * see http://php.net/manual/en/function.is-file.php
107
-	 *
108
-	 * @param string $path
109
-	 * @return bool
110
-	 * @since 6.0.0
111
-	 */
112
-	public function is_file($path);
113
-
114
-	/**
115
-	 * see http://php.net/manual/en/function.stat.php
116
-	 * only the following keys are required in the result: size and mtime
117
-	 *
118
-	 * @param string $path
119
-	 * @return array|false
120
-	 * @since 6.0.0
121
-	 */
122
-	public function stat($path);
123
-
124
-	/**
125
-	 * see http://php.net/manual/en/function.filetype.php
126
-	 *
127
-	 * @param string $path
128
-	 * @return string|false
129
-	 * @since 6.0.0
130
-	 */
131
-	public function filetype($path);
132
-
133
-	/**
134
-	 * see http://php.net/manual/en/function.filesize.php
135
-	 * The result for filesize when called on a folder is required to be 0
136
-	 *
137
-	 * @param string $path
138
-	 * @return int|false
139
-	 * @since 6.0.0
140
-	 */
141
-	public function filesize($path);
142
-
143
-	/**
144
-	 * check if a file can be created in $path
145
-	 *
146
-	 * @param string $path
147
-	 * @return bool
148
-	 * @since 6.0.0
149
-	 */
150
-	public function isCreatable($path);
151
-
152
-	/**
153
-	 * check if a file can be read
154
-	 *
155
-	 * @param string $path
156
-	 * @return bool
157
-	 * @since 6.0.0
158
-	 */
159
-	public function isReadable($path);
160
-
161
-	/**
162
-	 * check if a file can be written to
163
-	 *
164
-	 * @param string $path
165
-	 * @return bool
166
-	 * @since 6.0.0
167
-	 */
168
-	public function isUpdatable($path);
169
-
170
-	/**
171
-	 * check if a file can be deleted
172
-	 *
173
-	 * @param string $path
174
-	 * @return bool
175
-	 * @since 6.0.0
176
-	 */
177
-	public function isDeletable($path);
178
-
179
-	/**
180
-	 * check if a file can be shared
181
-	 *
182
-	 * @param string $path
183
-	 * @return bool
184
-	 * @since 6.0.0
185
-	 */
186
-	public function isSharable($path);
187
-
188
-	/**
189
-	 * get the full permissions of a path.
190
-	 * Should return a combination of the PERMISSION_ constants defined in lib/public/constants.php
191
-	 *
192
-	 * @param string $path
193
-	 * @return int
194
-	 * @since 6.0.0
195
-	 */
196
-	public function getPermissions($path);
197
-
198
-	/**
199
-	 * see http://php.net/manual/en/function.file_exists.php
200
-	 *
201
-	 * @param string $path
202
-	 * @return bool
203
-	 * @since 6.0.0
204
-	 */
205
-	public function file_exists($path);
206
-
207
-	/**
208
-	 * see http://php.net/manual/en/function.filemtime.php
209
-	 *
210
-	 * @param string $path
211
-	 * @return int|false
212
-	 * @since 6.0.0
213
-	 */
214
-	public function filemtime($path);
215
-
216
-	/**
217
-	 * see http://php.net/manual/en/function.file_get_contents.php
218
-	 *
219
-	 * @param string $path
220
-	 * @return string|false
221
-	 * @since 6.0.0
222
-	 */
223
-	public function file_get_contents($path);
224
-
225
-	/**
226
-	 * see http://php.net/manual/en/function.file_put_contents.php
227
-	 *
228
-	 * @param string $path
229
-	 * @param string $data
230
-	 * @return bool
231
-	 * @since 6.0.0
232
-	 */
233
-	public function file_put_contents($path, $data);
234
-
235
-	/**
236
-	 * see http://php.net/manual/en/function.unlink.php
237
-	 *
238
-	 * @param string $path
239
-	 * @return bool
240
-	 * @since 6.0.0
241
-	 */
242
-	public function unlink($path);
243
-
244
-	/**
245
-	 * see http://php.net/manual/en/function.rename.php
246
-	 *
247
-	 * @param string $path1
248
-	 * @param string $path2
249
-	 * @return bool
250
-	 * @since 6.0.0
251
-	 */
252
-	public function rename($path1, $path2);
253
-
254
-	/**
255
-	 * see http://php.net/manual/en/function.copy.php
256
-	 *
257
-	 * @param string $path1
258
-	 * @param string $path2
259
-	 * @return bool
260
-	 * @since 6.0.0
261
-	 */
262
-	public function copy($path1, $path2);
263
-
264
-	/**
265
-	 * see http://php.net/manual/en/function.fopen.php
266
-	 *
267
-	 * @param string $path
268
-	 * @param string $mode
269
-	 * @return resource|false
270
-	 * @since 6.0.0
271
-	 */
272
-	public function fopen($path, $mode);
273
-
274
-	/**
275
-	 * get the mimetype for a file or folder
276
-	 * The mimetype for a folder is required to be "httpd/unix-directory"
277
-	 *
278
-	 * @param string $path
279
-	 * @return string|false
280
-	 * @since 6.0.0
281
-	 */
282
-	public function getMimeType($path);
283
-
284
-	/**
285
-	 * see http://php.net/manual/en/function.hash-file.php
286
-	 *
287
-	 * @param string $type
288
-	 * @param string $path
289
-	 * @param bool $raw
290
-	 * @return string|false
291
-	 * @since 6.0.0
292
-	 */
293
-	public function hash($type, $path, $raw = false);
294
-
295
-	/**
296
-	 * see http://php.net/manual/en/function.free_space.php
297
-	 *
298
-	 * @param string $path
299
-	 * @return int|false
300
-	 * @since 6.0.0
301
-	 */
302
-	public function free_space($path);
303
-
304
-	/**
305
-	 * search for occurrences of $query in file names
306
-	 *
307
-	 * @param string $query
308
-	 * @return array|false
309
-	 * @since 6.0.0
310
-	 */
311
-	public function search($query);
312
-
313
-	/**
314
-	 * see http://php.net/manual/en/function.touch.php
315
-	 * If the backend does not support the operation, false should be returned
316
-	 *
317
-	 * @param string $path
318
-	 * @param int $mtime
319
-	 * @return bool
320
-	 * @since 6.0.0
321
-	 */
322
-	public function touch($path, $mtime = null);
323
-
324
-	/**
325
-	 * get the path to a local version of the file.
326
-	 * The local version of the file can be temporary and doesn't have to be persistent across requests
327
-	 *
328
-	 * @param string $path
329
-	 * @return string|false
330
-	 * @since 6.0.0
331
-	 */
332
-	public function getLocalFile($path);
333
-
334
-	/**
335
-	 * check if a file or folder has been updated since $time
336
-	 *
337
-	 * @param string $path
338
-	 * @param int $time
339
-	 * @return bool
340
-	 * @since 6.0.0
341
-	 *
342
-	 * hasUpdated for folders should return at least true if a file inside the folder is add, removed or renamed.
343
-	 * returning true for other changes in the folder is optional
344
-	 */
345
-	public function hasUpdated($path, $time);
346
-
347
-	/**
348
-	 * get the ETag for a file or folder
349
-	 *
350
-	 * @param string $path
351
-	 * @return string|false
352
-	 * @since 6.0.0
353
-	 */
354
-	public function getETag($path);
355
-
356
-	/**
357
-	 * Returns whether the storage is local, which means that files
358
-	 * are stored on the local filesystem instead of remotely.
359
-	 * Calling getLocalFile() for local storages should always
360
-	 * return the local files, whereas for non-local storages
361
-	 * it might return a temporary file.
362
-	 *
363
-	 * @return bool true if the files are stored locally, false otherwise
364
-	 * @since 7.0.0
365
-	 */
366
-	public function isLocal();
367
-
368
-	/**
369
-	 * Check if the storage is an instance of $class or is a wrapper for a storage that is an instance of $class
370
-	 *
371
-	 * @param string $class
372
-	 * @return bool
373
-	 * @since 7.0.0
374
-	 */
375
-	public function instanceOfStorage($class);
376
-
377
-	/**
378
-	 * A custom storage implementation can return an url for direct download of a give file.
379
-	 *
380
-	 * For now the returned array can hold the parameter url - in future more attributes might follow.
381
-	 *
382
-	 * @param string $path
383
-	 * @return array|false
384
-	 * @since 8.0.0
385
-	 */
386
-	public function getDirectDownload($path);
387
-
388
-	/**
389
-	 * @param string $path the path of the target folder
390
-	 * @param string $fileName the name of the file itself
391
-	 * @return void
392
-	 * @throws InvalidPathException
393
-	 * @since 8.1.0
394
-	 */
395
-	public function verifyPath($path, $fileName);
396
-
397
-	/**
398
-	 * @param \OCP\Files\Storage $sourceStorage
399
-	 * @param string $sourceInternalPath
400
-	 * @param string $targetInternalPath
401
-	 * @return bool
402
-	 * @since 8.1.0
403
-	 */
404
-	public function copyFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath);
405
-
406
-	/**
407
-	 * @param \OCP\Files\Storage $sourceStorage
408
-	 * @param string $sourceInternalPath
409
-	 * @param string $targetInternalPath
410
-	 * @return bool
411
-	 * @since 8.1.0
412
-	 */
413
-	public function moveFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath);
414
-
415
-	/**
416
-	 * @param string $path The path of the file to acquire the lock for
417
-	 * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
418
-	 * @param \OCP\Lock\ILockingProvider $provider
419
-	 * @throws \OCP\Lock\LockedException
420
-	 * @since 8.1.0
421
-	 */
422
-	public function acquireLock($path, $type, ILockingProvider $provider);
423
-
424
-	/**
425
-	 * @param string $path The path of the file to acquire the lock for
426
-	 * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
427
-	 * @param \OCP\Lock\ILockingProvider $provider
428
-	 * @since 8.1.0
429
-	 */
430
-	public function releaseLock($path, $type, ILockingProvider $provider);
431
-
432
-	/**
433
-	 * @param string $path The path of the file to change the lock for
434
-	 * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
435
-	 * @param \OCP\Lock\ILockingProvider $provider
436
-	 * @throws \OCP\Lock\LockedException
437
-	 * @since 8.1.0
438
-	 */
439
-	public function changeLock($path, $type, ILockingProvider $provider);
440
-
441
-	/**
442
-	 * Test a storage for availability
443
-	 *
444
-	 * @since 8.2.0
445
-	 * @return bool
446
-	 */
447
-	public function test();
448
-
449
-	/**
450
-	 * @since 8.2.0
451
-	 * @return array [ available, last_checked ]
452
-	 */
453
-	public function getAvailability();
454
-
455
-	/**
456
-	 * @since 8.2.0
457
-	 * @param bool $isAvailable
458
-	 */
459
-	public function setAvailability($isAvailable);
50
+    /**
51
+     * $parameters is a free form array with the configuration options needed to construct the storage
52
+     *
53
+     * @param array $parameters
54
+     * @since 6.0.0
55
+     */
56
+    public function __construct($parameters);
57
+
58
+    /**
59
+     * Get the identifier for the storage,
60
+     * the returned id should be the same for every storage object that is created with the same parameters
61
+     * and two storage objects with the same id should refer to two storages that display the same files.
62
+     *
63
+     * @return string
64
+     * @since 6.0.0
65
+     */
66
+    public function getId();
67
+
68
+    /**
69
+     * see http://php.net/manual/en/function.mkdir.php
70
+     * implementations need to implement a recursive mkdir
71
+     *
72
+     * @param string $path
73
+     * @return bool
74
+     * @since 6.0.0
75
+     */
76
+    public function mkdir($path);
77
+
78
+    /**
79
+     * see http://php.net/manual/en/function.rmdir.php
80
+     *
81
+     * @param string $path
82
+     * @return bool
83
+     * @since 6.0.0
84
+     */
85
+    public function rmdir($path);
86
+
87
+    /**
88
+     * see http://php.net/manual/en/function.opendir.php
89
+     *
90
+     * @param string $path
91
+     * @return resource|false
92
+     * @since 6.0.0
93
+     */
94
+    public function opendir($path);
95
+
96
+    /**
97
+     * see http://php.net/manual/en/function.is-dir.php
98
+     *
99
+     * @param string $path
100
+     * @return bool
101
+     * @since 6.0.0
102
+     */
103
+    public function is_dir($path);
104
+
105
+    /**
106
+     * see http://php.net/manual/en/function.is-file.php
107
+     *
108
+     * @param string $path
109
+     * @return bool
110
+     * @since 6.0.0
111
+     */
112
+    public function is_file($path);
113
+
114
+    /**
115
+     * see http://php.net/manual/en/function.stat.php
116
+     * only the following keys are required in the result: size and mtime
117
+     *
118
+     * @param string $path
119
+     * @return array|false
120
+     * @since 6.0.0
121
+     */
122
+    public function stat($path);
123
+
124
+    /**
125
+     * see http://php.net/manual/en/function.filetype.php
126
+     *
127
+     * @param string $path
128
+     * @return string|false
129
+     * @since 6.0.0
130
+     */
131
+    public function filetype($path);
132
+
133
+    /**
134
+     * see http://php.net/manual/en/function.filesize.php
135
+     * The result for filesize when called on a folder is required to be 0
136
+     *
137
+     * @param string $path
138
+     * @return int|false
139
+     * @since 6.0.0
140
+     */
141
+    public function filesize($path);
142
+
143
+    /**
144
+     * check if a file can be created in $path
145
+     *
146
+     * @param string $path
147
+     * @return bool
148
+     * @since 6.0.0
149
+     */
150
+    public function isCreatable($path);
151
+
152
+    /**
153
+     * check if a file can be read
154
+     *
155
+     * @param string $path
156
+     * @return bool
157
+     * @since 6.0.0
158
+     */
159
+    public function isReadable($path);
160
+
161
+    /**
162
+     * check if a file can be written to
163
+     *
164
+     * @param string $path
165
+     * @return bool
166
+     * @since 6.0.0
167
+     */
168
+    public function isUpdatable($path);
169
+
170
+    /**
171
+     * check if a file can be deleted
172
+     *
173
+     * @param string $path
174
+     * @return bool
175
+     * @since 6.0.0
176
+     */
177
+    public function isDeletable($path);
178
+
179
+    /**
180
+     * check if a file can be shared
181
+     *
182
+     * @param string $path
183
+     * @return bool
184
+     * @since 6.0.0
185
+     */
186
+    public function isSharable($path);
187
+
188
+    /**
189
+     * get the full permissions of a path.
190
+     * Should return a combination of the PERMISSION_ constants defined in lib/public/constants.php
191
+     *
192
+     * @param string $path
193
+     * @return int
194
+     * @since 6.0.0
195
+     */
196
+    public function getPermissions($path);
197
+
198
+    /**
199
+     * see http://php.net/manual/en/function.file_exists.php
200
+     *
201
+     * @param string $path
202
+     * @return bool
203
+     * @since 6.0.0
204
+     */
205
+    public function file_exists($path);
206
+
207
+    /**
208
+     * see http://php.net/manual/en/function.filemtime.php
209
+     *
210
+     * @param string $path
211
+     * @return int|false
212
+     * @since 6.0.0
213
+     */
214
+    public function filemtime($path);
215
+
216
+    /**
217
+     * see http://php.net/manual/en/function.file_get_contents.php
218
+     *
219
+     * @param string $path
220
+     * @return string|false
221
+     * @since 6.0.0
222
+     */
223
+    public function file_get_contents($path);
224
+
225
+    /**
226
+     * see http://php.net/manual/en/function.file_put_contents.php
227
+     *
228
+     * @param string $path
229
+     * @param string $data
230
+     * @return bool
231
+     * @since 6.0.0
232
+     */
233
+    public function file_put_contents($path, $data);
234
+
235
+    /**
236
+     * see http://php.net/manual/en/function.unlink.php
237
+     *
238
+     * @param string $path
239
+     * @return bool
240
+     * @since 6.0.0
241
+     */
242
+    public function unlink($path);
243
+
244
+    /**
245
+     * see http://php.net/manual/en/function.rename.php
246
+     *
247
+     * @param string $path1
248
+     * @param string $path2
249
+     * @return bool
250
+     * @since 6.0.0
251
+     */
252
+    public function rename($path1, $path2);
253
+
254
+    /**
255
+     * see http://php.net/manual/en/function.copy.php
256
+     *
257
+     * @param string $path1
258
+     * @param string $path2
259
+     * @return bool
260
+     * @since 6.0.0
261
+     */
262
+    public function copy($path1, $path2);
263
+
264
+    /**
265
+     * see http://php.net/manual/en/function.fopen.php
266
+     *
267
+     * @param string $path
268
+     * @param string $mode
269
+     * @return resource|false
270
+     * @since 6.0.0
271
+     */
272
+    public function fopen($path, $mode);
273
+
274
+    /**
275
+     * get the mimetype for a file or folder
276
+     * The mimetype for a folder is required to be "httpd/unix-directory"
277
+     *
278
+     * @param string $path
279
+     * @return string|false
280
+     * @since 6.0.0
281
+     */
282
+    public function getMimeType($path);
283
+
284
+    /**
285
+     * see http://php.net/manual/en/function.hash-file.php
286
+     *
287
+     * @param string $type
288
+     * @param string $path
289
+     * @param bool $raw
290
+     * @return string|false
291
+     * @since 6.0.0
292
+     */
293
+    public function hash($type, $path, $raw = false);
294
+
295
+    /**
296
+     * see http://php.net/manual/en/function.free_space.php
297
+     *
298
+     * @param string $path
299
+     * @return int|false
300
+     * @since 6.0.0
301
+     */
302
+    public function free_space($path);
303
+
304
+    /**
305
+     * search for occurrences of $query in file names
306
+     *
307
+     * @param string $query
308
+     * @return array|false
309
+     * @since 6.0.0
310
+     */
311
+    public function search($query);
312
+
313
+    /**
314
+     * see http://php.net/manual/en/function.touch.php
315
+     * If the backend does not support the operation, false should be returned
316
+     *
317
+     * @param string $path
318
+     * @param int $mtime
319
+     * @return bool
320
+     * @since 6.0.0
321
+     */
322
+    public function touch($path, $mtime = null);
323
+
324
+    /**
325
+     * get the path to a local version of the file.
326
+     * The local version of the file can be temporary and doesn't have to be persistent across requests
327
+     *
328
+     * @param string $path
329
+     * @return string|false
330
+     * @since 6.0.0
331
+     */
332
+    public function getLocalFile($path);
333
+
334
+    /**
335
+     * check if a file or folder has been updated since $time
336
+     *
337
+     * @param string $path
338
+     * @param int $time
339
+     * @return bool
340
+     * @since 6.0.0
341
+     *
342
+     * hasUpdated for folders should return at least true if a file inside the folder is add, removed or renamed.
343
+     * returning true for other changes in the folder is optional
344
+     */
345
+    public function hasUpdated($path, $time);
346
+
347
+    /**
348
+     * get the ETag for a file or folder
349
+     *
350
+     * @param string $path
351
+     * @return string|false
352
+     * @since 6.0.0
353
+     */
354
+    public function getETag($path);
355
+
356
+    /**
357
+     * Returns whether the storage is local, which means that files
358
+     * are stored on the local filesystem instead of remotely.
359
+     * Calling getLocalFile() for local storages should always
360
+     * return the local files, whereas for non-local storages
361
+     * it might return a temporary file.
362
+     *
363
+     * @return bool true if the files are stored locally, false otherwise
364
+     * @since 7.0.0
365
+     */
366
+    public function isLocal();
367
+
368
+    /**
369
+     * Check if the storage is an instance of $class or is a wrapper for a storage that is an instance of $class
370
+     *
371
+     * @param string $class
372
+     * @return bool
373
+     * @since 7.0.0
374
+     */
375
+    public function instanceOfStorage($class);
376
+
377
+    /**
378
+     * A custom storage implementation can return an url for direct download of a give file.
379
+     *
380
+     * For now the returned array can hold the parameter url - in future more attributes might follow.
381
+     *
382
+     * @param string $path
383
+     * @return array|false
384
+     * @since 8.0.0
385
+     */
386
+    public function getDirectDownload($path);
387
+
388
+    /**
389
+     * @param string $path the path of the target folder
390
+     * @param string $fileName the name of the file itself
391
+     * @return void
392
+     * @throws InvalidPathException
393
+     * @since 8.1.0
394
+     */
395
+    public function verifyPath($path, $fileName);
396
+
397
+    /**
398
+     * @param \OCP\Files\Storage $sourceStorage
399
+     * @param string $sourceInternalPath
400
+     * @param string $targetInternalPath
401
+     * @return bool
402
+     * @since 8.1.0
403
+     */
404
+    public function copyFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath);
405
+
406
+    /**
407
+     * @param \OCP\Files\Storage $sourceStorage
408
+     * @param string $sourceInternalPath
409
+     * @param string $targetInternalPath
410
+     * @return bool
411
+     * @since 8.1.0
412
+     */
413
+    public function moveFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath);
414
+
415
+    /**
416
+     * @param string $path The path of the file to acquire the lock for
417
+     * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
418
+     * @param \OCP\Lock\ILockingProvider $provider
419
+     * @throws \OCP\Lock\LockedException
420
+     * @since 8.1.0
421
+     */
422
+    public function acquireLock($path, $type, ILockingProvider $provider);
423
+
424
+    /**
425
+     * @param string $path The path of the file to acquire the lock for
426
+     * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
427
+     * @param \OCP\Lock\ILockingProvider $provider
428
+     * @since 8.1.0
429
+     */
430
+    public function releaseLock($path, $type, ILockingProvider $provider);
431
+
432
+    /**
433
+     * @param string $path The path of the file to change the lock for
434
+     * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
435
+     * @param \OCP\Lock\ILockingProvider $provider
436
+     * @throws \OCP\Lock\LockedException
437
+     * @since 8.1.0
438
+     */
439
+    public function changeLock($path, $type, ILockingProvider $provider);
440
+
441
+    /**
442
+     * Test a storage for availability
443
+     *
444
+     * @since 8.2.0
445
+     * @return bool
446
+     */
447
+    public function test();
448
+
449
+    /**
450
+     * @since 8.2.0
451
+     * @return array [ available, last_checked ]
452
+     */
453
+    public function getAvailability();
454
+
455
+    /**
456
+     * @since 8.2.0
457
+     * @param bool $isAvailable
458
+     */
459
+    public function setAvailability($isAvailable);
460 460
 }
Please login to merge, or discard this patch.
lib/public/files/fileinfo.php 1 patch
Indentation   +214 added lines, -214 removed lines patch added patch discarded remove patch
@@ -33,218 +33,218 @@
 block discarded – undo
33 33
  * @since 7.0.0
34 34
  */
35 35
 interface FileInfo {
36
-	/**
37
-	 * @since 7.0.0
38
-	 */
39
-	const TYPE_FILE = 'file';
40
-	/**
41
-	 * @since 7.0.0
42
-	 */
43
-	const TYPE_FOLDER = 'dir';
44
-
45
-	/**
46
-	 * @const \OCP\Files\FileInfo::SPACE_NOT_COMPUTED Return value for a not computed space value
47
-	 * @since 8.0.0
48
-	 */
49
-	const SPACE_NOT_COMPUTED = -1;
50
-	/**
51
-	 * @const \OCP\Files\FileInfo::SPACE_UNKNOWN Return value for unknown space value
52
-	 * @since 8.0.0
53
-	 */
54
-	const SPACE_UNKNOWN = -2;
55
-	/**
56
-	 * @const \OCP\Files\FileInfo::SPACE_UNLIMITED Return value for unlimited space
57
-	 * @since 8.0.0
58
-	 */
59
-	const SPACE_UNLIMITED = -3;
60
-
61
-	/**
62
-	 * Get the Etag of the file or folder
63
-	 *
64
-	 * @return string
65
-	 * @since 7.0.0
66
-	 */
67
-	public function getEtag();
68
-
69
-	/**
70
-	 * Get the size in bytes for the file or folder
71
-	 *
72
-	 * @return int
73
-	 * @since 7.0.0
74
-	 */
75
-	public function getSize();
76
-
77
-	/**
78
-	 * Get the last modified date as timestamp for the file or folder
79
-	 *
80
-	 * @return int
81
-	 * @since 7.0.0
82
-	 */
83
-	public function getMtime();
84
-
85
-	/**
86
-	 * Get the name of the file or folder
87
-	 *
88
-	 * @return string
89
-	 * @since 7.0.0
90
-	 */
91
-	public function getName();
92
-
93
-	/**
94
-	 * Get the path relative to the storage
95
-	 *
96
-	 * @return string
97
-	 * @since 7.0.0
98
-	 */
99
-	public function getInternalPath();
100
-
101
-	/**
102
-	 * Get the absolute path
103
-	 *
104
-	 * @return string
105
-	 * @since 7.0.0
106
-	 */
107
-	public function getPath();
108
-
109
-	/**
110
-	 * Get the full mimetype of the file or folder i.e. 'image/png'
111
-	 *
112
-	 * @return string
113
-	 * @since 7.0.0
114
-	 */
115
-	public function getMimetype();
116
-
117
-	/**
118
-	 * Get the first part of the mimetype of the file or folder i.e. 'image'
119
-	 *
120
-	 * @return string
121
-	 * @since 7.0.0
122
-	 */
123
-	public function getMimePart();
124
-
125
-	/**
126
-	 * Get the storage the file or folder is storage on
127
-	 *
128
-	 * @return \OCP\Files\Storage
129
-	 * @since 7.0.0
130
-	 */
131
-	public function getStorage();
132
-
133
-	/**
134
-	 * Get the file id of the file or folder
135
-	 *
136
-	 * @return int
137
-	 * @since 7.0.0
138
-	 */
139
-	public function getId();
140
-
141
-	/**
142
-	 * Check whether the file is encrypted
143
-	 *
144
-	 * @return bool
145
-	 * @since 7.0.0
146
-	 */
147
-	public function isEncrypted();
148
-
149
-	/**
150
-	 * Get the permissions of the file or folder as bitmasked combination of the following constants
151
-	 * \OCP\Constants::PERMISSION_CREATE
152
-	 * \OCP\Constants::PERMISSION_READ
153
-	 * \OCP\Constants::PERMISSION_UPDATE
154
-	 * \OCP\Constants::PERMISSION_DELETE
155
-	 * \OCP\Constants::PERMISSION_SHARE
156
-	 * \OCP\Constants::PERMISSION_ALL
157
-	 *
158
-	 * @return int
159
-	 * @since 7.0.0 - namespace of constants has changed in 8.0.0
160
-	 */
161
-	public function getPermissions();
162
-
163
-	/**
164
-	 * Check whether this is a file or a folder
165
-	 *
166
-	 * @return \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
167
-	 * @since 7.0.0
168
-	 */
169
-	public function getType();
170
-
171
-	/**
172
-	 * Check if the file or folder is readable
173
-	 *
174
-	 * @return bool
175
-	 * @since 7.0.0
176
-	 */
177
-	public function isReadable();
178
-
179
-	/**
180
-	 * Check if a file is writable
181
-	 *
182
-	 * @return bool
183
-	 * @since 7.0.0
184
-	 */
185
-	public function isUpdateable();
186
-
187
-	/**
188
-	 * Check whether new files or folders can be created inside this folder
189
-	 *
190
-	 * @return bool
191
-	 * @since 8.0.0
192
-	 */
193
-	public function isCreatable();
194
-
195
-	/**
196
-	 * Check if a file or folder can be deleted
197
-	 *
198
-	 * @return bool
199
-	 * @since 7.0.0
200
-	 */
201
-	public function isDeletable();
202
-
203
-	/**
204
-	 * Check if a file or folder can be shared
205
-	 *
206
-	 * @return bool
207
-	 * @since 7.0.0
208
-	 */
209
-	public function isShareable();
210
-
211
-	/**
212
-	 * Check if a file or folder is shared
213
-	 *
214
-	 * @return bool
215
-	 * @since 7.0.0
216
-	 */
217
-	public function isShared();
218
-
219
-	/**
220
-	 * Check if a file or folder is mounted
221
-	 *
222
-	 * @return bool
223
-	 * @since 7.0.0
224
-	 */
225
-	public function isMounted();
226
-
227
-	/**
228
-	 * Get the mountpoint the file belongs to
229
-	 *
230
-	 * @return \OCP\Files\Mount\IMountPoint
231
-	 * @since 8.0.0
232
-	 */
233
-	public function getMountPoint();
234
-
235
-	/**
236
-	 * Get the owner of the file
237
-	 *
238
-	 * @return \OCP\IUser
239
-	 * @since 9.0.0
240
-	 */
241
-	public function getOwner();
242
-
243
-	/**
244
-	 * Get the stored checksum for this file
245
-	 *
246
-	 * @return string
247
-	 * @since 9.0.0
248
-	 */
249
-	public function getChecksum();
36
+    /**
37
+     * @since 7.0.0
38
+     */
39
+    const TYPE_FILE = 'file';
40
+    /**
41
+     * @since 7.0.0
42
+     */
43
+    const TYPE_FOLDER = 'dir';
44
+
45
+    /**
46
+     * @const \OCP\Files\FileInfo::SPACE_NOT_COMPUTED Return value for a not computed space value
47
+     * @since 8.0.0
48
+     */
49
+    const SPACE_NOT_COMPUTED = -1;
50
+    /**
51
+     * @const \OCP\Files\FileInfo::SPACE_UNKNOWN Return value for unknown space value
52
+     * @since 8.0.0
53
+     */
54
+    const SPACE_UNKNOWN = -2;
55
+    /**
56
+     * @const \OCP\Files\FileInfo::SPACE_UNLIMITED Return value for unlimited space
57
+     * @since 8.0.0
58
+     */
59
+    const SPACE_UNLIMITED = -3;
60
+
61
+    /**
62
+     * Get the Etag of the file or folder
63
+     *
64
+     * @return string
65
+     * @since 7.0.0
66
+     */
67
+    public function getEtag();
68
+
69
+    /**
70
+     * Get the size in bytes for the file or folder
71
+     *
72
+     * @return int
73
+     * @since 7.0.0
74
+     */
75
+    public function getSize();
76
+
77
+    /**
78
+     * Get the last modified date as timestamp for the file or folder
79
+     *
80
+     * @return int
81
+     * @since 7.0.0
82
+     */
83
+    public function getMtime();
84
+
85
+    /**
86
+     * Get the name of the file or folder
87
+     *
88
+     * @return string
89
+     * @since 7.0.0
90
+     */
91
+    public function getName();
92
+
93
+    /**
94
+     * Get the path relative to the storage
95
+     *
96
+     * @return string
97
+     * @since 7.0.0
98
+     */
99
+    public function getInternalPath();
100
+
101
+    /**
102
+     * Get the absolute path
103
+     *
104
+     * @return string
105
+     * @since 7.0.0
106
+     */
107
+    public function getPath();
108
+
109
+    /**
110
+     * Get the full mimetype of the file or folder i.e. 'image/png'
111
+     *
112
+     * @return string
113
+     * @since 7.0.0
114
+     */
115
+    public function getMimetype();
116
+
117
+    /**
118
+     * Get the first part of the mimetype of the file or folder i.e. 'image'
119
+     *
120
+     * @return string
121
+     * @since 7.0.0
122
+     */
123
+    public function getMimePart();
124
+
125
+    /**
126
+     * Get the storage the file or folder is storage on
127
+     *
128
+     * @return \OCP\Files\Storage
129
+     * @since 7.0.0
130
+     */
131
+    public function getStorage();
132
+
133
+    /**
134
+     * Get the file id of the file or folder
135
+     *
136
+     * @return int
137
+     * @since 7.0.0
138
+     */
139
+    public function getId();
140
+
141
+    /**
142
+     * Check whether the file is encrypted
143
+     *
144
+     * @return bool
145
+     * @since 7.0.0
146
+     */
147
+    public function isEncrypted();
148
+
149
+    /**
150
+     * Get the permissions of the file or folder as bitmasked combination of the following constants
151
+     * \OCP\Constants::PERMISSION_CREATE
152
+     * \OCP\Constants::PERMISSION_READ
153
+     * \OCP\Constants::PERMISSION_UPDATE
154
+     * \OCP\Constants::PERMISSION_DELETE
155
+     * \OCP\Constants::PERMISSION_SHARE
156
+     * \OCP\Constants::PERMISSION_ALL
157
+     *
158
+     * @return int
159
+     * @since 7.0.0 - namespace of constants has changed in 8.0.0
160
+     */
161
+    public function getPermissions();
162
+
163
+    /**
164
+     * Check whether this is a file or a folder
165
+     *
166
+     * @return \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
167
+     * @since 7.0.0
168
+     */
169
+    public function getType();
170
+
171
+    /**
172
+     * Check if the file or folder is readable
173
+     *
174
+     * @return bool
175
+     * @since 7.0.0
176
+     */
177
+    public function isReadable();
178
+
179
+    /**
180
+     * Check if a file is writable
181
+     *
182
+     * @return bool
183
+     * @since 7.0.0
184
+     */
185
+    public function isUpdateable();
186
+
187
+    /**
188
+     * Check whether new files or folders can be created inside this folder
189
+     *
190
+     * @return bool
191
+     * @since 8.0.0
192
+     */
193
+    public function isCreatable();
194
+
195
+    /**
196
+     * Check if a file or folder can be deleted
197
+     *
198
+     * @return bool
199
+     * @since 7.0.0
200
+     */
201
+    public function isDeletable();
202
+
203
+    /**
204
+     * Check if a file or folder can be shared
205
+     *
206
+     * @return bool
207
+     * @since 7.0.0
208
+     */
209
+    public function isShareable();
210
+
211
+    /**
212
+     * Check if a file or folder is shared
213
+     *
214
+     * @return bool
215
+     * @since 7.0.0
216
+     */
217
+    public function isShared();
218
+
219
+    /**
220
+     * Check if a file or folder is mounted
221
+     *
222
+     * @return bool
223
+     * @since 7.0.0
224
+     */
225
+    public function isMounted();
226
+
227
+    /**
228
+     * Get the mountpoint the file belongs to
229
+     *
230
+     * @return \OCP\Files\Mount\IMountPoint
231
+     * @since 8.0.0
232
+     */
233
+    public function getMountPoint();
234
+
235
+    /**
236
+     * Get the owner of the file
237
+     *
238
+     * @return \OCP\IUser
239
+     * @since 9.0.0
240
+     */
241
+    public function getOwner();
242
+
243
+    /**
244
+     * Get the stored checksum for this file
245
+     *
246
+     * @return string
247
+     * @since 9.0.0
248
+     */
249
+    public function getChecksum();
250 250
 }
Please login to merge, or discard this patch.