Completed
Pull Request — master (#4617)
by Julius
14:00
created
lib/public/Share_Backend.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -33,65 +33,65 @@
 block discarded – undo
33 33
  */
34 34
 interface Share_Backend {
35 35
 
36
-	/**
37
-	 * Check if this $itemSource exist for the user
38
-	 * @param string $itemSource
39
-	 * @param string $uidOwner Owner of the item
40
-	 * @return boolean|null Source
41
-	 *
42
-	 * Return false if the item does not exist for the user
43
-	 * @since 5.0.0
44
-	 */
45
-	public function isValidSource($itemSource, $uidOwner);
36
+    /**
37
+     * Check if this $itemSource exist for the user
38
+     * @param string $itemSource
39
+     * @param string $uidOwner Owner of the item
40
+     * @return boolean|null Source
41
+     *
42
+     * Return false if the item does not exist for the user
43
+     * @since 5.0.0
44
+     */
45
+    public function isValidSource($itemSource, $uidOwner);
46 46
 
47
-	/**
48
-	 * Get a unique name of the item for the specified user
49
-	 * @param string $itemSource
50
-	 * @param string|false $shareWith User the item is being shared with
51
-	 * @param array|null $exclude List of similar item names already existing as shared items @deprecated since version OC7
52
-	 * @return string Target name
53
-	 *
54
-	 * This function needs to verify that the user does not already have an item with this name.
55
-	 * If it does generate a new name e.g. name_#
56
-	 * @since 5.0.0
57
-	 */
58
-	public function generateTarget($itemSource, $shareWith, $exclude = null);
47
+    /**
48
+     * Get a unique name of the item for the specified user
49
+     * @param string $itemSource
50
+     * @param string|false $shareWith User the item is being shared with
51
+     * @param array|null $exclude List of similar item names already existing as shared items @deprecated since version OC7
52
+     * @return string Target name
53
+     *
54
+     * This function needs to verify that the user does not already have an item with this name.
55
+     * If it does generate a new name e.g. name_#
56
+     * @since 5.0.0
57
+     */
58
+    public function generateTarget($itemSource, $shareWith, $exclude = null);
59 59
 
60
-	/**
61
-	 * Converts the shared item sources back into the item in the specified format
62
-	 * @param array $items Shared items
63
-	 * @param int $format
64
-	 * @return array
65
-	 *
66
-	 * The items array is a 3-dimensional array with the item_source as the
67
-	 * first key and the share id as the second key to an array with the share
68
-	 * info.
69
-	 *
70
-	 * The key/value pairs included in the share info depend on the function originally called:
71
-	 * If called by getItem(s)Shared: id, item_type, item, item_source,
72
-	 * share_type, share_with, permissions, stime, file_source
73
-	 *
74
-	 * If called by getItem(s)SharedWith: id, item_type, item, item_source,
75
-	 * item_target, share_type, share_with, permissions, stime, file_source,
76
-	 * file_target
77
-	 *
78
-	 * This function allows the backend to control the output of shared items with custom formats.
79
-	 * It is only called through calls to the public getItem(s)Shared(With) functions.
80
-	 * @since 5.0.0
81
-	 */
82
-	public function formatItems($items, $format, $parameters = null);
60
+    /**
61
+     * Converts the shared item sources back into the item in the specified format
62
+     * @param array $items Shared items
63
+     * @param int $format
64
+     * @return array
65
+     *
66
+     * The items array is a 3-dimensional array with the item_source as the
67
+     * first key and the share id as the second key to an array with the share
68
+     * info.
69
+     *
70
+     * The key/value pairs included in the share info depend on the function originally called:
71
+     * If called by getItem(s)Shared: id, item_type, item, item_source,
72
+     * share_type, share_with, permissions, stime, file_source
73
+     *
74
+     * If called by getItem(s)SharedWith: id, item_type, item, item_source,
75
+     * item_target, share_type, share_with, permissions, stime, file_source,
76
+     * file_target
77
+     *
78
+     * This function allows the backend to control the output of shared items with custom formats.
79
+     * It is only called through calls to the public getItem(s)Shared(With) functions.
80
+     * @since 5.0.0
81
+     */
82
+    public function formatItems($items, $format, $parameters = null);
83 83
 
84
-	/**
85
-	 * Check if a given share type is allowd by the back-end
86
-	 *
87
-	 * @param int $shareType share type
88
-	 * @return boolean
89
-	 *
90
-	 * The back-end can enable/disable specific share types. Just return true if
91
-	 * the back-end doesn't provide any specific settings for it and want to allow
92
-	 * all share types defined by the share API
93
-	 * @since 8.0.0
94
-	 */
95
-	public function isShareTypeAllowed($shareType);
84
+    /**
85
+     * Check if a given share type is allowd by the back-end
86
+     *
87
+     * @param int $shareType share type
88
+     * @return boolean
89
+     *
90
+     * The back-end can enable/disable specific share types. Just return true if
91
+     * the back-end doesn't provide any specific settings for it and want to allow
92
+     * all share types defined by the share API
93
+     * @since 8.0.0
94
+     */
95
+    public function isShareTypeAllowed($shareType);
96 96
 
97 97
 }
Please login to merge, or discard this patch.
lib/public/ILogger.php 1 patch
Indentation   +100 added lines, -100 removed lines patch added patch discarded remove patch
@@ -33,113 +33,113 @@
 block discarded – undo
33 33
  * https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md#3-psrlogloggerinterface
34 34
  */
35 35
 interface ILogger {
36
-	/**
37
-	 * System is unusable.
38
-	 *
39
-	 * @param string $message
40
-	 * @param array $context
41
-	 * @return null
42
-	 * @since 7.0.0
43
-	 */
44
-	public function emergency($message, array $context = array());
36
+    /**
37
+     * System is unusable.
38
+     *
39
+     * @param string $message
40
+     * @param array $context
41
+     * @return null
42
+     * @since 7.0.0
43
+     */
44
+    public function emergency($message, array $context = array());
45 45
 
46
-	/**
47
-	 * Action must be taken immediately.
48
-	 *
49
-	 * @param string $message
50
-	 * @param array $context
51
-	 * @return null
52
-	 * @since 7.0.0
53
-	 */
54
-	public function alert($message, array $context = array());
46
+    /**
47
+     * Action must be taken immediately.
48
+     *
49
+     * @param string $message
50
+     * @param array $context
51
+     * @return null
52
+     * @since 7.0.0
53
+     */
54
+    public function alert($message, array $context = array());
55 55
 
56
-	/**
57
-	 * Critical conditions.
58
-	 *
59
-	 * @param string $message
60
-	 * @param array $context
61
-	 * @return null
62
-	 * @since 7.0.0
63
-	 */
64
-	public function critical($message, array $context = array());
56
+    /**
57
+     * Critical conditions.
58
+     *
59
+     * @param string $message
60
+     * @param array $context
61
+     * @return null
62
+     * @since 7.0.0
63
+     */
64
+    public function critical($message, array $context = array());
65 65
 
66
-	/**
67
-	 * Runtime errors that do not require immediate action but should typically
68
-	 * be logged and monitored.
69
-	 *
70
-	 * @param string $message
71
-	 * @param array $context
72
-	 * @return null
73
-	 * @since 7.0.0
74
-	 */
75
-	public function error($message, array $context = array());
66
+    /**
67
+     * Runtime errors that do not require immediate action but should typically
68
+     * be logged and monitored.
69
+     *
70
+     * @param string $message
71
+     * @param array $context
72
+     * @return null
73
+     * @since 7.0.0
74
+     */
75
+    public function error($message, array $context = array());
76 76
 
77
-	/**
78
-	 * Exceptional occurrences that are not errors.
79
-	 *
80
-	 * @param string $message
81
-	 * @param array $context
82
-	 * @return null
83
-	 * @since 7.0.0
84
-	 */
85
-	public function warning($message, array $context = array());
77
+    /**
78
+     * Exceptional occurrences that are not errors.
79
+     *
80
+     * @param string $message
81
+     * @param array $context
82
+     * @return null
83
+     * @since 7.0.0
84
+     */
85
+    public function warning($message, array $context = array());
86 86
 
87
-	/**
88
-	 * Normal but significant events.
89
-	 *
90
-	 * @param string $message
91
-	 * @param array $context
92
-	 * @return null
93
-	 * @since 7.0.0
94
-	 */
95
-	public function notice($message, array $context = array());
87
+    /**
88
+     * Normal but significant events.
89
+     *
90
+     * @param string $message
91
+     * @param array $context
92
+     * @return null
93
+     * @since 7.0.0
94
+     */
95
+    public function notice($message, array $context = array());
96 96
 
97
-	/**
98
-	 * Interesting events.
99
-	 *
100
-	 * @param string $message
101
-	 * @param array $context
102
-	 * @return null
103
-	 * @since 7.0.0
104
-	 */
105
-	public function info($message, array $context = array());
97
+    /**
98
+     * Interesting events.
99
+     *
100
+     * @param string $message
101
+     * @param array $context
102
+     * @return null
103
+     * @since 7.0.0
104
+     */
105
+    public function info($message, array $context = array());
106 106
 
107
-	/**
108
-	 * Detailed debug information.
109
-	 *
110
-	 * @param string $message
111
-	 * @param array $context
112
-	 * @return null
113
-	 * @since 7.0.0
114
-	 */
115
-	public function debug($message, array $context = array());
107
+    /**
108
+     * Detailed debug information.
109
+     *
110
+     * @param string $message
111
+     * @param array $context
112
+     * @return null
113
+     * @since 7.0.0
114
+     */
115
+    public function debug($message, array $context = array());
116 116
 
117
-	/**
118
-	 * Logs with an arbitrary level.
119
-	 *
120
-	 * @param mixed $level
121
-	 * @param string $message
122
-	 * @param array $context
123
-	 * @return mixed
124
-	 * @since 7.0.0
125
-	 */
126
-	public function log($level, $message, array $context = array());
117
+    /**
118
+     * Logs with an arbitrary level.
119
+     *
120
+     * @param mixed $level
121
+     * @param string $message
122
+     * @param array $context
123
+     * @return mixed
124
+     * @since 7.0.0
125
+     */
126
+    public function log($level, $message, array $context = array());
127 127
 
128
-	/**
129
-	 * Logs an exception very detailed
130
-	 * An additional message can we written to the log by adding it to the
131
-	 * context.
132
-	 *
133
-	 * <code>
134
-	 * $logger->logException($ex, [
135
-	 *     'message' => 'Exception during cron job execution'
136
-	 * ]);
137
-	 * </code>
138
-	 *
139
-	 * @param \Exception | \Throwable $exception
140
-	 * @param array $context
141
-	 * @return void
142
-	 * @since 8.2.0
143
-	 */
144
-	public function logException($exception, array $context = array());
128
+    /**
129
+     * Logs an exception very detailed
130
+     * An additional message can we written to the log by adding it to the
131
+     * context.
132
+     *
133
+     * <code>
134
+     * $logger->logException($ex, [
135
+     *     'message' => 'Exception during cron job execution'
136
+     * ]);
137
+     * </code>
138
+     *
139
+     * @param \Exception | \Throwable $exception
140
+     * @param array $context
141
+     * @return void
142
+     * @since 8.2.0
143
+     */
144
+    public function logException($exception, array $context = array());
145 145
 }
Please login to merge, or discard this patch.
lib/public/ICacheFactory.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -30,22 +30,22 @@
 block discarded – undo
30 30
  * @since 7.0.0
31 31
  */
32 32
 interface ICacheFactory{
33
-	/**
34
-	 * Get a memory cache instance
35
-	 *
36
-	 * All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps
37
-	 *
38
-	 * @param string $prefix
39
-	 * @return \OCP\ICache
40
-	 * @since 7.0.0
41
-	 */
42
-	public function create($prefix = '');
33
+    /**
34
+     * Get a memory cache instance
35
+     *
36
+     * All entries added trough the cache instance will be namespaced by $prefix to prevent collisions between apps
37
+     *
38
+     * @param string $prefix
39
+     * @return \OCP\ICache
40
+     * @since 7.0.0
41
+     */
42
+    public function create($prefix = '');
43 43
 
44
-	/**
45
-	 * Check if any memory cache backend is available
46
-	 *
47
-	 * @return bool
48
-	 * @since 7.0.0
49
-	 */
50
-	public function isAvailable();
44
+    /**
45
+     * Check if any memory cache backend is available
46
+     *
47
+     * @return bool
48
+     * @since 7.0.0
49
+     */
50
+    public function isAvailable();
51 51
 }
Please login to merge, or discard this patch.
lib/public/ISession.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -42,68 +42,68 @@
 block discarded – undo
42 42
  */
43 43
 interface ISession {
44 44
 
45
-	/**
46
-	 * Set a value in the session
47
-	 *
48
-	 * @param string $key
49
-	 * @param mixed $value
50
-	 * @since 6.0.0
51
-	 */
52
-	public function set($key, $value);
45
+    /**
46
+     * Set a value in the session
47
+     *
48
+     * @param string $key
49
+     * @param mixed $value
50
+     * @since 6.0.0
51
+     */
52
+    public function set($key, $value);
53 53
 
54
-	/**
55
-	 * Get a value from the session
56
-	 *
57
-	 * @param string $key
58
-	 * @return mixed should return null if $key does not exist
59
-	 * @since 6.0.0
60
-	 */
61
-	public function get($key);
54
+    /**
55
+     * Get a value from the session
56
+     *
57
+     * @param string $key
58
+     * @return mixed should return null if $key does not exist
59
+     * @since 6.0.0
60
+     */
61
+    public function get($key);
62 62
 
63
-	/**
64
-	 * Check if a named key exists in the session
65
-	 *
66
-	 * @param string $key
67
-	 * @return bool
68
-	 * @since 6.0.0
69
-	 */
70
-	public function exists($key);
63
+    /**
64
+     * Check if a named key exists in the session
65
+     *
66
+     * @param string $key
67
+     * @return bool
68
+     * @since 6.0.0
69
+     */
70
+    public function exists($key);
71 71
 
72
-	/**
73
-	 * Remove a $key/$value pair from the session
74
-	 *
75
-	 * @param string $key
76
-	 * @since 6.0.0
77
-	 */
78
-	public function remove($key);
72
+    /**
73
+     * Remove a $key/$value pair from the session
74
+     *
75
+     * @param string $key
76
+     * @since 6.0.0
77
+     */
78
+    public function remove($key);
79 79
 
80
-	/**
81
-	 * Reset and recreate the session
82
-	 * @since 6.0.0
83
-	 */
84
-	public function clear();
80
+    /**
81
+     * Reset and recreate the session
82
+     * @since 6.0.0
83
+     */
84
+    public function clear();
85 85
 
86
-	/**
87
-	 * Close the session and release the lock
88
-	 * @since 7.0.0
89
-	 */
90
-	public function close();
86
+    /**
87
+     * Close the session and release the lock
88
+     * @since 7.0.0
89
+     */
90
+    public function close();
91 91
 
92
-	/**
93
-	 * Wrapper around session_regenerate_id
94
-	 *
95
-	 * @param bool $deleteOldSession Whether to delete the old associated session file or not.
96
-	 * @return void
97
-	 * @since 9.0.0
98
-	 */
99
-	public function regenerateId($deleteOldSession = true);
92
+    /**
93
+     * Wrapper around session_regenerate_id
94
+     *
95
+     * @param bool $deleteOldSession Whether to delete the old associated session file or not.
96
+     * @return void
97
+     * @since 9.0.0
98
+     */
99
+    public function regenerateId($deleteOldSession = true);
100 100
 
101
-	/**
102
-	 * Wrapper around session_id
103
-	 *
104
-	 * @return string
105
-	 * @throws SessionNotAvailableException
106
-	 * @since 9.1.0
107
-	 */
108
-	public function getId();
101
+    /**
102
+     * Wrapper around session_id
103
+     *
104
+     * @return string
105
+     * @throws SessionNotAvailableException
106
+     * @since 9.1.0
107
+     */
108
+    public function getId();
109 109
 }
Please login to merge, or discard this patch.
lib/public/Constants.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -58,20 +58,20 @@
 block discarded – undo
58 58
  * @since 8.0.0
59 59
  */
60 60
 class Constants {
61
-	/**
62
-	 * CRUDS permissions.
63
-	 * @since 8.0.0
64
-	 */
65
-	const PERMISSION_CREATE = 4;
66
-	const PERMISSION_READ = 1;
67
-	const PERMISSION_UPDATE = 2;
68
-	const PERMISSION_DELETE = 8;
69
-	const PERMISSION_SHARE = 16;
70
-	const PERMISSION_ALL = 31;
61
+    /**
62
+     * CRUDS permissions.
63
+     * @since 8.0.0
64
+     */
65
+    const PERMISSION_CREATE = 4;
66
+    const PERMISSION_READ = 1;
67
+    const PERMISSION_UPDATE = 2;
68
+    const PERMISSION_DELETE = 8;
69
+    const PERMISSION_SHARE = 16;
70
+    const PERMISSION_ALL = 31;
71 71
 
72
-	/**
73
-	 * @since 8.0.0 - Updated in 9.0.0 to allow all POSIX chars since we no
74
-	 * longer support windows as server platform.
75
-	 */
76
-	const FILENAME_INVALID_CHARS = "\\/";
72
+    /**
73
+     * @since 8.0.0 - Updated in 9.0.0 to allow all POSIX chars since we no
74
+     * longer support windows as server platform.
75
+     */
76
+    const FILENAME_INVALID_CHARS = "\\/";
77 77
 }
Please login to merge, or discard this patch.
lib/public/Files/Mount/IMountManager.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -31,77 +31,77 @@
 block discarded – undo
31 31
  */
32 32
 interface IMountManager {
33 33
 
34
-	/**
35
-	 * Add a new mount
36
-	 *
37
-	 * @param \OCP\Files\Mount\IMountPoint $mount
38
-	 * @since 8.2.0
39
-	 */
40
-	public function addMount(IMountPoint $mount);
34
+    /**
35
+     * Add a new mount
36
+     *
37
+     * @param \OCP\Files\Mount\IMountPoint $mount
38
+     * @since 8.2.0
39
+     */
40
+    public function addMount(IMountPoint $mount);
41 41
 
42
-	/**
43
-	 * Remove a mount
44
-	 *
45
-	 * @param string $mountPoint
46
-	 * @since 8.2.0
47
-	 */
48
-	public function removeMount($mountPoint);
42
+    /**
43
+     * Remove a mount
44
+     *
45
+     * @param string $mountPoint
46
+     * @since 8.2.0
47
+     */
48
+    public function removeMount($mountPoint);
49 49
 
50
-	/**
51
-	 * Change the location of a mount
52
-	 *
53
-	 * @param string $mountPoint
54
-	 * @param string $target
55
-	 * @since 8.2.0
56
-	 */
57
-	public function moveMount($mountPoint, $target);
50
+    /**
51
+     * Change the location of a mount
52
+     *
53
+     * @param string $mountPoint
54
+     * @param string $target
55
+     * @since 8.2.0
56
+     */
57
+    public function moveMount($mountPoint, $target);
58 58
 
59
-	/**
60
-	 * Find the mount for $path
61
-	 *
62
-	 * @param string $path
63
-	 * @return \OCP\Files\Mount\IMountPoint
64
-	 * @since 8.2.0
65
-	 */
66
-	public function find($path);
59
+    /**
60
+     * Find the mount for $path
61
+     *
62
+     * @param string $path
63
+     * @return \OCP\Files\Mount\IMountPoint
64
+     * @since 8.2.0
65
+     */
66
+    public function find($path);
67 67
 
68
-	/**
69
-	 * Find all mounts in $path
70
-	 *
71
-	 * @param string $path
72
-	 * @return \OCP\Files\Mount\IMountPoint[]
73
-	 * @since 8.2.0
74
-	 */
75
-	public function findIn($path);
68
+    /**
69
+     * Find all mounts in $path
70
+     *
71
+     * @param string $path
72
+     * @return \OCP\Files\Mount\IMountPoint[]
73
+     * @since 8.2.0
74
+     */
75
+    public function findIn($path);
76 76
 
77
-	/**
78
-	 * Remove all registered mounts
79
-	 *
80
-	 * @since 8.2.0
81
-	 */
82
-	public function clear();
77
+    /**
78
+     * Remove all registered mounts
79
+     *
80
+     * @since 8.2.0
81
+     */
82
+    public function clear();
83 83
 
84
-	/**
85
-	 * Find mounts by storage id
86
-	 *
87
-	 * @param string $id
88
-	 * @return \OCP\Files\Mount\IMountPoint[]
89
-	 * @since 8.2.0
90
-	 */
91
-	public function findByStorageId($id);
84
+    /**
85
+     * Find mounts by storage id
86
+     *
87
+     * @param string $id
88
+     * @return \OCP\Files\Mount\IMountPoint[]
89
+     * @since 8.2.0
90
+     */
91
+    public function findByStorageId($id);
92 92
 
93
-	/**
94
-	 * @return \OCP\Files\Mount\IMountPoint[]
95
-	 * @since 8.2.0
96
-	 */
97
-	public function getAll();
93
+    /**
94
+     * @return \OCP\Files\Mount\IMountPoint[]
95
+     * @since 8.2.0
96
+     */
97
+    public function getAll();
98 98
 
99
-	/**
100
-	 * Find mounts by numeric storage id
101
-	 *
102
-	 * @param int $id
103
-	 * @return \OCP\Files\Mount\IMountPoint[]
104
-	 * @since 8.2.0
105
-	 */
106
-	public function findByNumericId($id);
99
+    /**
100
+     * Find mounts by numeric storage id
101
+     *
102
+     * @param int $id
103
+     * @return \OCP\Files\Mount\IMountPoint[]
104
+     * @since 8.2.0
105
+     */
106
+    public function findByNumericId($id);
107 107
 }
Please login to merge, or discard this patch.
lib/public/Files/ForbiddenException.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -32,25 +32,25 @@
 block discarded – undo
32 32
  */
33 33
 class ForbiddenException extends \Exception {
34 34
 
35
-	/** @var bool */
36
-	private $retry;
35
+    /** @var bool */
36
+    private $retry;
37 37
 
38
-	/**
39
-	 * @param string $message
40
-	 * @param bool $retry
41
-	 * @param \Exception $previous previous exception for cascading
42
-	 * @since 9.0.0
43
-	 */
44
-	public function __construct($message, $retry, \Exception $previous = null) {
45
-		parent::__construct($message, 0, $previous);
46
-		$this->retry = $retry;
47
-	}
38
+    /**
39
+     * @param string $message
40
+     * @param bool $retry
41
+     * @param \Exception $previous previous exception for cascading
42
+     * @since 9.0.0
43
+     */
44
+    public function __construct($message, $retry, \Exception $previous = null) {
45
+        parent::__construct($message, 0, $previous);
46
+        $this->retry = $retry;
47
+    }
48 48
 
49
-	/**
50
-	 * @return bool
51
-	 * @since 9.0.0
52
-	 */
53
-	public function getRetry() {
54
-		return (bool) $this->retry;
55
-	}
49
+    /**
50
+     * @return bool
51
+     * @since 9.0.0
52
+     */
53
+    public function getRetry() {
54
+        return (bool) $this->retry;
55
+    }
56 56
 }
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/StorageAuthException.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@
 block discarded – undo
27 27
  */
28 28
 class StorageAuthException extends StorageNotAvailableException {
29 29
 
30
-	/**
31
-	 * StorageAuthException constructor.
32
-	 *
33
-	 * @param string $message
34
-	 * @param int $code
35
-	 * @param \Exception $previous
36
-	 * @since 9.0.0
37
-	 */
38
-	public function __construct($message = '', \Exception $previous = null) {
39
-		$l = \OC::$server->getL10N('core');
40
-		parent::__construct($l->t('Storage unauthorized. %s', $message), self::STATUS_UNAUTHORIZED, $previous);
41
-	}
30
+    /**
31
+     * StorageAuthException constructor.
32
+     *
33
+     * @param string $message
34
+     * @param int $code
35
+     * @param \Exception $previous
36
+     * @since 9.0.0
37
+     */
38
+    public function __construct($message = '', \Exception $previous = null) {
39
+        $l = \OC::$server->getL10N('core');
40
+        parent::__construct($l->t('Storage unauthorized. %s', $message), self::STATUS_UNAUTHORIZED, $previous);
41
+    }
42 42
 }
Please login to merge, or discard this patch.