Completed
Pull Request — master (#359)
by Maxence
41s
created
lib/Vendor/Psr/Http/Message/RequestInterface.php 2 patches
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -23,108 +23,108 @@
 block discarded – undo
23 23
  */
24 24
 interface RequestInterface extends MessageInterface
25 25
 {
26
-    /**
27
-     * Retrieves the message's request target.
28
-     *
29
-     * Retrieves the message's request-target either as it will appear (for
30
-     * clients), as it appeared at request (for servers), or as it was
31
-     * specified for the instance (see withRequestTarget()).
32
-     *
33
-     * In most cases, this will be the origin-form of the composed URI,
34
-     * unless a value was provided to the concrete implementation (see
35
-     * withRequestTarget() below).
36
-     *
37
-     * If no URI is available, and no request-target has been specifically
38
-     * provided, this method MUST return the string "/".
39
-     *
40
-     * @return string
41
-     */
42
-    public function getRequestTarget(): string;
26
+	/**
27
+	 * Retrieves the message's request target.
28
+	 *
29
+	 * Retrieves the message's request-target either as it will appear (for
30
+	 * clients), as it appeared at request (for servers), or as it was
31
+	 * specified for the instance (see withRequestTarget()).
32
+	 *
33
+	 * In most cases, this will be the origin-form of the composed URI,
34
+	 * unless a value was provided to the concrete implementation (see
35
+	 * withRequestTarget() below).
36
+	 *
37
+	 * If no URI is available, and no request-target has been specifically
38
+	 * provided, this method MUST return the string "/".
39
+	 *
40
+	 * @return string
41
+	 */
42
+	public function getRequestTarget(): string;
43 43
 
44
-    /**
45
-     * Return an instance with the specific request-target.
46
-     *
47
-     * If the request needs a non-origin-form request-target — e.g., for
48
-     * specifying an absolute-form, authority-form, or asterisk-form —
49
-     * this method may be used to create an instance with the specified
50
-     * request-target, verbatim.
51
-     *
52
-     * This method MUST be implemented in such a way as to retain the
53
-     * immutability of the message, and MUST return an instance that has the
54
-     * changed request target.
55
-     *
56
-     * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
57
-     *     request-target forms allowed in request messages)
58
-     * @param string $requestTarget
59
-     * @return static
60
-     */
61
-    public function withRequestTarget(string $requestTarget): RequestInterface;
44
+	/**
45
+	 * Return an instance with the specific request-target.
46
+	 *
47
+	 * If the request needs a non-origin-form request-target — e.g., for
48
+	 * specifying an absolute-form, authority-form, or asterisk-form —
49
+	 * this method may be used to create an instance with the specified
50
+	 * request-target, verbatim.
51
+	 *
52
+	 * This method MUST be implemented in such a way as to retain the
53
+	 * immutability of the message, and MUST return an instance that has the
54
+	 * changed request target.
55
+	 *
56
+	 * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
57
+	 *     request-target forms allowed in request messages)
58
+	 * @param string $requestTarget
59
+	 * @return static
60
+	 */
61
+	public function withRequestTarget(string $requestTarget): RequestInterface;
62 62
 
63 63
 
64
-    /**
65
-     * Retrieves the HTTP method of the request.
66
-     *
67
-     * @return string Returns the request method.
68
-     */
69
-    public function getMethod(): string;
64
+	/**
65
+	 * Retrieves the HTTP method of the request.
66
+	 *
67
+	 * @return string Returns the request method.
68
+	 */
69
+	public function getMethod(): string;
70 70
 
71
-    /**
72
-     * Return an instance with the provided HTTP method.
73
-     *
74
-     * While HTTP method names are typically all uppercase characters, HTTP
75
-     * method names are case-sensitive and thus implementations SHOULD NOT
76
-     * modify the given string.
77
-     *
78
-     * This method MUST be implemented in such a way as to retain the
79
-     * immutability of the message, and MUST return an instance that has the
80
-     * changed request method.
81
-     *
82
-     * @param string $method Case-sensitive method.
83
-     * @return static
84
-     * @throws \InvalidArgumentException for invalid HTTP methods.
85
-     */
86
-    public function withMethod(string $method): RequestInterface;
71
+	/**
72
+	 * Return an instance with the provided HTTP method.
73
+	 *
74
+	 * While HTTP method names are typically all uppercase characters, HTTP
75
+	 * method names are case-sensitive and thus implementations SHOULD NOT
76
+	 * modify the given string.
77
+	 *
78
+	 * This method MUST be implemented in such a way as to retain the
79
+	 * immutability of the message, and MUST return an instance that has the
80
+	 * changed request method.
81
+	 *
82
+	 * @param string $method Case-sensitive method.
83
+	 * @return static
84
+	 * @throws \InvalidArgumentException for invalid HTTP methods.
85
+	 */
86
+	public function withMethod(string $method): RequestInterface;
87 87
 
88
-    /**
89
-     * Retrieves the URI instance.
90
-     *
91
-     * This method MUST return a UriInterface instance.
92
-     *
93
-     * @link http://tools.ietf.org/html/rfc3986#section-4.3
94
-     * @return UriInterface Returns a UriInterface instance
95
-     *     representing the URI of the request.
96
-     */
97
-    public function getUri(): UriInterface;
88
+	/**
89
+	 * Retrieves the URI instance.
90
+	 *
91
+	 * This method MUST return a UriInterface instance.
92
+	 *
93
+	 * @link http://tools.ietf.org/html/rfc3986#section-4.3
94
+	 * @return UriInterface Returns a UriInterface instance
95
+	 *     representing the URI of the request.
96
+	 */
97
+	public function getUri(): UriInterface;
98 98
 
99
-    /**
100
-     * Returns an instance with the provided URI.
101
-     *
102
-     * This method MUST update the Host header of the returned request by
103
-     * default if the URI contains a host component. If the URI does not
104
-     * contain a host component, any pre-existing Host header MUST be carried
105
-     * over to the returned request.
106
-     *
107
-     * You can opt-in to preserving the original state of the Host header by
108
-     * setting `$preserveHost` to `true`. When `$preserveHost` is set to
109
-     * `true`, this method interacts with the Host header in the following ways:
110
-     *
111
-     * - If the Host header is missing or empty, and the new URI contains
112
-     *   a host component, this method MUST update the Host header in the returned
113
-     *   request.
114
-     * - If the Host header is missing or empty, and the new URI does not contain a
115
-     *   host component, this method MUST NOT update the Host header in the returned
116
-     *   request.
117
-     * - If a Host header is present and non-empty, this method MUST NOT update
118
-     *   the Host header in the returned request.
119
-     *
120
-     * This method MUST be implemented in such a way as to retain the
121
-     * immutability of the message, and MUST return an instance that has the
122
-     * new UriInterface instance.
123
-     *
124
-     * @link http://tools.ietf.org/html/rfc3986#section-4.3
125
-     * @param UriInterface $uri New request URI to use.
126
-     * @param bool $preserveHost Preserve the original state of the Host header.
127
-     * @return static
128
-     */
129
-    public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface;
99
+	/**
100
+	 * Returns an instance with the provided URI.
101
+	 *
102
+	 * This method MUST update the Host header of the returned request by
103
+	 * default if the URI contains a host component. If the URI does not
104
+	 * contain a host component, any pre-existing Host header MUST be carried
105
+	 * over to the returned request.
106
+	 *
107
+	 * You can opt-in to preserving the original state of the Host header by
108
+	 * setting `$preserveHost` to `true`. When `$preserveHost` is set to
109
+	 * `true`, this method interacts with the Host header in the following ways:
110
+	 *
111
+	 * - If the Host header is missing or empty, and the new URI contains
112
+	 *   a host component, this method MUST update the Host header in the returned
113
+	 *   request.
114
+	 * - If the Host header is missing or empty, and the new URI does not contain a
115
+	 *   host component, this method MUST NOT update the Host header in the returned
116
+	 *   request.
117
+	 * - If a Host header is present and non-empty, this method MUST NOT update
118
+	 *   the Host header in the returned request.
119
+	 *
120
+	 * This method MUST be implemented in such a way as to retain the
121
+	 * immutability of the message, and MUST return an instance that has the
122
+	 * new UriInterface instance.
123
+	 *
124
+	 * @link http://tools.ietf.org/html/rfc3986#section-4.3
125
+	 * @param UriInterface $uri New request URI to use.
126
+	 * @param bool $preserveHost Preserve the original state of the Host header.
127
+	 * @return static
128
+	 */
129
+	public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface;
130 130
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
  * be implemented such that they retain the internal state of the current
22 22
  * message and return an instance that contains the changed state.
23 23
  */
24
-interface RequestInterface extends MessageInterface
25
-{
24
+interface RequestInterface extends MessageInterface {
26 25
     /**
27 26
      * Retrieves the message's request target.
28 27
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/UploadedFileInterface.php 2 patches
Indentation   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -12,112 +12,112 @@
 block discarded – undo
12 12
  */
13 13
 interface UploadedFileInterface
14 14
 {
15
-    /**
16
-     * Retrieve a stream representing the uploaded file.
17
-     *
18
-     * This method MUST return a StreamInterface instance, representing the
19
-     * uploaded file. The purpose of this method is to allow utilizing native PHP
20
-     * stream functionality to manipulate the file upload, such as
21
-     * stream_copy_to_stream() (though the result will need to be decorated in a
22
-     * native PHP stream wrapper to work with such functions).
23
-     *
24
-     * If the moveTo() method has been called previously, this method MUST raise
25
-     * an exception.
26
-     *
27
-     * @return StreamInterface Stream representation of the uploaded file.
28
-     * @throws \RuntimeException in cases when no stream is available or can be
29
-     *     created.
30
-     */
31
-    public function getStream(): StreamInterface;
15
+	/**
16
+	 * Retrieve a stream representing the uploaded file.
17
+	 *
18
+	 * This method MUST return a StreamInterface instance, representing the
19
+	 * uploaded file. The purpose of this method is to allow utilizing native PHP
20
+	 * stream functionality to manipulate the file upload, such as
21
+	 * stream_copy_to_stream() (though the result will need to be decorated in a
22
+	 * native PHP stream wrapper to work with such functions).
23
+	 *
24
+	 * If the moveTo() method has been called previously, this method MUST raise
25
+	 * an exception.
26
+	 *
27
+	 * @return StreamInterface Stream representation of the uploaded file.
28
+	 * @throws \RuntimeException in cases when no stream is available or can be
29
+	 *     created.
30
+	 */
31
+	public function getStream(): StreamInterface;
32 32
 
33
-    /**
34
-     * Move the uploaded file to a new location.
35
-     *
36
-     * Use this method as an alternative to move_uploaded_file(). This method is
37
-     * guaranteed to work in both SAPI and non-SAPI environments.
38
-     * Implementations must determine which environment they are in, and use the
39
-     * appropriate method (move_uploaded_file(), rename(), or a stream
40
-     * operation) to perform the operation.
41
-     *
42
-     * $targetPath may be an absolute path, or a relative path. If it is a
43
-     * relative path, resolution should be the same as used by PHP's rename()
44
-     * function.
45
-     *
46
-     * The original file or stream MUST be removed on completion.
47
-     *
48
-     * If this method is called more than once, any subsequent calls MUST raise
49
-     * an exception.
50
-     *
51
-     * When used in an SAPI environment where $_FILES is populated, when writing
52
-     * files via moveTo(), is_uploaded_file() and move_uploaded_file() SHOULD be
53
-     * used to ensure permissions and upload status are verified correctly.
54
-     *
55
-     * If you wish to move to a stream, use getStream(), as SAPI operations
56
-     * cannot guarantee writing to stream destinations.
57
-     *
58
-     * @see http://php.net/is_uploaded_file
59
-     * @see http://php.net/move_uploaded_file
60
-     * @param string $targetPath Path to which to move the uploaded file.
61
-     * @throws \InvalidArgumentException if the $targetPath specified is invalid.
62
-     * @throws \RuntimeException on any error during the move operation, or on
63
-     *     the second or subsequent call to the method.
64
-     */
65
-    public function moveTo(string $targetPath): void;
33
+	/**
34
+	 * Move the uploaded file to a new location.
35
+	 *
36
+	 * Use this method as an alternative to move_uploaded_file(). This method is
37
+	 * guaranteed to work in both SAPI and non-SAPI environments.
38
+	 * Implementations must determine which environment they are in, and use the
39
+	 * appropriate method (move_uploaded_file(), rename(), or a stream
40
+	 * operation) to perform the operation.
41
+	 *
42
+	 * $targetPath may be an absolute path, or a relative path. If it is a
43
+	 * relative path, resolution should be the same as used by PHP's rename()
44
+	 * function.
45
+	 *
46
+	 * The original file or stream MUST be removed on completion.
47
+	 *
48
+	 * If this method is called more than once, any subsequent calls MUST raise
49
+	 * an exception.
50
+	 *
51
+	 * When used in an SAPI environment where $_FILES is populated, when writing
52
+	 * files via moveTo(), is_uploaded_file() and move_uploaded_file() SHOULD be
53
+	 * used to ensure permissions and upload status are verified correctly.
54
+	 *
55
+	 * If you wish to move to a stream, use getStream(), as SAPI operations
56
+	 * cannot guarantee writing to stream destinations.
57
+	 *
58
+	 * @see http://php.net/is_uploaded_file
59
+	 * @see http://php.net/move_uploaded_file
60
+	 * @param string $targetPath Path to which to move the uploaded file.
61
+	 * @throws \InvalidArgumentException if the $targetPath specified is invalid.
62
+	 * @throws \RuntimeException on any error during the move operation, or on
63
+	 *     the second or subsequent call to the method.
64
+	 */
65
+	public function moveTo(string $targetPath): void;
66 66
     
67
-    /**
68
-     * Retrieve the file size.
69
-     *
70
-     * Implementations SHOULD return the value stored in the "size" key of
71
-     * the file in the $_FILES array if available, as PHP calculates this based
72
-     * on the actual size transmitted.
73
-     *
74
-     * @return int|null The file size in bytes or null if unknown.
75
-     */
76
-    public function getSize(): ?int;
67
+	/**
68
+	 * Retrieve the file size.
69
+	 *
70
+	 * Implementations SHOULD return the value stored in the "size" key of
71
+	 * the file in the $_FILES array if available, as PHP calculates this based
72
+	 * on the actual size transmitted.
73
+	 *
74
+	 * @return int|null The file size in bytes or null if unknown.
75
+	 */
76
+	public function getSize(): ?int;
77 77
     
78
-    /**
79
-     * Retrieve the error associated with the uploaded file.
80
-     *
81
-     * The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.
82
-     *
83
-     * If the file was uploaded successfully, this method MUST return
84
-     * UPLOAD_ERR_OK.
85
-     *
86
-     * Implementations SHOULD return the value stored in the "error" key of
87
-     * the file in the $_FILES array.
88
-     *
89
-     * @see http://php.net/manual/en/features.file-upload.errors.php
90
-     * @return int One of PHP's UPLOAD_ERR_XXX constants.
91
-     */
92
-    public function getError(): int;
78
+	/**
79
+	 * Retrieve the error associated with the uploaded file.
80
+	 *
81
+	 * The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.
82
+	 *
83
+	 * If the file was uploaded successfully, this method MUST return
84
+	 * UPLOAD_ERR_OK.
85
+	 *
86
+	 * Implementations SHOULD return the value stored in the "error" key of
87
+	 * the file in the $_FILES array.
88
+	 *
89
+	 * @see http://php.net/manual/en/features.file-upload.errors.php
90
+	 * @return int One of PHP's UPLOAD_ERR_XXX constants.
91
+	 */
92
+	public function getError(): int;
93 93
     
94
-    /**
95
-     * Retrieve the filename sent by the client.
96
-     *
97
-     * Do not trust the value returned by this method. A client could send
98
-     * a malicious filename with the intention to corrupt or hack your
99
-     * application.
100
-     *
101
-     * Implementations SHOULD return the value stored in the "name" key of
102
-     * the file in the $_FILES array.
103
-     *
104
-     * @return string|null The filename sent by the client or null if none
105
-     *     was provided.
106
-     */
107
-    public function getClientFilename(): ?string;
94
+	/**
95
+	 * Retrieve the filename sent by the client.
96
+	 *
97
+	 * Do not trust the value returned by this method. A client could send
98
+	 * a malicious filename with the intention to corrupt or hack your
99
+	 * application.
100
+	 *
101
+	 * Implementations SHOULD return the value stored in the "name" key of
102
+	 * the file in the $_FILES array.
103
+	 *
104
+	 * @return string|null The filename sent by the client or null if none
105
+	 *     was provided.
106
+	 */
107
+	public function getClientFilename(): ?string;
108 108
     
109
-    /**
110
-     * Retrieve the media type sent by the client.
111
-     *
112
-     * Do not trust the value returned by this method. A client could send
113
-     * a malicious media type with the intention to corrupt or hack your
114
-     * application.
115
-     *
116
-     * Implementations SHOULD return the value stored in the "type" key of
117
-     * the file in the $_FILES array.
118
-     *
119
-     * @return string|null The media type sent by the client or null if none
120
-     *     was provided.
121
-     */
122
-    public function getClientMediaType(): ?string;
109
+	/**
110
+	 * Retrieve the media type sent by the client.
111
+	 *
112
+	 * Do not trust the value returned by this method. A client could send
113
+	 * a malicious media type with the intention to corrupt or hack your
114
+	 * application.
115
+	 *
116
+	 * Implementations SHOULD return the value stored in the "type" key of
117
+	 * the file in the $_FILES array.
118
+	 *
119
+	 * @return string|null The media type sent by the client or null if none
120
+	 *     was provided.
121
+	 */
122
+	public function getClientMediaType(): ?string;
123 123
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
  * state of the current instance and return an instance that contains the
11 11
  * changed state.
12 12
  */
13
-interface UploadedFileInterface
14
-{
13
+interface UploadedFileInterface {
15 14
     /**
16 15
      * Retrieve a stream representing the uploaded file.
17 16
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/ServerRequestFactoryInterface.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 
5 5
 interface ServerRequestFactoryInterface
6 6
 {
7
-    /**
8
-     * Create a new server request.
9
-     *
10
-     * Note that server-params are taken precisely as given - no parsing/processing
11
-     * of the given values is performed, and, in particular, no attempt is made to
12
-     * determine the HTTP method or URI, which must be provided explicitly.
13
-     *
14
-     * @param string $method The HTTP method associated with the request.
15
-     * @param UriInterface|string $uri The URI associated with the request. If
16
-     *     the value is a string, the factory MUST create a UriInterface
17
-     *     instance based on it.
18
-     * @param array $serverParams Array of SAPI parameters with which to seed
19
-     *     the generated request instance.
20
-     *
21
-     * @return ServerRequestInterface
22
-     */
23
-    public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface;
7
+	/**
8
+	 * Create a new server request.
9
+	 *
10
+	 * Note that server-params are taken precisely as given - no parsing/processing
11
+	 * of the given values is performed, and, in particular, no attempt is made to
12
+	 * determine the HTTP method or URI, which must be provided explicitly.
13
+	 *
14
+	 * @param string $method The HTTP method associated with the request.
15
+	 * @param UriInterface|string $uri The URI associated with the request. If
16
+	 *     the value is a string, the factory MUST create a UriInterface
17
+	 *     instance based on it.
18
+	 * @param array $serverParams Array of SAPI parameters with which to seed
19
+	 *     the generated request instance.
20
+	 *
21
+	 * @return ServerRequestInterface
22
+	 */
23
+	public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface;
24 24
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message;
4 4
 
5
-interface ServerRequestFactoryInterface
6
-{
5
+interface ServerRequestFactoryInterface {
7 6
     /**
8 7
      * Create a new server request.
9 8
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/ResponseInterface.php 2 patches
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -19,50 +19,50 @@
 block discarded – undo
19 19
  */
20 20
 interface ResponseInterface extends MessageInterface
21 21
 {
22
-    /**
23
-     * Gets the response status code.
24
-     *
25
-     * The status code is a 3-digit integer result code of the server's attempt
26
-     * to understand and satisfy the request.
27
-     *
28
-     * @return int Status code.
29
-     */
30
-    public function getStatusCode(): int;
22
+	/**
23
+	 * Gets the response status code.
24
+	 *
25
+	 * The status code is a 3-digit integer result code of the server's attempt
26
+	 * to understand and satisfy the request.
27
+	 *
28
+	 * @return int Status code.
29
+	 */
30
+	public function getStatusCode(): int;
31 31
 
32
-    /**
33
-     * Return an instance with the specified status code and, optionally, reason phrase.
34
-     *
35
-     * If no reason phrase is specified, implementations MAY choose to default
36
-     * to the RFC 7231 or IANA recommended reason phrase for the response's
37
-     * status code.
38
-     *
39
-     * This method MUST be implemented in such a way as to retain the
40
-     * immutability of the message, and MUST return an instance that has the
41
-     * updated status and reason phrase.
42
-     *
43
-     * @link http://tools.ietf.org/html/rfc7231#section-6
44
-     * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
45
-     * @param int $code The 3-digit integer result code to set.
46
-     * @param string $reasonPhrase The reason phrase to use with the
47
-     *     provided status code; if none is provided, implementations MAY
48
-     *     use the defaults as suggested in the HTTP specification.
49
-     * @return static
50
-     * @throws \InvalidArgumentException For invalid status code arguments.
51
-     */
52
-    public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface;
32
+	/**
33
+	 * Return an instance with the specified status code and, optionally, reason phrase.
34
+	 *
35
+	 * If no reason phrase is specified, implementations MAY choose to default
36
+	 * to the RFC 7231 or IANA recommended reason phrase for the response's
37
+	 * status code.
38
+	 *
39
+	 * This method MUST be implemented in such a way as to retain the
40
+	 * immutability of the message, and MUST return an instance that has the
41
+	 * updated status and reason phrase.
42
+	 *
43
+	 * @link http://tools.ietf.org/html/rfc7231#section-6
44
+	 * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
45
+	 * @param int $code The 3-digit integer result code to set.
46
+	 * @param string $reasonPhrase The reason phrase to use with the
47
+	 *     provided status code; if none is provided, implementations MAY
48
+	 *     use the defaults as suggested in the HTTP specification.
49
+	 * @return static
50
+	 * @throws \InvalidArgumentException For invalid status code arguments.
51
+	 */
52
+	public function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface;
53 53
 
54
-    /**
55
-     * Gets the response reason phrase associated with the status code.
56
-     *
57
-     * Because a reason phrase is not a required element in a response
58
-     * status line, the reason phrase value MAY be null. Implementations MAY
59
-     * choose to return the default RFC 7231 recommended reason phrase (or those
60
-     * listed in the IANA HTTP Status Code Registry) for the response's
61
-     * status code.
62
-     *
63
-     * @link http://tools.ietf.org/html/rfc7231#section-6
64
-     * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
65
-     * @return string Reason phrase; must return an empty string if none present.
66
-     */
67
-    public function getReasonPhrase(): string;
54
+	/**
55
+	 * Gets the response reason phrase associated with the status code.
56
+	 *
57
+	 * Because a reason phrase is not a required element in a response
58
+	 * status line, the reason phrase value MAY be null. Implementations MAY
59
+	 * choose to return the default RFC 7231 recommended reason phrase (or those
60
+	 * listed in the IANA HTTP Status Code Registry) for the response's
61
+	 * status code.
62
+	 *
63
+	 * @link http://tools.ietf.org/html/rfc7231#section-6
64
+	 * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
65
+	 * @return string Reason phrase; must return an empty string if none present.
66
+	 */
67
+	public function getReasonPhrase(): string;
68 68
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
  * be implemented such that they retain the internal state of the current
18 18
  * message and return an instance that contains the changed state.
19 19
  */
20
-interface ResponseInterface extends MessageInterface
21
-{
20
+interface ResponseInterface extends MessageInterface {
22 21
     /**
23 22
      * Gets the response status code.
24 23
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/ServerRequestInterface.php 2 patches
Indentation   +204 added lines, -204 removed lines patch added patch discarded remove patch
@@ -42,220 +42,220 @@
 block discarded – undo
42 42
  */
43 43
 interface ServerRequestInterface extends RequestInterface
44 44
 {
45
-    /**
46
-     * Retrieve server parameters.
47
-     *
48
-     * Retrieves data related to the incoming request environment,
49
-     * typically derived from PHP's $_SERVER superglobal. The data IS NOT
50
-     * REQUIRED to originate from $_SERVER.
51
-     *
52
-     * @return array
53
-     */
54
-    public function getServerParams(): array;
45
+	/**
46
+	 * Retrieve server parameters.
47
+	 *
48
+	 * Retrieves data related to the incoming request environment,
49
+	 * typically derived from PHP's $_SERVER superglobal. The data IS NOT
50
+	 * REQUIRED to originate from $_SERVER.
51
+	 *
52
+	 * @return array
53
+	 */
54
+	public function getServerParams(): array;
55 55
 
56
-    /**
57
-     * Retrieve cookies.
58
-     *
59
-     * Retrieves cookies sent by the client to the server.
60
-     *
61
-     * The data MUST be compatible with the structure of the $_COOKIE
62
-     * superglobal.
63
-     *
64
-     * @return array
65
-     */
66
-    public function getCookieParams(): array;
56
+	/**
57
+	 * Retrieve cookies.
58
+	 *
59
+	 * Retrieves cookies sent by the client to the server.
60
+	 *
61
+	 * The data MUST be compatible with the structure of the $_COOKIE
62
+	 * superglobal.
63
+	 *
64
+	 * @return array
65
+	 */
66
+	public function getCookieParams(): array;
67 67
 
68
-    /**
69
-     * Return an instance with the specified cookies.
70
-     *
71
-     * The data IS NOT REQUIRED to come from the $_COOKIE superglobal, but MUST
72
-     * be compatible with the structure of $_COOKIE. Typically, this data will
73
-     * be injected at instantiation.
74
-     *
75
-     * This method MUST NOT update the related Cookie header of the request
76
-     * instance, nor related values in the server params.
77
-     *
78
-     * This method MUST be implemented in such a way as to retain the
79
-     * immutability of the message, and MUST return an instance that has the
80
-     * updated cookie values.
81
-     *
82
-     * @param array $cookies Array of key/value pairs representing cookies.
83
-     * @return static
84
-     */
85
-    public function withCookieParams(array $cookies): ServerRequestInterface;
68
+	/**
69
+	 * Return an instance with the specified cookies.
70
+	 *
71
+	 * The data IS NOT REQUIRED to come from the $_COOKIE superglobal, but MUST
72
+	 * be compatible with the structure of $_COOKIE. Typically, this data will
73
+	 * be injected at instantiation.
74
+	 *
75
+	 * This method MUST NOT update the related Cookie header of the request
76
+	 * instance, nor related values in the server params.
77
+	 *
78
+	 * This method MUST be implemented in such a way as to retain the
79
+	 * immutability of the message, and MUST return an instance that has the
80
+	 * updated cookie values.
81
+	 *
82
+	 * @param array $cookies Array of key/value pairs representing cookies.
83
+	 * @return static
84
+	 */
85
+	public function withCookieParams(array $cookies): ServerRequestInterface;
86 86
 
87
-    /**
88
-     * Retrieve query string arguments.
89
-     *
90
-     * Retrieves the deserialized query string arguments, if any.
91
-     *
92
-     * Note: the query params might not be in sync with the URI or server
93
-     * params. If you need to ensure you are only getting the original
94
-     * values, you may need to parse the query string from `getUri()->getQuery()`
95
-     * or from the `QUERY_STRING` server param.
96
-     *
97
-     * @return array
98
-     */
99
-    public function getQueryParams(): array;
87
+	/**
88
+	 * Retrieve query string arguments.
89
+	 *
90
+	 * Retrieves the deserialized query string arguments, if any.
91
+	 *
92
+	 * Note: the query params might not be in sync with the URI or server
93
+	 * params. If you need to ensure you are only getting the original
94
+	 * values, you may need to parse the query string from `getUri()->getQuery()`
95
+	 * or from the `QUERY_STRING` server param.
96
+	 *
97
+	 * @return array
98
+	 */
99
+	public function getQueryParams(): array;
100 100
 
101
-    /**
102
-     * Return an instance with the specified query string arguments.
103
-     *
104
-     * These values SHOULD remain immutable over the course of the incoming
105
-     * request. They MAY be injected during instantiation, such as from PHP's
106
-     * $_GET superglobal, or MAY be derived from some other value such as the
107
-     * URI. In cases where the arguments are parsed from the URI, the data
108
-     * MUST be compatible with what PHP's parse_str() would return for
109
-     * purposes of how duplicate query parameters are handled, and how nested
110
-     * sets are handled.
111
-     *
112
-     * Setting query string arguments MUST NOT change the URI stored by the
113
-     * request, nor the values in the server params.
114
-     *
115
-     * This method MUST be implemented in such a way as to retain the
116
-     * immutability of the message, and MUST return an instance that has the
117
-     * updated query string arguments.
118
-     *
119
-     * @param array $query Array of query string arguments, typically from
120
-     *     $_GET.
121
-     * @return static
122
-     */
123
-    public function withQueryParams(array $query): ServerRequestInterface;
101
+	/**
102
+	 * Return an instance with the specified query string arguments.
103
+	 *
104
+	 * These values SHOULD remain immutable over the course of the incoming
105
+	 * request. They MAY be injected during instantiation, such as from PHP's
106
+	 * $_GET superglobal, or MAY be derived from some other value such as the
107
+	 * URI. In cases where the arguments are parsed from the URI, the data
108
+	 * MUST be compatible with what PHP's parse_str() would return for
109
+	 * purposes of how duplicate query parameters are handled, and how nested
110
+	 * sets are handled.
111
+	 *
112
+	 * Setting query string arguments MUST NOT change the URI stored by the
113
+	 * request, nor the values in the server params.
114
+	 *
115
+	 * This method MUST be implemented in such a way as to retain the
116
+	 * immutability of the message, and MUST return an instance that has the
117
+	 * updated query string arguments.
118
+	 *
119
+	 * @param array $query Array of query string arguments, typically from
120
+	 *     $_GET.
121
+	 * @return static
122
+	 */
123
+	public function withQueryParams(array $query): ServerRequestInterface;
124 124
 
125
-    /**
126
-     * Retrieve normalized file upload data.
127
-     *
128
-     * This method returns upload metadata in a normalized tree, with each leaf
129
-     * an instance of OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\UploadedFileInterface.
130
-     *
131
-     * These values MAY be prepared from $_FILES or the message body during
132
-     * instantiation, or MAY be injected via withUploadedFiles().
133
-     *
134
-     * @return array An array tree of UploadedFileInterface instances; an empty
135
-     *     array MUST be returned if no data is present.
136
-     */
137
-    public function getUploadedFiles(): array;
125
+	/**
126
+	 * Retrieve normalized file upload data.
127
+	 *
128
+	 * This method returns upload metadata in a normalized tree, with each leaf
129
+	 * an instance of OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\UploadedFileInterface.
130
+	 *
131
+	 * These values MAY be prepared from $_FILES or the message body during
132
+	 * instantiation, or MAY be injected via withUploadedFiles().
133
+	 *
134
+	 * @return array An array tree of UploadedFileInterface instances; an empty
135
+	 *     array MUST be returned if no data is present.
136
+	 */
137
+	public function getUploadedFiles(): array;
138 138
 
139
-    /**
140
-     * Create a new instance with the specified uploaded files.
141
-     *
142
-     * This method MUST be implemented in such a way as to retain the
143
-     * immutability of the message, and MUST return an instance that has the
144
-     * updated body parameters.
145
-     *
146
-     * @param array $uploadedFiles An array tree of UploadedFileInterface instances.
147
-     * @return static
148
-     * @throws \InvalidArgumentException if an invalid structure is provided.
149
-     */
150
-    public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface;
139
+	/**
140
+	 * Create a new instance with the specified uploaded files.
141
+	 *
142
+	 * This method MUST be implemented in such a way as to retain the
143
+	 * immutability of the message, and MUST return an instance that has the
144
+	 * updated body parameters.
145
+	 *
146
+	 * @param array $uploadedFiles An array tree of UploadedFileInterface instances.
147
+	 * @return static
148
+	 * @throws \InvalidArgumentException if an invalid structure is provided.
149
+	 */
150
+	public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface;
151 151
 
152
-    /**
153
-     * Retrieve any parameters provided in the request body.
154
-     *
155
-     * If the request Content-Type is either application/x-www-form-urlencoded
156
-     * or multipart/form-data, and the request method is POST, this method MUST
157
-     * return the contents of $_POST.
158
-     *
159
-     * Otherwise, this method may return any results of deserializing
160
-     * the request body content; as parsing returns structured content, the
161
-     * potential types MUST be arrays or objects only. A null value indicates
162
-     * the absence of body content.
163
-     *
164
-     * @return null|array|object The deserialized body parameters, if any.
165
-     *     These will typically be an array or object.
166
-     */
167
-    public function getParsedBody();
152
+	/**
153
+	 * Retrieve any parameters provided in the request body.
154
+	 *
155
+	 * If the request Content-Type is either application/x-www-form-urlencoded
156
+	 * or multipart/form-data, and the request method is POST, this method MUST
157
+	 * return the contents of $_POST.
158
+	 *
159
+	 * Otherwise, this method may return any results of deserializing
160
+	 * the request body content; as parsing returns structured content, the
161
+	 * potential types MUST be arrays or objects only. A null value indicates
162
+	 * the absence of body content.
163
+	 *
164
+	 * @return null|array|object The deserialized body parameters, if any.
165
+	 *     These will typically be an array or object.
166
+	 */
167
+	public function getParsedBody();
168 168
 
169
-    /**
170
-     * Return an instance with the specified body parameters.
171
-     *
172
-     * These MAY be injected during instantiation.
173
-     *
174
-     * If the request Content-Type is either application/x-www-form-urlencoded
175
-     * or multipart/form-data, and the request method is POST, use this method
176
-     * ONLY to inject the contents of $_POST.
177
-     *
178
-     * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of
179
-     * deserializing the request body content. Deserialization/parsing returns
180
-     * structured data, and, as such, this method ONLY accepts arrays or objects,
181
-     * or a null value if nothing was available to parse.
182
-     *
183
-     * As an example, if content negotiation determines that the request data
184
-     * is a JSON payload, this method could be used to create a request
185
-     * instance with the deserialized parameters.
186
-     *
187
-     * This method MUST be implemented in such a way as to retain the
188
-     * immutability of the message, and MUST return an instance that has the
189
-     * updated body parameters.
190
-     *
191
-     * @param null|array|object $data The deserialized body data. This will
192
-     *     typically be in an array or object.
193
-     * @return static
194
-     * @throws \InvalidArgumentException if an unsupported argument type is
195
-     *     provided.
196
-     */
197
-    public function withParsedBody($data): ServerRequestInterface;
169
+	/**
170
+	 * Return an instance with the specified body parameters.
171
+	 *
172
+	 * These MAY be injected during instantiation.
173
+	 *
174
+	 * If the request Content-Type is either application/x-www-form-urlencoded
175
+	 * or multipart/form-data, and the request method is POST, use this method
176
+	 * ONLY to inject the contents of $_POST.
177
+	 *
178
+	 * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of
179
+	 * deserializing the request body content. Deserialization/parsing returns
180
+	 * structured data, and, as such, this method ONLY accepts arrays or objects,
181
+	 * or a null value if nothing was available to parse.
182
+	 *
183
+	 * As an example, if content negotiation determines that the request data
184
+	 * is a JSON payload, this method could be used to create a request
185
+	 * instance with the deserialized parameters.
186
+	 *
187
+	 * This method MUST be implemented in such a way as to retain the
188
+	 * immutability of the message, and MUST return an instance that has the
189
+	 * updated body parameters.
190
+	 *
191
+	 * @param null|array|object $data The deserialized body data. This will
192
+	 *     typically be in an array or object.
193
+	 * @return static
194
+	 * @throws \InvalidArgumentException if an unsupported argument type is
195
+	 *     provided.
196
+	 */
197
+	public function withParsedBody($data): ServerRequestInterface;
198 198
 
199
-    /**
200
-     * Retrieve attributes derived from the request.
201
-     *
202
-     * The request "attributes" may be used to allow injection of any
203
-     * parameters derived from the request: e.g., the results of path
204
-     * match operations; the results of decrypting cookies; the results of
205
-     * deserializing non-form-encoded message bodies; etc. Attributes
206
-     * will be application and request specific, and CAN be mutable.
207
-     *
208
-     * @return array Attributes derived from the request.
209
-     */
210
-    public function getAttributes(): array;
199
+	/**
200
+	 * Retrieve attributes derived from the request.
201
+	 *
202
+	 * The request "attributes" may be used to allow injection of any
203
+	 * parameters derived from the request: e.g., the results of path
204
+	 * match operations; the results of decrypting cookies; the results of
205
+	 * deserializing non-form-encoded message bodies; etc. Attributes
206
+	 * will be application and request specific, and CAN be mutable.
207
+	 *
208
+	 * @return array Attributes derived from the request.
209
+	 */
210
+	public function getAttributes(): array;
211 211
 
212
-    /**
213
-     * Retrieve a single derived request attribute.
214
-     *
215
-     * Retrieves a single derived request attribute as described in
216
-     * getAttributes(). If the attribute has not been previously set, returns
217
-     * the default value as provided.
218
-     *
219
-     * This method obviates the need for a hasAttribute() method, as it allows
220
-     * specifying a default value to return if the attribute is not found.
221
-     *
222
-     * @see getAttributes()
223
-     * @param string $name The attribute name.
224
-     * @param mixed $default Default value to return if the attribute does not exist.
225
-     * @return mixed
226
-     */
227
-    public function getAttribute(string $name, $default = null);
212
+	/**
213
+	 * Retrieve a single derived request attribute.
214
+	 *
215
+	 * Retrieves a single derived request attribute as described in
216
+	 * getAttributes(). If the attribute has not been previously set, returns
217
+	 * the default value as provided.
218
+	 *
219
+	 * This method obviates the need for a hasAttribute() method, as it allows
220
+	 * specifying a default value to return if the attribute is not found.
221
+	 *
222
+	 * @see getAttributes()
223
+	 * @param string $name The attribute name.
224
+	 * @param mixed $default Default value to return if the attribute does not exist.
225
+	 * @return mixed
226
+	 */
227
+	public function getAttribute(string $name, $default = null);
228 228
 
229
-    /**
230
-     * Return an instance with the specified derived request attribute.
231
-     *
232
-     * This method allows setting a single derived request attribute as
233
-     * described in getAttributes().
234
-     *
235
-     * This method MUST be implemented in such a way as to retain the
236
-     * immutability of the message, and MUST return an instance that has the
237
-     * updated attribute.
238
-     *
239
-     * @see getAttributes()
240
-     * @param string $name The attribute name.
241
-     * @param mixed $value The value of the attribute.
242
-     * @return static
243
-     */
244
-    public function withAttribute(string $name, $value): ServerRequestInterface;
229
+	/**
230
+	 * Return an instance with the specified derived request attribute.
231
+	 *
232
+	 * This method allows setting a single derived request attribute as
233
+	 * described in getAttributes().
234
+	 *
235
+	 * This method MUST be implemented in such a way as to retain the
236
+	 * immutability of the message, and MUST return an instance that has the
237
+	 * updated attribute.
238
+	 *
239
+	 * @see getAttributes()
240
+	 * @param string $name The attribute name.
241
+	 * @param mixed $value The value of the attribute.
242
+	 * @return static
243
+	 */
244
+	public function withAttribute(string $name, $value): ServerRequestInterface;
245 245
 
246
-    /**
247
-     * Return an instance that removes the specified derived request attribute.
248
-     *
249
-     * This method allows removing a single derived request attribute as
250
-     * described in getAttributes().
251
-     *
252
-     * This method MUST be implemented in such a way as to retain the
253
-     * immutability of the message, and MUST return an instance that removes
254
-     * the attribute.
255
-     *
256
-     * @see getAttributes()
257
-     * @param string $name The attribute name.
258
-     * @return static
259
-     */
260
-    public function withoutAttribute(string $name): ServerRequestInterface;
246
+	/**
247
+	 * Return an instance that removes the specified derived request attribute.
248
+	 *
249
+	 * This method allows removing a single derived request attribute as
250
+	 * described in getAttributes().
251
+	 *
252
+	 * This method MUST be implemented in such a way as to retain the
253
+	 * immutability of the message, and MUST return an instance that removes
254
+	 * the attribute.
255
+	 *
256
+	 * @see getAttributes()
257
+	 * @param string $name The attribute name.
258
+	 * @return static
259
+	 */
260
+	public function withoutAttribute(string $name): ServerRequestInterface;
261 261
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
  * be implemented such that they retain the internal state of the current
41 41
  * message and return an instance that contains the changed state.
42 42
  */
43
-interface ServerRequestInterface extends RequestInterface
44
-{
43
+interface ServerRequestInterface extends RequestInterface {
45 44
     /**
46 45
      * Retrieve server parameters.
47 46
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/UriFactoryInterface.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 interface UriFactoryInterface
6 6
 {
7
-    /**
8
-     * Create a new URI.
9
-     *
10
-     * @param string $uri
11
-     *
12
-     * @return UriInterface
13
-     *
14
-     * @throws \InvalidArgumentException If the given URI cannot be parsed.
15
-     */
16
-    public function createUri(string $uri = ''): UriInterface;
7
+	/**
8
+	 * Create a new URI.
9
+	 *
10
+	 * @param string $uri
11
+	 *
12
+	 * @return UriInterface
13
+	 *
14
+	 * @throws \InvalidArgumentException If the given URI cannot be parsed.
15
+	 */
16
+	public function createUri(string $uri = ''): UriInterface;
17 17
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message;
4 4
 
5
-interface UriFactoryInterface
6
-{
5
+interface UriFactoryInterface {
7 6
     /**
8 7
      * Create a new URI.
9 8
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/ResponseFactoryInterface.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 
5 5
 interface ResponseFactoryInterface
6 6
 {
7
-    /**
8
-     * Create a new response.
9
-     *
10
-     * @param int $code HTTP status code; defaults to 200
11
-     * @param string $reasonPhrase Reason phrase to associate with status code
12
-     *     in generated response; if none is provided implementations MAY use
13
-     *     the defaults as suggested in the HTTP specification.
14
-     *
15
-     * @return ResponseInterface
16
-     */
17
-    public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
7
+	/**
8
+	 * Create a new response.
9
+	 *
10
+	 * @param int $code HTTP status code; defaults to 200
11
+	 * @param string $reasonPhrase Reason phrase to associate with status code
12
+	 *     in generated response; if none is provided implementations MAY use
13
+	 *     the defaults as suggested in the HTTP specification.
14
+	 *
15
+	 * @return ResponseInterface
16
+	 */
17
+	public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
18 18
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message;
4 4
 
5
-interface ResponseFactoryInterface
6
-{
5
+interface ResponseFactoryInterface {
7 6
     /**
8 7
      * Create a new response.
9 8
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/StreamInterface.php 2 patches
Indentation   +144 added lines, -144 removed lines patch added patch discarded remove patch
@@ -11,148 +11,148 @@
 block discarded – undo
11 11
  */
12 12
 interface StreamInterface
13 13
 {
14
-    /**
15
-     * Reads all data from the stream into a string, from the beginning to end.
16
-     *
17
-     * This method MUST attempt to seek to the beginning of the stream before
18
-     * reading data and read the stream until the end is reached.
19
-     *
20
-     * Warning: This could attempt to load a large amount of data into memory.
21
-     *
22
-     * This method MUST NOT raise an exception in order to conform with PHP's
23
-     * string casting operations.
24
-     *
25
-     * @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
26
-     * @return string
27
-     */
28
-    public function __toString(): string;
29
-
30
-    /**
31
-     * Closes the stream and any underlying resources.
32
-     *
33
-     * @return void
34
-     */
35
-    public function close(): void;
36
-
37
-    /**
38
-     * Separates any underlying resources from the stream.
39
-     *
40
-     * After the stream has been detached, the stream is in an unusable state.
41
-     *
42
-     * @return resource|null Underlying PHP stream, if any
43
-     */
44
-    public function detach();
45
-
46
-    /**
47
-     * Get the size of the stream if known.
48
-     *
49
-     * @return int|null Returns the size in bytes if known, or null if unknown.
50
-     */
51
-    public function getSize(): ?int;
52
-
53
-    /**
54
-     * Returns the current position of the file read/write pointer
55
-     *
56
-     * @return int Position of the file pointer
57
-     * @throws \RuntimeException on error.
58
-     */
59
-    public function tell(): int;
60
-
61
-    /**
62
-     * Returns true if the stream is at the end of the stream.
63
-     *
64
-     * @return bool
65
-     */
66
-    public function eof(): bool;
67
-
68
-    /**
69
-     * Returns whether or not the stream is seekable.
70
-     *
71
-     * @return bool
72
-     */
73
-    public function isSeekable(): bool;
74
-
75
-    /**
76
-     * Seek to a position in the stream.
77
-     *
78
-     * @link http://www.php.net/manual/en/function.fseek.php
79
-     * @param int $offset Stream offset
80
-     * @param int $whence Specifies how the cursor position will be calculated
81
-     *     based on the seek offset. Valid values are identical to the built-in
82
-     *     PHP $whence values for `fseek()`.  SEEK_SET: Set position equal to
83
-     *     offset bytes SEEK_CUR: Set position to current location plus offset
84
-     *     SEEK_END: Set position to end-of-stream plus offset.
85
-     * @throws \RuntimeException on failure.
86
-     */
87
-    public function seek(int $offset, int $whence = SEEK_SET): void;
88
-
89
-    /**
90
-     * Seek to the beginning of the stream.
91
-     *
92
-     * If the stream is not seekable, this method will raise an exception;
93
-     * otherwise, it will perform a seek(0).
94
-     *
95
-     * @see seek()
96
-     * @link http://www.php.net/manual/en/function.fseek.php
97
-     * @throws \RuntimeException on failure.
98
-     */
99
-    public function rewind(): void;
100
-
101
-    /**
102
-     * Returns whether or not the stream is writable.
103
-     *
104
-     * @return bool
105
-     */
106
-    public function isWritable(): bool;
107
-
108
-    /**
109
-     * Write data to the stream.
110
-     *
111
-     * @param string $string The string that is to be written.
112
-     * @return int Returns the number of bytes written to the stream.
113
-     * @throws \RuntimeException on failure.
114
-     */
115
-    public function write(string $string): int;
116
-
117
-    /**
118
-     * Returns whether or not the stream is readable.
119
-     *
120
-     * @return bool
121
-     */
122
-    public function isReadable(): bool;
123
-
124
-    /**
125
-     * Read data from the stream.
126
-     *
127
-     * @param int $length Read up to $length bytes from the object and return
128
-     *     them. Fewer than $length bytes may be returned if underlying stream
129
-     *     call returns fewer bytes.
130
-     * @return string Returns the data read from the stream, or an empty string
131
-     *     if no bytes are available.
132
-     * @throws \RuntimeException if an error occurs.
133
-     */
134
-    public function read(int $length): string;
135
-
136
-    /**
137
-     * Returns the remaining contents in a string
138
-     *
139
-     * @return string
140
-     * @throws \RuntimeException if unable to read or an error occurs while
141
-     *     reading.
142
-     */
143
-    public function getContents(): string;
144
-
145
-    /**
146
-     * Get stream metadata as an associative array or retrieve a specific key.
147
-     *
148
-     * The keys returned are identical to the keys returned from PHP's
149
-     * stream_get_meta_data() function.
150
-     *
151
-     * @link http://php.net/manual/en/function.stream-get-meta-data.php
152
-     * @param string|null $key Specific metadata to retrieve.
153
-     * @return array|mixed|null Returns an associative array if no key is
154
-     *     provided. Returns a specific key value if a key is provided and the
155
-     *     value is found, or null if the key is not found.
156
-     */
157
-    public function getMetadata(?string $key = null);
14
+	/**
15
+	 * Reads all data from the stream into a string, from the beginning to end.
16
+	 *
17
+	 * This method MUST attempt to seek to the beginning of the stream before
18
+	 * reading data and read the stream until the end is reached.
19
+	 *
20
+	 * Warning: This could attempt to load a large amount of data into memory.
21
+	 *
22
+	 * This method MUST NOT raise an exception in order to conform with PHP's
23
+	 * string casting operations.
24
+	 *
25
+	 * @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
26
+	 * @return string
27
+	 */
28
+	public function __toString(): string;
29
+
30
+	/**
31
+	 * Closes the stream and any underlying resources.
32
+	 *
33
+	 * @return void
34
+	 */
35
+	public function close(): void;
36
+
37
+	/**
38
+	 * Separates any underlying resources from the stream.
39
+	 *
40
+	 * After the stream has been detached, the stream is in an unusable state.
41
+	 *
42
+	 * @return resource|null Underlying PHP stream, if any
43
+	 */
44
+	public function detach();
45
+
46
+	/**
47
+	 * Get the size of the stream if known.
48
+	 *
49
+	 * @return int|null Returns the size in bytes if known, or null if unknown.
50
+	 */
51
+	public function getSize(): ?int;
52
+
53
+	/**
54
+	 * Returns the current position of the file read/write pointer
55
+	 *
56
+	 * @return int Position of the file pointer
57
+	 * @throws \RuntimeException on error.
58
+	 */
59
+	public function tell(): int;
60
+
61
+	/**
62
+	 * Returns true if the stream is at the end of the stream.
63
+	 *
64
+	 * @return bool
65
+	 */
66
+	public function eof(): bool;
67
+
68
+	/**
69
+	 * Returns whether or not the stream is seekable.
70
+	 *
71
+	 * @return bool
72
+	 */
73
+	public function isSeekable(): bool;
74
+
75
+	/**
76
+	 * Seek to a position in the stream.
77
+	 *
78
+	 * @link http://www.php.net/manual/en/function.fseek.php
79
+	 * @param int $offset Stream offset
80
+	 * @param int $whence Specifies how the cursor position will be calculated
81
+	 *     based on the seek offset. Valid values are identical to the built-in
82
+	 *     PHP $whence values for `fseek()`.  SEEK_SET: Set position equal to
83
+	 *     offset bytes SEEK_CUR: Set position to current location plus offset
84
+	 *     SEEK_END: Set position to end-of-stream plus offset.
85
+	 * @throws \RuntimeException on failure.
86
+	 */
87
+	public function seek(int $offset, int $whence = SEEK_SET): void;
88
+
89
+	/**
90
+	 * Seek to the beginning of the stream.
91
+	 *
92
+	 * If the stream is not seekable, this method will raise an exception;
93
+	 * otherwise, it will perform a seek(0).
94
+	 *
95
+	 * @see seek()
96
+	 * @link http://www.php.net/manual/en/function.fseek.php
97
+	 * @throws \RuntimeException on failure.
98
+	 */
99
+	public function rewind(): void;
100
+
101
+	/**
102
+	 * Returns whether or not the stream is writable.
103
+	 *
104
+	 * @return bool
105
+	 */
106
+	public function isWritable(): bool;
107
+
108
+	/**
109
+	 * Write data to the stream.
110
+	 *
111
+	 * @param string $string The string that is to be written.
112
+	 * @return int Returns the number of bytes written to the stream.
113
+	 * @throws \RuntimeException on failure.
114
+	 */
115
+	public function write(string $string): int;
116
+
117
+	/**
118
+	 * Returns whether or not the stream is readable.
119
+	 *
120
+	 * @return bool
121
+	 */
122
+	public function isReadable(): bool;
123
+
124
+	/**
125
+	 * Read data from the stream.
126
+	 *
127
+	 * @param int $length Read up to $length bytes from the object and return
128
+	 *     them. Fewer than $length bytes may be returned if underlying stream
129
+	 *     call returns fewer bytes.
130
+	 * @return string Returns the data read from the stream, or an empty string
131
+	 *     if no bytes are available.
132
+	 * @throws \RuntimeException if an error occurs.
133
+	 */
134
+	public function read(int $length): string;
135
+
136
+	/**
137
+	 * Returns the remaining contents in a string
138
+	 *
139
+	 * @return string
140
+	 * @throws \RuntimeException if unable to read or an error occurs while
141
+	 *     reading.
142
+	 */
143
+	public function getContents(): string;
144
+
145
+	/**
146
+	 * Get stream metadata as an associative array or retrieve a specific key.
147
+	 *
148
+	 * The keys returned are identical to the keys returned from PHP's
149
+	 * stream_get_meta_data() function.
150
+	 *
151
+	 * @link http://php.net/manual/en/function.stream-get-meta-data.php
152
+	 * @param string|null $key Specific metadata to retrieve.
153
+	 * @return array|mixed|null Returns an associative array if no key is
154
+	 *     provided. Returns a specific key value if a key is provided and the
155
+	 *     value is found, or null if the key is not found.
156
+	 */
157
+	public function getMetadata(?string $key = null);
158 158
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
  * a wrapper around the most common operations, including serialization of
10 10
  * the entire stream to a string.
11 11
  */
12
-interface StreamInterface
13
-{
12
+interface StreamInterface {
14 13
     /**
15 14
      * Reads all data from the stream into a string, from the beginning to end.
16 15
      *
Please login to merge, or discard this patch.
lib/Vendor/Psr/Http/Message/RequestFactoryInterface.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 
5 5
 interface RequestFactoryInterface
6 6
 {
7
-    /**
8
-     * Create a new request.
9
-     *
10
-     * @param string $method The HTTP method associated with the request.
11
-     * @param UriInterface|string $uri The URI associated with the request. If
12
-     *     the value is a string, the factory MUST create a UriInterface
13
-     *     instance based on it.
14
-     *
15
-     * @return RequestInterface
16
-     */
17
-    public function createRequest(string $method, $uri): RequestInterface;
7
+	/**
8
+	 * Create a new request.
9
+	 *
10
+	 * @param string $method The HTTP method associated with the request.
11
+	 * @param UriInterface|string $uri The URI associated with the request. If
12
+	 *     the value is a string, the factory MUST create a UriInterface
13
+	 *     instance based on it.
14
+	 *
15
+	 * @return RequestInterface
16
+	 */
17
+	public function createRequest(string $method, $uri): RequestInterface;
18 18
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message;
4 4
 
5
-interface RequestFactoryInterface
6
-{
5
+interface RequestFactoryInterface {
7 6
     /**
8 7
      * Create a new request.
9 8
      *
Please login to merge, or discard this patch.