Completed
Push — master ( 38c8ea...c9712b )
by Joas
40:21
created
lib/public/Collaboration/Reference/IDiscoverableReferenceProvider.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -28,33 +28,33 @@
 block discarded – undo
28 28
  * @since 26.0.0
29 29
  */
30 30
 interface IDiscoverableReferenceProvider extends IReferenceProvider {
31
-	/**
32
-	 * @return string Unique id that identifies the reference provider
33
-	 * @since 26.0.0
34
-	 */
35
-	public function getId(): string;
31
+    /**
32
+     * @return string Unique id that identifies the reference provider
33
+     * @since 26.0.0
34
+     */
35
+    public function getId(): string;
36 36
 
37
-	/**
38
-	 * @return string User facing title of the widget
39
-	 * @since 26.0.0
40
-	 */
41
-	public function getTitle(): string;
37
+    /**
38
+     * @return string User facing title of the widget
39
+     * @since 26.0.0
40
+     */
41
+    public function getTitle(): string;
42 42
 
43
-	/**
44
-	 * @return int Initial order for reference provider sorting
45
-	 * @since 26.0.0
46
-	 */
47
-	public function getOrder(): int;
43
+    /**
44
+     * @return int Initial order for reference provider sorting
45
+     * @since 26.0.0
46
+     */
47
+    public function getOrder(): int;
48 48
 
49
-	/**
50
-	 * @return string url to an icon that can be displayed next to the reference provider title
51
-	 * @since 26.0.0
52
-	 */
53
-	public function getIconUrl(): string;
49
+    /**
50
+     * @return string url to an icon that can be displayed next to the reference provider title
51
+     * @since 26.0.0
52
+     */
53
+    public function getIconUrl(): string;
54 54
 
55
-	/**
56
-	 * @return array representation of the provider
57
-	 * @since 26.0.0
58
-	 */
59
-	public function jsonSerialize(): array;
55
+    /**
56
+     * @return array representation of the provider
57
+     * @since 26.0.0
58
+     */
59
+    public function jsonSerialize(): array;
60 60
 }
Please login to merge, or discard this patch.
lib/public/Collaboration/Reference/ADiscoverableReferenceProvider.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -30,19 +30,19 @@
 block discarded – undo
30 30
  * @since 26.0.0
31 31
  */
32 32
 abstract class ADiscoverableReferenceProvider implements IDiscoverableReferenceProvider, JsonSerializable {
33
-	/**
34
-	 * @since 26.0.0
35
-	 */
36
-	public function jsonSerialize(): array {
37
-		$json = [
38
-			'id' => $this->getId(),
39
-			'title' => $this->getTitle(),
40
-			'icon_url' => $this->getIconUrl(),
41
-			'order' => $this->getOrder(),
42
-		];
43
-		if ($this instanceof ISearchableReferenceProvider) {
44
-			$json['search_providers_ids'] = $this->getSupportedSearchProviderIds();
45
-		}
46
-		return $json;
47
-	}
33
+    /**
34
+     * @since 26.0.0
35
+     */
36
+    public function jsonSerialize(): array {
37
+        $json = [
38
+            'id' => $this->getId(),
39
+            'title' => $this->getTitle(),
40
+            'icon_url' => $this->getIconUrl(),
41
+            'order' => $this->getOrder(),
42
+        ];
43
+        if ($this instanceof ISearchableReferenceProvider) {
44
+            $json['search_providers_ids'] = $this->getSupportedSearchProviderIds();
45
+        }
46
+        return $json;
47
+    }
48 48
 }
Please login to merge, or discard this patch.
lib/public/Collaboration/Reference/ISearchableReferenceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
  * @since 26.0.0
29 29
  */
30 30
 interface ISearchableReferenceProvider extends IDiscoverableReferenceProvider {
31
-	/**
32
-	 * @return string[] list of search provider IDs that can be used by the vue-richtext picker
33
-	 * @since 26.0.0
34
-	 */
35
-	public function getSupportedSearchProviderIds(): array;
31
+    /**
32
+     * @return string[] list of search provider IDs that can be used by the vue-richtext picker
33
+     * @since 26.0.0
34
+     */
35
+    public function getSupportedSearchProviderIds(): array;
36 36
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Versions/IDeletableVersionBackend.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
  * @since 26.0.0
28 28
  */
29 29
 interface IDeletableVersionBackend {
30
-	/**
31
-	 * Delete a version.
32
-	 *
33
-	 * @since 26.0.0
34
-	 */
35
-	public function deleteVersion(IVersion $version): void;
30
+    /**
31
+     * Delete a version.
32
+     *
33
+     * @since 26.0.0
34
+     */
35
+    public function deleteVersion(IVersion $version): void;
36 36
 }
Please login to merge, or discard this patch.
lib/public/Share/IPublicShareTemplateFactory.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
  * @since 26.0.0
28 28
  */
29 29
 interface IPublicShareTemplateFactory {
30
-	/**
31
-	 * Returns a provider that is willing to respond for given share.
32
-	 * @since 26.0.0
33
-	 */
34
-	public function getProvider(IShare $share): IPublicShareTemplateProvider;
30
+    /**
31
+     * Returns a provider that is willing to respond for given share.
32
+     * @since 26.0.0
33
+     */
34
+    public function getProvider(IShare $share): IPublicShareTemplateProvider;
35 35
 }
Please login to merge, or discard this patch.
lib/public/Share/IPublicShareTemplateProvider.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
  * @since 26.0.0
30 30
  */
31 31
 interface IPublicShareTemplateProvider {
32
-	/**
33
-	 * Returns whether the provider can respond for the given share.
34
-	 * @since 26.0.0
35
-	 */
36
-	public function shouldRespond(IShare $share): bool;
37
-	/**
38
-	 * Returns the a template for a given share.
39
-	 * @since 26.0.0
40
-	 */
41
-	public function renderPage(IShare $share, string $token, string $path): TemplateResponse;
32
+    /**
33
+     * Returns whether the provider can respond for the given share.
34
+     * @since 26.0.0
35
+     */
36
+    public function shouldRespond(IShare $share): bool;
37
+    /**
38
+     * Returns the a template for a given share.
39
+     * @since 26.0.0
40
+     */
41
+    public function renderPage(IShare $share, string $token, string $path): TemplateResponse;
42 42
 }
Please login to merge, or discard this patch.
lib/public/Files/SimpleFS/InMemoryFile.php 1 patch
Indentation   +119 added lines, -119 removed lines patch added patch discarded remove patch
@@ -34,123 +34,123 @@
 block discarded – undo
34 34
  * @since 16.0.0
35 35
  */
36 36
 class InMemoryFile implements ISimpleFile {
37
-	/**
38
-	 * Holds the file name.
39
-	 */
40
-	private string $name;
41
-
42
-	/**
43
-	 * Holds the file contents.
44
-	 */
45
-	private string $contents;
46
-
47
-	/**
48
-	 * InMemoryFile constructor.
49
-	 *
50
-	 * @param string $name The file name
51
-	 * @param string $contents The file contents
52
-	 * @since 16.0.0
53
-	 */
54
-	public function __construct(string $name, string $contents) {
55
-		$this->name = $name;
56
-		$this->contents = $contents;
57
-	}
58
-
59
-	/**
60
-	 * @inheritdoc
61
-	 * @since 16.0.0
62
-	 */
63
-	public function getName(): string {
64
-		return $this->name;
65
-	}
66
-
67
-	/**
68
-	 * @inheritdoc
69
-	 * @since 16.0.0
70
-	 */
71
-	public function getSize(): int|float {
72
-		return strlen($this->contents);
73
-	}
74
-
75
-	/**
76
-	 * @inheritdoc
77
-	 * @since 16.0.0
78
-	 */
79
-	public function getETag(): string {
80
-		return '';
81
-	}
82
-
83
-	/**
84
-	 * @inheritdoc
85
-	 * @since 16.0.0
86
-	 */
87
-	public function getMTime(): int {
88
-		return time();
89
-	}
90
-
91
-	/**
92
-	 * @inheritdoc
93
-	 * @since 16.0.0
94
-	 */
95
-	public function getContent(): string {
96
-		return $this->contents;
97
-	}
98
-
99
-	/**
100
-	 * @inheritdoc
101
-	 * @since 16.0.0
102
-	 */
103
-	public function putContent($data): void {
104
-		$this->contents = $data;
105
-	}
106
-
107
-	/**
108
-	 * In memory files can't be deleted.
109
-	 *
110
-	 * @since 16.0.0
111
-	 */
112
-	public function delete(): void {
113
-		// unimplemented for in memory files
114
-	}
115
-
116
-	/**
117
-	 * @inheritdoc
118
-	 * @since 16.0.0
119
-	 */
120
-	public function getMimeType(): string {
121
-		$fileInfo = new \finfo(FILEINFO_MIME_TYPE);
122
-		return $fileInfo->buffer($this->contents);
123
-	}
124
-
125
-	/**
126
-	 * {@inheritDoc}
127
-	 * @since 24.0.0
128
-	 */
129
-	public function getExtension(): string {
130
-		return \pathinfo($this->name, PATHINFO_EXTENSION);
131
-	}
132
-
133
-	/**
134
-	 * Stream reading is unsupported for in memory files.
135
-	 *
136
-	 * @throws NotPermittedException
137
-	 * @since 16.0.0
138
-	 */
139
-	public function read() {
140
-		throw new NotPermittedException(
141
-			'Stream reading is unsupported for in memory files'
142
-		);
143
-	}
144
-
145
-	/**
146
-	 * Stream writing isn't available for in memory files.
147
-	 *
148
-	 * @throws NotPermittedException
149
-	 * @since 16.0.0
150
-	 */
151
-	public function write() {
152
-		throw new NotPermittedException(
153
-			'Stream writing is unsupported for in memory files'
154
-		);
155
-	}
37
+    /**
38
+     * Holds the file name.
39
+     */
40
+    private string $name;
41
+
42
+    /**
43
+     * Holds the file contents.
44
+     */
45
+    private string $contents;
46
+
47
+    /**
48
+     * InMemoryFile constructor.
49
+     *
50
+     * @param string $name The file name
51
+     * @param string $contents The file contents
52
+     * @since 16.0.0
53
+     */
54
+    public function __construct(string $name, string $contents) {
55
+        $this->name = $name;
56
+        $this->contents = $contents;
57
+    }
58
+
59
+    /**
60
+     * @inheritdoc
61
+     * @since 16.0.0
62
+     */
63
+    public function getName(): string {
64
+        return $this->name;
65
+    }
66
+
67
+    /**
68
+     * @inheritdoc
69
+     * @since 16.0.0
70
+     */
71
+    public function getSize(): int|float {
72
+        return strlen($this->contents);
73
+    }
74
+
75
+    /**
76
+     * @inheritdoc
77
+     * @since 16.0.0
78
+     */
79
+    public function getETag(): string {
80
+        return '';
81
+    }
82
+
83
+    /**
84
+     * @inheritdoc
85
+     * @since 16.0.0
86
+     */
87
+    public function getMTime(): int {
88
+        return time();
89
+    }
90
+
91
+    /**
92
+     * @inheritdoc
93
+     * @since 16.0.0
94
+     */
95
+    public function getContent(): string {
96
+        return $this->contents;
97
+    }
98
+
99
+    /**
100
+     * @inheritdoc
101
+     * @since 16.0.0
102
+     */
103
+    public function putContent($data): void {
104
+        $this->contents = $data;
105
+    }
106
+
107
+    /**
108
+     * In memory files can't be deleted.
109
+     *
110
+     * @since 16.0.0
111
+     */
112
+    public function delete(): void {
113
+        // unimplemented for in memory files
114
+    }
115
+
116
+    /**
117
+     * @inheritdoc
118
+     * @since 16.0.0
119
+     */
120
+    public function getMimeType(): string {
121
+        $fileInfo = new \finfo(FILEINFO_MIME_TYPE);
122
+        return $fileInfo->buffer($this->contents);
123
+    }
124
+
125
+    /**
126
+     * {@inheritDoc}
127
+     * @since 24.0.0
128
+     */
129
+    public function getExtension(): string {
130
+        return \pathinfo($this->name, PATHINFO_EXTENSION);
131
+    }
132
+
133
+    /**
134
+     * Stream reading is unsupported for in memory files.
135
+     *
136
+     * @throws NotPermittedException
137
+     * @since 16.0.0
138
+     */
139
+    public function read() {
140
+        throw new NotPermittedException(
141
+            'Stream reading is unsupported for in memory files'
142
+        );
143
+    }
144
+
145
+    /**
146
+     * Stream writing isn't available for in memory files.
147
+     *
148
+     * @throws NotPermittedException
149
+     * @since 16.0.0
150
+     */
151
+    public function write() {
152
+        throw new NotPermittedException(
153
+            'Stream writing is unsupported for in memory files'
154
+        );
155
+    }
156 156
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Versions/IVersion.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -32,71 +32,71 @@
 block discarded – undo
32 32
  * @since 15.0.0
33 33
  */
34 34
 interface IVersion {
35
-	/**
36
-	 * @return IVersionBackend
37
-	 * @since 15.0.0
38
-	 */
39
-	public function getBackend(): IVersionBackend;
35
+    /**
36
+     * @return IVersionBackend
37
+     * @since 15.0.0
38
+     */
39
+    public function getBackend(): IVersionBackend;
40 40
 
41
-	/**
42
-	 * Get the file info of the source file
43
-	 *
44
-	 * @return FileInfo
45
-	 * @since 15.0.0
46
-	 */
47
-	public function getSourceFile(): FileInfo;
41
+    /**
42
+     * Get the file info of the source file
43
+     *
44
+     * @return FileInfo
45
+     * @since 15.0.0
46
+     */
47
+    public function getSourceFile(): FileInfo;
48 48
 
49
-	/**
50
-	 * Get the id of the revision for the file
51
-	 *
52
-	 * @return int|string
53
-	 * @since 15.0.0
54
-	 */
55
-	public function getRevisionId();
49
+    /**
50
+     * Get the id of the revision for the file
51
+     *
52
+     * @return int|string
53
+     * @since 15.0.0
54
+     */
55
+    public function getRevisionId();
56 56
 
57
-	/**
58
-	 * Get the timestamp this version was created
59
-	 *
60
-	 * @return int
61
-	 * @since 15.0.0
62
-	 */
63
-	public function getTimestamp(): int;
57
+    /**
58
+     * Get the timestamp this version was created
59
+     *
60
+     * @return int
61
+     * @since 15.0.0
62
+     */
63
+    public function getTimestamp(): int;
64 64
 
65
-	/**
66
-	 * Get the size of this version
67
-	 *
68
-	 * @return int|float
69
-	 * @since 15.0.0
70
-	 */
71
-	public function getSize(): int|float;
65
+    /**
66
+     * Get the size of this version
67
+     *
68
+     * @return int|float
69
+     * @since 15.0.0
70
+     */
71
+    public function getSize(): int|float;
72 72
 
73
-	/**
74
-	 * Get the name of the source file at the time of making this version
75
-	 *
76
-	 * @return string
77
-	 * @since 15.0.0
78
-	 */
79
-	public function getSourceFileName(): string;
73
+    /**
74
+     * Get the name of the source file at the time of making this version
75
+     *
76
+     * @return string
77
+     * @since 15.0.0
78
+     */
79
+    public function getSourceFileName(): string;
80 80
 
81
-	/**
82
-	 * Get the mimetype of this version
83
-	 *
84
-	 * @return string
85
-	 * @since 15.0.0
86
-	 */
87
-	public function getMimeType(): string;
81
+    /**
82
+     * Get the mimetype of this version
83
+     *
84
+     * @return string
85
+     * @since 15.0.0
86
+     */
87
+    public function getMimeType(): string;
88 88
 
89
-	/**
90
-	 * Get the path of this version
91
-	 *
92
-	 * @return string
93
-	 * @since 15.0.0
94
-	 */
95
-	public function getVersionPath(): string;
89
+    /**
90
+     * Get the path of this version
91
+     *
92
+     * @return string
93
+     * @since 15.0.0
94
+     */
95
+    public function getVersionPath(): string;
96 96
 
97
-	/**
98
-	 * @return IUser
99
-	 * @since 15.0.0
100
-	 */
101
-	public function getUser(): IUser;
97
+    /**
98
+     * @return IUser
99
+     * @since 15.0.0
100
+     */
101
+    public function getUser(): IUser;
102 102
 }
Please login to merge, or discard this patch.
lib/public/IContainer.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -44,75 +44,75 @@
 block discarded – undo
44 44
  * @deprecated 20.0.0 use \Psr\Container\ContainerInterface
45 45
  */
46 46
 interface IContainer extends ContainerInterface {
47
-	/**
48
-	 * @template T
49
-	 *
50
-	 * If a parameter is not registered in the container try to instantiate it
51
-	 * by using reflection to find out how to build the class
52
-	 * @param string $name the class name to resolve
53
-	 * @psalm-param string|class-string<T> $name
54
-	 * @return \stdClass
55
-	 * @psalm-return ($name is class-string ? T : mixed)
56
-	 * @since 8.2.0
57
-	 * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
58
-	 * @throws ContainerExceptionInterface if the class could not be found or instantiated
59
-	 * @throws QueryException if the class could not be found or instantiated
60
-	 */
61
-	public function resolve($name);
47
+    /**
48
+     * @template T
49
+     *
50
+     * If a parameter is not registered in the container try to instantiate it
51
+     * by using reflection to find out how to build the class
52
+     * @param string $name the class name to resolve
53
+     * @psalm-param string|class-string<T> $name
54
+     * @return \stdClass
55
+     * @psalm-return ($name is class-string ? T : mixed)
56
+     * @since 8.2.0
57
+     * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
58
+     * @throws ContainerExceptionInterface if the class could not be found or instantiated
59
+     * @throws QueryException if the class could not be found or instantiated
60
+     */
61
+    public function resolve($name);
62 62
 
63
-	/**
64
-	 * Look up a service for a given name in the container.
65
-	 *
66
-	 * @template T
67
-	 *
68
-	 * @param string $name
69
-	 * @psalm-param string|class-string<T> $name
70
-	 * @param bool $autoload Should we try to autoload the service. If we are trying to resolve built in types this makes no sense for example
71
-	 * @return mixed
72
-	 * @psalm-return ($name is class-string ? T : mixed)
73
-	 * @throws ContainerExceptionInterface if the query could not be resolved
74
-	 * @throws NotFoundExceptionInterface if the name could not be found within the container
75
-	 * @throws QueryException if the query could not be resolved
76
-	 * @since 6.0.0
77
-	 * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
78
-	 */
79
-	public function query(string $name, bool $autoload = true);
63
+    /**
64
+     * Look up a service for a given name in the container.
65
+     *
66
+     * @template T
67
+     *
68
+     * @param string $name
69
+     * @psalm-param string|class-string<T> $name
70
+     * @param bool $autoload Should we try to autoload the service. If we are trying to resolve built in types this makes no sense for example
71
+     * @return mixed
72
+     * @psalm-return ($name is class-string ? T : mixed)
73
+     * @throws ContainerExceptionInterface if the query could not be resolved
74
+     * @throws NotFoundExceptionInterface if the name could not be found within the container
75
+     * @throws QueryException if the query could not be resolved
76
+     * @since 6.0.0
77
+     * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
78
+     */
79
+    public function query(string $name, bool $autoload = true);
80 80
 
81
-	/**
82
-	 * A value is stored in the container with it's corresponding name
83
-	 *
84
-	 * @param string $name
85
-	 * @param mixed $value
86
-	 * @return void
87
-	 * @since 6.0.0
88
-	 * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerParameter
89
-	 */
90
-	public function registerParameter($name, $value);
81
+    /**
82
+     * A value is stored in the container with it's corresponding name
83
+     *
84
+     * @param string $name
85
+     * @param mixed $value
86
+     * @return void
87
+     * @since 6.0.0
88
+     * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerParameter
89
+     */
90
+    public function registerParameter($name, $value);
91 91
 
92
-	/**
93
-	 * A service is registered in the container where a closure is passed in which will actually
94
-	 * create the service on demand.
95
-	 * In case the parameter $shared is set to true (the default usage) the once created service will remain in
96
-	 * memory and be reused on subsequent calls.
97
-	 * In case the parameter is false the service will be recreated on every call.
98
-	 *
99
-	 * @param string $name
100
-	 * @param \Closure $closure
101
-	 * @param bool $shared
102
-	 * @return void
103
-	 * @since 6.0.0
104
-	 * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerService
105
-	 */
106
-	public function registerService($name, Closure $closure, $shared = true);
92
+    /**
93
+     * A service is registered in the container where a closure is passed in which will actually
94
+     * create the service on demand.
95
+     * In case the parameter $shared is set to true (the default usage) the once created service will remain in
96
+     * memory and be reused on subsequent calls.
97
+     * In case the parameter is false the service will be recreated on every call.
98
+     *
99
+     * @param string $name
100
+     * @param \Closure $closure
101
+     * @param bool $shared
102
+     * @return void
103
+     * @since 6.0.0
104
+     * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerService
105
+     */
106
+    public function registerService($name, Closure $closure, $shared = true);
107 107
 
108
-	/**
109
-	 * Shortcut for returning a service from a service under a different key,
110
-	 * e.g. to tell the container to return a class when queried for an
111
-	 * interface
112
-	 * @param string $alias the alias that should be registered
113
-	 * @param string $target the target that should be resolved instead
114
-	 * @since 8.2.0
115
-	 * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerServiceAlias
116
-	 */
117
-	public function registerAlias($alias, $target);
108
+    /**
109
+     * Shortcut for returning a service from a service under a different key,
110
+     * e.g. to tell the container to return a class when queried for an
111
+     * interface
112
+     * @param string $alias the alias that should be registered
113
+     * @param string $target the target that should be resolved instead
114
+     * @since 8.2.0
115
+     * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerServiceAlias
116
+     */
117
+    public function registerAlias($alias, $target);
118 118
 }
Please login to merge, or discard this patch.