Completed
Push — master ( 8e973a...811a95 )
by
unknown
03:40 queued 01:04
created
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/SQLite/SQLite.php 2 patches
Indentation   +519 added lines, -519 removed lines patch added patch discarded remove patch
@@ -8,226 +8,226 @@  discard block
 block discarded – undo
8 8
  */
9 9
 class SQLiteDatabase
10 10
 {
11
-    /**
12
-     * (PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
13
-     * @link https://php.net/manual/en/function.sqlite-open.php
14
-     * @param string $filename <p>The filename of the SQLite database. If the file does not exist, SQLite will attempt to create it. PHP must have write permissions to the file if data is inserted, the database schema is modified or to create the database if it does not exist.</p>
15
-     * @param int $mode [optional] <p>The mode of the file. Intended to be used to open the database in read-only mode. Presently, this parameter is ignored by the sqlite library. The default value for mode is the octal value 0666 and this is the recommended value.</p>
16
-     * @param string &$error_message [optional] <p>Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was an error.</p>
17
-     */
18
-    final public function __construct($filename, $mode = 0666, &$error_message) {}
19
-
20
-    /**
21
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
22
-     * @link https://php.net/manual/en/function.sqlite-query.php
23
-     * @param string $query <p>
24
-     * The query to be executed.
25
-     * </p>
26
-     * <p>
27
-     * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
28
-     * </p>
29
-     * @param int $result_type [optional]
30
-     * <p>The optional <i>result_type</i> parameter accepts a constant and determines how the returned array will be indexed. Using <b>SQLITE_ASSOC</b> will return only associative indices (named fields) while <b>SQLITE_NUM</b> will return only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b> will return both associative and numerical indices. <b>SQLITE_BOTH</b> is the default for this function.</p>
31
-     * @param string &$error_message [optional] <p>The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the {@see sqlite_last_error()} function.</p>
32
-     * @return resource|false <p>
33
-     * This function will return a result handle or <b>FALSE</b> on failure.
34
-     * For queries that return rows, the result handle can then be used with
35
-     * functions such as {@see sqlite_fetch_array()} and
36
-     * {@see sqlite_seek()}.
37
-     * </p>
38
-     * <p>
39
-     * Regardless of the query type, this function will return <b>FALSE</b> if the
40
-     * query failed.
41
-     * </p>
42
-     * <p>
43
-     * {@see sqlite_query()} returns a buffered, seekable result
44
-     * handle.  This is useful for reasonably small queries where you need to
45
-     * be able to randomly access the rows.  Buffered result handles will
46
-     * allocate memory to hold the entire result and will not return until it
47
-     * has been fetched.  If you only need sequential access to the data, it is
48
-     * recommended that you use the much higher performance
49
-     * {@see sqlite_unbuffered_query()} instead.
50
-     * </p>
51
-     */
52
-    public function query($query, $result_type, &$error_message) {}
53
-
54
-    /**
55
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
56
-     * @link https://php.net/manual/en/function.sqlite-exec.php
57
-     * @param string $query <p>
58
-     * The query to be executed.
59
-     * </p>
60
-     * <p>
61
-     * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
62
-     * </p>
63
-     * @param string &$error_message [optional] <p>The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the
64
-     * {@see sqlite_last_error()} function.</p>
65
-     * @return bool <p>
66
-     * This function will return a boolean result; <b>TRUE</b> for success or <b>FALSE</b> for failure.
67
-     * If you need to run a query that returns rows, see {@see sqlite_query()}.
68
-     * </p>
69
-     * <p>The column names returned by
70
-     * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
71
-     * case-folded according to the value of the
72
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
73
-     * option.</p>
74
-     */
75
-    public function queryExec($query, &$error_message) {}
76
-
77
-    /**
78
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
79
-     * Execute a query against a given database and returns an array
80
-     * @link https://php.net/manual/en/function.sqlite-array-query.php
81
-     * @param string $query <p>
82
-     * The query to be executed.
83
-     * </p>
84
-     * <p>
85
-     * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
86
-     * </p>
87
-     * @param int $result_type [optional] <p>The optional <i>result_type</i>
88
-     * parameter accepts a constant and determines how the returned array will be
89
-     * indexed. Using <b>SQLITE_ASSOC</b> will return only associative
90
-     * indices (named fields) while <b>SQLITE_NUM</b> will return
91
-     * only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
92
-     * will return both associative and numerical indices.
93
-     * <b>SQLITE_BOTH</b> is the default for this function.</p>
94
-     * @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
95
-     * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
96
-     * it applied to the data if it was encoded using the
97
-     * {@see sqlite_escape_string()}.  You should normally leave this
98
-     * value at its default, unless you are interoperating with databases created by
99
-     * other sqlite capable applications.</p>
100
-     * <p>
101
-     * @return array|false
102
-     * Returns an array of the entire result set; <b>FALSE</b> otherwise.
103
-     * </p>
104
-     * <p>The column names returned by
105
-     * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
106
-     * case-folded according to the value of the
107
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
108
-     * option.</p>
109
-     */
110
-    public function arrayQuery($query, $result_type, $decode_binary) {}
111
-
112
-    /**
113
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.1)
114
-     * Executes a query and returns either an array for one single column or the value of the first row
115
-     * @link https://php.net/manual/en/function.sqlite-single-query.php
116
-     * @param string $query
117
-     * @param bool $first_row_only [optional]
118
-     * @param bool $decode_binary [optional]
119
-     * @return array
120
-     */
121
-    public function singleQuery($query, $first_row_only, $decode_binary) {}
122
-
123
-    /**
124
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
125
-     * Execute a query that does not prefetch and buffer all data
126
-     * @link https://php.net/manual/en/function.sqlite-unbuffered-query.php
127
-     * @param string $query  <p>
128
-     * The query to be executed.
129
-     * </p>
130
-     * <p>
131
-     * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
132
-     * </p>
133
-     * @param int $result_type [optional] <p>The optional <i>result_type</i> parameter accepts a constant and determines how the returned array will be indexed.
134
-     * Using <b>SQLITE_ASSOC</b> will return only associative indices (named fields) while <b>SQLITE_NUM</b> will return only numerical indices (ordinal field numbers).
135
-     * <b>SQLITE_BOTH</b> will return both associative and numerical indices. <b>SQLITE_BOTH</b> is the default for this function.
136
-     * </p>
137
-     * @param string &$error_message [optional]
138
-     * @return resource Returns a result handle or <b>FALSE</b> on failure.
139
-     * {@see sqlite_unbuffered_query()} returns a sequential forward-only result set that can only be used to read each row, one after the other.
140
-     */
141
-    public function unbufferedQuery($query, $result_type = SQLITE_BOTH, &$error_message = null) {}
142
-
143
-    /**
144
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
145
-     * Returns the rowid of the most recently inserted row
146
-     * @link https://php.net/manual/en/function.sqlite-last-insert-rowid.php
147
-     * @return int Returns the row id, as an integer.
148
-     */
149
-    public function lastInsertRowid() {}
150
-
151
-    /**
152
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
153
-     * Returns the number of rows that were changed by the most recent SQL statement
154
-     * @link https://php.net/manual/en/function.sqlite-changes.php
155
-     * @return int Returns the number of changed rows.
156
-     */
157
-    public function changes() {}
158
-
159
-    /**
160
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
161
-     * Register an aggregating UDF for use in SQL statements
162
-     * @link https://php.net/manual/en/function.sqlite-create-aggregate.php
163
-     * @param string $function_name <p>The name of the function used in SQL statements.</p>
164
-     * @param callable $step_func <p>Callback function called for each row of the result set. Function parameters are &$context, $value, ....</p>
165
-     * @param callable $finalize_func <p>Callback function to aggregate the "stepped" data from each row. Function parameter is &$context and the function should return the final result of aggregation.</p>
166
-     * @param int $num_args [optional] <p>Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.</p>
167
-     */
168
-    public function createAggregate($function_name, $step_func, $finalize_func, $num_args = -1) {}
169
-
170
-    /**
171
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
172
-     * Registers a "regular" User Defined Function for use in SQL statements
173
-     * @link https://php.net/manual/en/function.sqlite-create-function.php
174
-     * @param string $function_name <p>The name of the function used in SQL statements.</p>
175
-     * @param callable $callback <p>
176
-     * Callback function to handle the defined SQL function.
177
-     * </p>
178
-     * <blockquote><p><b>Note</b>:
179
-     * Callback functions should return a type understood by SQLite (i.e.
180
-     * {@link https://php.net/manual/en/language.types.intro.php scalar type}).
181
-     * </p></blockquote>
182
-     * @param int $num_args [optional]   <blockquote><p><b>Note</b>: Two alternative syntaxes are
183
-     * supported for compatibility with other database extensions (such as MySQL).
184
-     * The preferred form is the first, where the <i>dbhandle</i>
185
-     * parameter is the first parameter to the function.</p></blockquote>
186
-     */
187
-    public function createFunction($function_name, $callback, $num_args = -1) {}
188
-
189
-    /**
190
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
191
-     * Set busy timeout duration, or disable busy handlers
192
-     * @link https://php.net/manual/en/function.sqlite-busy-timeout.php
193
-     * @param int $milliseconds <p> The number of milliseconds. When set to 0, busy handlers will be disabled and SQLite will return immediately with a <b>SQLITE_BUSY</b> status code if another process/thread has the database locked for an update.
194
-     * PHP sets the default busy timeout to be 60 seconds when the database is opened.</p>
195
-     * @return int <p>Returns an error code, or 0 if no error occurred.</p>
196
-     */
197
-    public function busyTimeout($milliseconds) {}
198
-
199
-    /**
200
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
201
-     * Returns the error code of the last error for a database
202
-     * @link https://php.net/manual/en/function.sqlite-last-error.php
203
-     * @return int Returns an error code, or 0 if no error occurred.
204
-     */
205
-    public function lastError() {}
206
-
207
-    /**
208
-     * (PHP 5 &lt; 5.4.0)
209
-     * Return an array of column types from a particular table
210
-     * @link https://php.net/manual/en/function.sqlite-fetch-column-types.php
211
-     * @param string $table_name <p>The table name to query.</p>
212
-     * @param int $result_type [optional] <p>
213
-     * The optional <i>result_type</i> parameter accepts a
214
-     * constant and determines how the returned array will be indexed. Using
215
-     * <b>SQLITE_ASSOC</b> will return only associative indices
216
-     * (named fields) while <b>SQLITE_NUM</b> will return only
217
-     * numerical indices (ordinal field numbers).
218
-     * <b>SQLITE_ASSOC</b> is the default for
219
-     * this function.
220
-     * </p>
221
-     * @return array <p>
222
-     * Returns an array of column data types; <b>FALSE</b> on error.
223
-     * </p>
224
-     * <p>The column names returned by
225
-     * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
226
-     * case-folded according to the value of the
227
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
228
-     * option.</p>
229
-     */
230
-    public function fetchColumnTypes($table_name, $result_type = SQLITE_ASSOC) {}
11
+	/**
12
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
13
+	 * @link https://php.net/manual/en/function.sqlite-open.php
14
+	 * @param string $filename <p>The filename of the SQLite database. If the file does not exist, SQLite will attempt to create it. PHP must have write permissions to the file if data is inserted, the database schema is modified or to create the database if it does not exist.</p>
15
+	 * @param int $mode [optional] <p>The mode of the file. Intended to be used to open the database in read-only mode. Presently, this parameter is ignored by the sqlite library. The default value for mode is the octal value 0666 and this is the recommended value.</p>
16
+	 * @param string &$error_message [optional] <p>Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was an error.</p>
17
+	 */
18
+	final public function __construct($filename, $mode = 0666, &$error_message) {}
19
+
20
+	/**
21
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
22
+	 * @link https://php.net/manual/en/function.sqlite-query.php
23
+	 * @param string $query <p>
24
+	 * The query to be executed.
25
+	 * </p>
26
+	 * <p>
27
+	 * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
28
+	 * </p>
29
+	 * @param int $result_type [optional]
30
+	 * <p>The optional <i>result_type</i> parameter accepts a constant and determines how the returned array will be indexed. Using <b>SQLITE_ASSOC</b> will return only associative indices (named fields) while <b>SQLITE_NUM</b> will return only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b> will return both associative and numerical indices. <b>SQLITE_BOTH</b> is the default for this function.</p>
31
+	 * @param string &$error_message [optional] <p>The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the {@see sqlite_last_error()} function.</p>
32
+	 * @return resource|false <p>
33
+	 * This function will return a result handle or <b>FALSE</b> on failure.
34
+	 * For queries that return rows, the result handle can then be used with
35
+	 * functions such as {@see sqlite_fetch_array()} and
36
+	 * {@see sqlite_seek()}.
37
+	 * </p>
38
+	 * <p>
39
+	 * Regardless of the query type, this function will return <b>FALSE</b> if the
40
+	 * query failed.
41
+	 * </p>
42
+	 * <p>
43
+	 * {@see sqlite_query()} returns a buffered, seekable result
44
+	 * handle.  This is useful for reasonably small queries where you need to
45
+	 * be able to randomly access the rows.  Buffered result handles will
46
+	 * allocate memory to hold the entire result and will not return until it
47
+	 * has been fetched.  If you only need sequential access to the data, it is
48
+	 * recommended that you use the much higher performance
49
+	 * {@see sqlite_unbuffered_query()} instead.
50
+	 * </p>
51
+	 */
52
+	public function query($query, $result_type, &$error_message) {}
53
+
54
+	/**
55
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
56
+	 * @link https://php.net/manual/en/function.sqlite-exec.php
57
+	 * @param string $query <p>
58
+	 * The query to be executed.
59
+	 * </p>
60
+	 * <p>
61
+	 * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
62
+	 * </p>
63
+	 * @param string &$error_message [optional] <p>The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the
64
+	 * {@see sqlite_last_error()} function.</p>
65
+	 * @return bool <p>
66
+	 * This function will return a boolean result; <b>TRUE</b> for success or <b>FALSE</b> for failure.
67
+	 * If you need to run a query that returns rows, see {@see sqlite_query()}.
68
+	 * </p>
69
+	 * <p>The column names returned by
70
+	 * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
71
+	 * case-folded according to the value of the
72
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
73
+	 * option.</p>
74
+	 */
75
+	public function queryExec($query, &$error_message) {}
76
+
77
+	/**
78
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
79
+	 * Execute a query against a given database and returns an array
80
+	 * @link https://php.net/manual/en/function.sqlite-array-query.php
81
+	 * @param string $query <p>
82
+	 * The query to be executed.
83
+	 * </p>
84
+	 * <p>
85
+	 * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
86
+	 * </p>
87
+	 * @param int $result_type [optional] <p>The optional <i>result_type</i>
88
+	 * parameter accepts a constant and determines how the returned array will be
89
+	 * indexed. Using <b>SQLITE_ASSOC</b> will return only associative
90
+	 * indices (named fields) while <b>SQLITE_NUM</b> will return
91
+	 * only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
92
+	 * will return both associative and numerical indices.
93
+	 * <b>SQLITE_BOTH</b> is the default for this function.</p>
94
+	 * @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
95
+	 * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
96
+	 * it applied to the data if it was encoded using the
97
+	 * {@see sqlite_escape_string()}.  You should normally leave this
98
+	 * value at its default, unless you are interoperating with databases created by
99
+	 * other sqlite capable applications.</p>
100
+	 * <p>
101
+	 * @return array|false
102
+	 * Returns an array of the entire result set; <b>FALSE</b> otherwise.
103
+	 * </p>
104
+	 * <p>The column names returned by
105
+	 * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
106
+	 * case-folded according to the value of the
107
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
108
+	 * option.</p>
109
+	 */
110
+	public function arrayQuery($query, $result_type, $decode_binary) {}
111
+
112
+	/**
113
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.1)
114
+	 * Executes a query and returns either an array for one single column or the value of the first row
115
+	 * @link https://php.net/manual/en/function.sqlite-single-query.php
116
+	 * @param string $query
117
+	 * @param bool $first_row_only [optional]
118
+	 * @param bool $decode_binary [optional]
119
+	 * @return array
120
+	 */
121
+	public function singleQuery($query, $first_row_only, $decode_binary) {}
122
+
123
+	/**
124
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
125
+	 * Execute a query that does not prefetch and buffer all data
126
+	 * @link https://php.net/manual/en/function.sqlite-unbuffered-query.php
127
+	 * @param string $query  <p>
128
+	 * The query to be executed.
129
+	 * </p>
130
+	 * <p>
131
+	 * Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}.
132
+	 * </p>
133
+	 * @param int $result_type [optional] <p>The optional <i>result_type</i> parameter accepts a constant and determines how the returned array will be indexed.
134
+	 * Using <b>SQLITE_ASSOC</b> will return only associative indices (named fields) while <b>SQLITE_NUM</b> will return only numerical indices (ordinal field numbers).
135
+	 * <b>SQLITE_BOTH</b> will return both associative and numerical indices. <b>SQLITE_BOTH</b> is the default for this function.
136
+	 * </p>
137
+	 * @param string &$error_message [optional]
138
+	 * @return resource Returns a result handle or <b>FALSE</b> on failure.
139
+	 * {@see sqlite_unbuffered_query()} returns a sequential forward-only result set that can only be used to read each row, one after the other.
140
+	 */
141
+	public function unbufferedQuery($query, $result_type = SQLITE_BOTH, &$error_message = null) {}
142
+
143
+	/**
144
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
145
+	 * Returns the rowid of the most recently inserted row
146
+	 * @link https://php.net/manual/en/function.sqlite-last-insert-rowid.php
147
+	 * @return int Returns the row id, as an integer.
148
+	 */
149
+	public function lastInsertRowid() {}
150
+
151
+	/**
152
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
153
+	 * Returns the number of rows that were changed by the most recent SQL statement
154
+	 * @link https://php.net/manual/en/function.sqlite-changes.php
155
+	 * @return int Returns the number of changed rows.
156
+	 */
157
+	public function changes() {}
158
+
159
+	/**
160
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
161
+	 * Register an aggregating UDF for use in SQL statements
162
+	 * @link https://php.net/manual/en/function.sqlite-create-aggregate.php
163
+	 * @param string $function_name <p>The name of the function used in SQL statements.</p>
164
+	 * @param callable $step_func <p>Callback function called for each row of the result set. Function parameters are &$context, $value, ....</p>
165
+	 * @param callable $finalize_func <p>Callback function to aggregate the "stepped" data from each row. Function parameter is &$context and the function should return the final result of aggregation.</p>
166
+	 * @param int $num_args [optional] <p>Hint to the SQLite parser if the callback function accepts a predetermined number of arguments.</p>
167
+	 */
168
+	public function createAggregate($function_name, $step_func, $finalize_func, $num_args = -1) {}
169
+
170
+	/**
171
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
172
+	 * Registers a "regular" User Defined Function for use in SQL statements
173
+	 * @link https://php.net/manual/en/function.sqlite-create-function.php
174
+	 * @param string $function_name <p>The name of the function used in SQL statements.</p>
175
+	 * @param callable $callback <p>
176
+	 * Callback function to handle the defined SQL function.
177
+	 * </p>
178
+	 * <blockquote><p><b>Note</b>:
179
+	 * Callback functions should return a type understood by SQLite (i.e.
180
+	 * {@link https://php.net/manual/en/language.types.intro.php scalar type}).
181
+	 * </p></blockquote>
182
+	 * @param int $num_args [optional]   <blockquote><p><b>Note</b>: Two alternative syntaxes are
183
+	 * supported for compatibility with other database extensions (such as MySQL).
184
+	 * The preferred form is the first, where the <i>dbhandle</i>
185
+	 * parameter is the first parameter to the function.</p></blockquote>
186
+	 */
187
+	public function createFunction($function_name, $callback, $num_args = -1) {}
188
+
189
+	/**
190
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
191
+	 * Set busy timeout duration, or disable busy handlers
192
+	 * @link https://php.net/manual/en/function.sqlite-busy-timeout.php
193
+	 * @param int $milliseconds <p> The number of milliseconds. When set to 0, busy handlers will be disabled and SQLite will return immediately with a <b>SQLITE_BUSY</b> status code if another process/thread has the database locked for an update.
194
+	 * PHP sets the default busy timeout to be 60 seconds when the database is opened.</p>
195
+	 * @return int <p>Returns an error code, or 0 if no error occurred.</p>
196
+	 */
197
+	public function busyTimeout($milliseconds) {}
198
+
199
+	/**
200
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
201
+	 * Returns the error code of the last error for a database
202
+	 * @link https://php.net/manual/en/function.sqlite-last-error.php
203
+	 * @return int Returns an error code, or 0 if no error occurred.
204
+	 */
205
+	public function lastError() {}
206
+
207
+	/**
208
+	 * (PHP 5 &lt; 5.4.0)
209
+	 * Return an array of column types from a particular table
210
+	 * @link https://php.net/manual/en/function.sqlite-fetch-column-types.php
211
+	 * @param string $table_name <p>The table name to query.</p>
212
+	 * @param int $result_type [optional] <p>
213
+	 * The optional <i>result_type</i> parameter accepts a
214
+	 * constant and determines how the returned array will be indexed. Using
215
+	 * <b>SQLITE_ASSOC</b> will return only associative indices
216
+	 * (named fields) while <b>SQLITE_NUM</b> will return only
217
+	 * numerical indices (ordinal field numbers).
218
+	 * <b>SQLITE_ASSOC</b> is the default for
219
+	 * this function.
220
+	 * </p>
221
+	 * @return array <p>
222
+	 * Returns an array of column data types; <b>FALSE</b> on error.
223
+	 * </p>
224
+	 * <p>The column names returned by
225
+	 * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
226
+	 * case-folded according to the value of the
227
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
228
+	 * option.</p>
229
+	 */
230
+	public function fetchColumnTypes($table_name, $result_type = SQLITE_ASSOC) {}
231 231
 }
232 232
 
233 233
 /**
@@ -235,227 +235,227 @@  discard block
 block discarded – undo
235 235
  */
236 236
 final class SQLiteResult implements Iterator, Countable
237 237
 {
238
-    /**
239
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
240
-     * Fetches the next row from a result set as an array
241
-     * @link https://php.net/manual/en/function.sqlite-fetch-array.php
242
-     * @param int $result_type [optional]
243
-     * <p>
244
-     * The optional <i>result_type</i>
245
-     * parameter accepts a constant and determines how the returned array will be
246
-     * indexed. Using <b>SQLITE_ASSOC</b> will return only associative
247
-     * indices (named fields) while <b>SQLITE_NUM</b> will return
248
-     * only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
249
-     * will return both associative and numerical indices.
250
-     * <b>SQLITE_BOTH</b> is the default for this function.
251
-     * </p>
252
-     * @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
253
-     * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
254
-     * it applied to the data if it was encoded using the
255
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}. You should normally leave this
256
-     * value at its default, unless you are interoperating with databases created by
257
-     * other sqlite capable applications.</p>
258
-     * @return array
259
-     * <p>
260
-     * Returns an array of the next row from a result set; <b>FALSE</b> if the
261
-     * next position is beyond the final row.
262
-     * </p>
263
-     * <p>The column names returned by
264
-     * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
265
-     * case-folded according to the value of the
266
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}  configuration
267
-     * option.</p>
268
-     */
269
-    public function fetch($result_type = SQLITE_BOTH, $decode_binary = true) {}
270
-
271
-    /**
272
-     * (PHP 5 &lt; 5.4.0)
273
-     * Fetches the next row from a result set as an object
274
-     * @link https://php.net/manual/en/function.sqlite-fetch-object.php
275
-     * @param string $class_name [optional]
276
-     * @param array $ctor_params [optional]
277
-     * @param bool $decode_binary [optional]
278
-     * @return object
279
-     */
280
-    public function fetchObject($class_name, $ctor_params, $decode_binary = true) {}
281
-
282
-    /**
283
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.1)
284
-     * Fetches the first column of a result set as a string
285
-     * @link https://php.net/manual/en/function.sqlite-fetch-single.php
286
-     * @param bool $decode_binary [optional]
287
-     * @return string <p>Returns the first column value, as a string.</p>
288
-     */
289
-    public function fetchSingle($decode_binary = true) {}
290
-
291
-    /**
292
-     * (PHP 5 &lt; 5.4.0)
293
-     * Fetches the next row from a result set as an object
294
-     * @link https://www.php.net/manual/en/function.sqlite-fetch-all.php
295
-     * @param int $result_type [optional] <p>
296
-     * The optional result_type parameter accepts a constant and determines how the returned array will be indexed.
297
-     * Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers).
298
-     * {@see SQLITE_BOTH} will return both associative and numerical indices. {@see SQLITE_BOTH} is the default for this function.</p>
299
-     * @param bool $decode_binary [optional] <p> When the decode_binary parameter is set to TRUE (the default),
300
-     * PHP will decode the binary encoding it applied to the data if it was encoded using the {@see sqlite_escape_string()}.
301
-     * You should normally leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications.</p>
302
-     * @return object
303
-     */
304
-    public function fetchAll($result_type, $decode_binary = true) {}
305
-
306
-    /**
307
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
308
-     * Fetches a column from the current row of a result set
309
-     * @link https://php.net/manual/en/function.sqlite-column.php
310
-     * @param $index_or_name
311
-     * @param $decode_binary [optional] <p>When the <i>decode_binary</i>
312
-     * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
313
-     * it applied to the data if it was encoded using the
314
-     * {@see sqlite_escape_string()}.  You should normally leave this
315
-     * value at its default, unless you are interoperating with databases created by
316
-     * other sqlite capable applications.</p>
317
-     * @return mixed <p>Returns the column value</p>
318
-     */
319
-    public function column($index_or_name, $decode_binary = true) {}
320
-
321
-    /**
322
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
323
-     * Returns the number of fields in a result set
324
-     * @link https://php.net/manual/en/function.sqlite-num-fields.php
325
-     * @return int <p>Returns the number of fields, as an integer.</p>
326
-     */
327
-    public function numFields() {}
328
-
329
-    /**
330
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
331
-     * Returns the name of a particular field
332
-     * @link https://php.net/manual/en/function.sqlite-field-name.php
333
-     * @param int $field_index <p>The ordinal column number in the result set.</p>
334
-     * @return string <p>
335
-     * Returns the name of a field in an SQLite result set, given the ordinal
336
-     * column number; <b>FALSE</b> on error.
337
-     * </p>
338
-     * <p>The column names returned by
339
-     * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
340
-     * case-folded according to the value of the
341
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}configuration
342
-     * option.</p>
343
-     */
344
-    public function fieldName($field_index) {}
345
-
346
-    /**
347
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
348
-     * Fetches the current row from a result set as an array
349
-     * @link https://php.net/manual/en/function.sqlite-current.php
350
-     * @param int $result_type [optional] <p>The optional <i>result_type</i>
351
-     * parameter accepts a constant and determines how the returned array will be
352
-     * indexed. Using {@see SQLITE_ASSOC} will return only associative
353
-     * indices (named fields) while {@see SQLITE_NUM} will return
354
-     * only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
355
-     * will return both associative and numerical indices.
356
-     * {@see SQLITE_BOTH} is the default for this function.</p>
357
-     * @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
358
-     * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
359
-     * it applied to the data if it was encoded using the
360
-     * {@see sqlite_escape_string()}.  You should normally leave this
361
-     * value at its default, unless you are interoperating with databases created by
362
-     * other sqlite capable applications.</p>
363
-     * @return array <p>
364
-     * Returns an array of the current row from a result set; <b>FALSE</b> if the
365
-     * current position is beyond the final row.
366
-     * </p>
367
-     * <p>The column names returned by
368
-     * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
369
-     * case-folded according to the value of the
370
-     * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
371
-     * option.</p>
372
-     */
373
-    public function current($result_type = SQLITE_BOTH, $decode_binary = true) {}
374
-    /**
375
-     * Return the key of the current element
376
-     * @link https://php.net/manual/en/iterator.key.php
377
-     * @return mixed scalar on success, or null on failure.
378
-     * @since 5.0.0
379
-     */
380
-    public function key() {}
381
-    /**
382
-     * Seek to the next row number
383
-     * @link https://php.net/manual/en/function.sqlite-next.php
384
-     * @return bool Returns <b>TRUE</b> on success, or <b>FALSE</b> if there are no more rows.
385
-     * @since 5.0.0
386
-     */
387
-    public function next() {}
388
-    /**
389
-     * Checks if current position is valid
390
-     * @link https://php.net/manual/en/iterator.valid.php
391
-     * @return bool <p>
392
-     * Returns <b>TRUE</b> if there are more rows available from the
393
-     * <i>result</i> handle, or <b>FALSE</b> otherwise.
394
-     * </p>
395
-     * @since 5.0.0
396
-     */
397
-    public function valid() {}
398
-    /**
399
-     * Rewind the Iterator to the first element
400
-     * @link https://php.net/manual/en/iterator.rewind.php
401
-     * @return void Any returned value is ignored.
402
-     * @since 5.0.0
403
-     */
404
-    public function rewind() {}
405
-
406
-    /**
407
-     * Count elements of an object
408
-     * @link https://php.net/manual/en/countable.count.php
409
-     * @return int <p>The custom count as an integer.
410
-     * </p>
411
-     * <p>
412
-     * The return value is cast to an integer.
413
-     * </p>
414
-     * @since 5.1.0
415
-     */
416
-    public function count() {}
417
-
418
-    /**
419
-     * Seek to the previous row number of a result set
420
-     * @link https://php.net/manual/en/function.sqlite-prev.php
421
-     * @return bool <p> Returns <b>TRUE</b> on success, or <b>FALSE</b> if there are no more previous rows.
422
-     * </p>
423
-     * @since 5.4.0
424
-     */
425
-    public function prev() {}
426
-
427
-    /**
428
-     *@since 5.4.0
429
-     * Returns whether or not a previous row is available
430
-     * @link https://php.net/manual/en/function.sqlite-has-prev.php
431
-     * @return bool <p>
432
-     * Returns <b>TRUE</b> if there are more previous rows available from the
433
-     * <i>result</i> handle, or <b>FALSE</b> otherwise.
434
-     * </p>
435
-     */
436
-    public function hasPrev() {}
437
-
438
-    /**
439
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
440
-     * Returns the number of rows in a buffered result set
441
-     * @link https://php.net/manual/en/function.sqlite-num-rows.php
442
-     * @return int Returns the number of rows, as an integer.
443
-     */
444
-    public function numRows() {}
445
-
446
-    /**
447
-     * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
448
-     * Seek to a particular row number of a buffered result set
449
-     * @link https://php.net/manual/en/function.sqlite-seek.php
450
-     * @param $row
451
-     * <p>
452
-     * The ordinal row number to seek to.  The row number is zero-based (0 is
453
-     * the first row).
454
-     * </p>
455
-     * <blockquote><p><b>Note</b>: </p><p>This function cannot be used with
456
-     * unbuffered result handles.</p></blockquote>
457
-     */
458
-    public function seek($row) {}
238
+	/**
239
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
240
+	 * Fetches the next row from a result set as an array
241
+	 * @link https://php.net/manual/en/function.sqlite-fetch-array.php
242
+	 * @param int $result_type [optional]
243
+	 * <p>
244
+	 * The optional <i>result_type</i>
245
+	 * parameter accepts a constant and determines how the returned array will be
246
+	 * indexed. Using <b>SQLITE_ASSOC</b> will return only associative
247
+	 * indices (named fields) while <b>SQLITE_NUM</b> will return
248
+	 * only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
249
+	 * will return both associative and numerical indices.
250
+	 * <b>SQLITE_BOTH</b> is the default for this function.
251
+	 * </p>
252
+	 * @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
253
+	 * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
254
+	 * it applied to the data if it was encoded using the
255
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}. You should normally leave this
256
+	 * value at its default, unless you are interoperating with databases created by
257
+	 * other sqlite capable applications.</p>
258
+	 * @return array
259
+	 * <p>
260
+	 * Returns an array of the next row from a result set; <b>FALSE</b> if the
261
+	 * next position is beyond the final row.
262
+	 * </p>
263
+	 * <p>The column names returned by
264
+	 * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
265
+	 * case-folded according to the value of the
266
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}  configuration
267
+	 * option.</p>
268
+	 */
269
+	public function fetch($result_type = SQLITE_BOTH, $decode_binary = true) {}
270
+
271
+	/**
272
+	 * (PHP 5 &lt; 5.4.0)
273
+	 * Fetches the next row from a result set as an object
274
+	 * @link https://php.net/manual/en/function.sqlite-fetch-object.php
275
+	 * @param string $class_name [optional]
276
+	 * @param array $ctor_params [optional]
277
+	 * @param bool $decode_binary [optional]
278
+	 * @return object
279
+	 */
280
+	public function fetchObject($class_name, $ctor_params, $decode_binary = true) {}
281
+
282
+	/**
283
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.1)
284
+	 * Fetches the first column of a result set as a string
285
+	 * @link https://php.net/manual/en/function.sqlite-fetch-single.php
286
+	 * @param bool $decode_binary [optional]
287
+	 * @return string <p>Returns the first column value, as a string.</p>
288
+	 */
289
+	public function fetchSingle($decode_binary = true) {}
290
+
291
+	/**
292
+	 * (PHP 5 &lt; 5.4.0)
293
+	 * Fetches the next row from a result set as an object
294
+	 * @link https://www.php.net/manual/en/function.sqlite-fetch-all.php
295
+	 * @param int $result_type [optional] <p>
296
+	 * The optional result_type parameter accepts a constant and determines how the returned array will be indexed.
297
+	 * Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers).
298
+	 * {@see SQLITE_BOTH} will return both associative and numerical indices. {@see SQLITE_BOTH} is the default for this function.</p>
299
+	 * @param bool $decode_binary [optional] <p> When the decode_binary parameter is set to TRUE (the default),
300
+	 * PHP will decode the binary encoding it applied to the data if it was encoded using the {@see sqlite_escape_string()}.
301
+	 * You should normally leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications.</p>
302
+	 * @return object
303
+	 */
304
+	public function fetchAll($result_type, $decode_binary = true) {}
305
+
306
+	/**
307
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
308
+	 * Fetches a column from the current row of a result set
309
+	 * @link https://php.net/manual/en/function.sqlite-column.php
310
+	 * @param $index_or_name
311
+	 * @param $decode_binary [optional] <p>When the <i>decode_binary</i>
312
+	 * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
313
+	 * it applied to the data if it was encoded using the
314
+	 * {@see sqlite_escape_string()}.  You should normally leave this
315
+	 * value at its default, unless you are interoperating with databases created by
316
+	 * other sqlite capable applications.</p>
317
+	 * @return mixed <p>Returns the column value</p>
318
+	 */
319
+	public function column($index_or_name, $decode_binary = true) {}
320
+
321
+	/**
322
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
323
+	 * Returns the number of fields in a result set
324
+	 * @link https://php.net/manual/en/function.sqlite-num-fields.php
325
+	 * @return int <p>Returns the number of fields, as an integer.</p>
326
+	 */
327
+	public function numFields() {}
328
+
329
+	/**
330
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
331
+	 * Returns the name of a particular field
332
+	 * @link https://php.net/manual/en/function.sqlite-field-name.php
333
+	 * @param int $field_index <p>The ordinal column number in the result set.</p>
334
+	 * @return string <p>
335
+	 * Returns the name of a field in an SQLite result set, given the ordinal
336
+	 * column number; <b>FALSE</b> on error.
337
+	 * </p>
338
+	 * <p>The column names returned by
339
+	 * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
340
+	 * case-folded according to the value of the
341
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case}configuration
342
+	 * option.</p>
343
+	 */
344
+	public function fieldName($field_index) {}
345
+
346
+	/**
347
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
348
+	 * Fetches the current row from a result set as an array
349
+	 * @link https://php.net/manual/en/function.sqlite-current.php
350
+	 * @param int $result_type [optional] <p>The optional <i>result_type</i>
351
+	 * parameter accepts a constant and determines how the returned array will be
352
+	 * indexed. Using {@see SQLITE_ASSOC} will return only associative
353
+	 * indices (named fields) while {@see SQLITE_NUM} will return
354
+	 * only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
355
+	 * will return both associative and numerical indices.
356
+	 * {@see SQLITE_BOTH} is the default for this function.</p>
357
+	 * @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
358
+	 * parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
359
+	 * it applied to the data if it was encoded using the
360
+	 * {@see sqlite_escape_string()}.  You should normally leave this
361
+	 * value at its default, unless you are interoperating with databases created by
362
+	 * other sqlite capable applications.</p>
363
+	 * @return array <p>
364
+	 * Returns an array of the current row from a result set; <b>FALSE</b> if the
365
+	 * current position is beyond the final row.
366
+	 * </p>
367
+	 * <p>The column names returned by
368
+	 * <b>SQLITE_ASSOC</b> and <b>SQLITE_BOTH</b> will be
369
+	 * case-folded according to the value of the
370
+	 * {@link https://php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case sqlite.assoc_case} configuration
371
+	 * option.</p>
372
+	 */
373
+	public function current($result_type = SQLITE_BOTH, $decode_binary = true) {}
374
+	/**
375
+	 * Return the key of the current element
376
+	 * @link https://php.net/manual/en/iterator.key.php
377
+	 * @return mixed scalar on success, or null on failure.
378
+	 * @since 5.0.0
379
+	 */
380
+	public function key() {}
381
+	/**
382
+	 * Seek to the next row number
383
+	 * @link https://php.net/manual/en/function.sqlite-next.php
384
+	 * @return bool Returns <b>TRUE</b> on success, or <b>FALSE</b> if there are no more rows.
385
+	 * @since 5.0.0
386
+	 */
387
+	public function next() {}
388
+	/**
389
+	 * Checks if current position is valid
390
+	 * @link https://php.net/manual/en/iterator.valid.php
391
+	 * @return bool <p>
392
+	 * Returns <b>TRUE</b> if there are more rows available from the
393
+	 * <i>result</i> handle, or <b>FALSE</b> otherwise.
394
+	 * </p>
395
+	 * @since 5.0.0
396
+	 */
397
+	public function valid() {}
398
+	/**
399
+	 * Rewind the Iterator to the first element
400
+	 * @link https://php.net/manual/en/iterator.rewind.php
401
+	 * @return void Any returned value is ignored.
402
+	 * @since 5.0.0
403
+	 */
404
+	public function rewind() {}
405
+
406
+	/**
407
+	 * Count elements of an object
408
+	 * @link https://php.net/manual/en/countable.count.php
409
+	 * @return int <p>The custom count as an integer.
410
+	 * </p>
411
+	 * <p>
412
+	 * The return value is cast to an integer.
413
+	 * </p>
414
+	 * @since 5.1.0
415
+	 */
416
+	public function count() {}
417
+
418
+	/**
419
+	 * Seek to the previous row number of a result set
420
+	 * @link https://php.net/manual/en/function.sqlite-prev.php
421
+	 * @return bool <p> Returns <b>TRUE</b> on success, or <b>FALSE</b> if there are no more previous rows.
422
+	 * </p>
423
+	 * @since 5.4.0
424
+	 */
425
+	public function prev() {}
426
+
427
+	/**
428
+	 *@since 5.4.0
429
+	 * Returns whether or not a previous row is available
430
+	 * @link https://php.net/manual/en/function.sqlite-has-prev.php
431
+	 * @return bool <p>
432
+	 * Returns <b>TRUE</b> if there are more previous rows available from the
433
+	 * <i>result</i> handle, or <b>FALSE</b> otherwise.
434
+	 * </p>
435
+	 */
436
+	public function hasPrev() {}
437
+
438
+	/**
439
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
440
+	 * Returns the number of rows in a buffered result set
441
+	 * @link https://php.net/manual/en/function.sqlite-num-rows.php
442
+	 * @return int Returns the number of rows, as an integer.
443
+	 */
444
+	public function numRows() {}
445
+
446
+	/**
447
+	 * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
448
+	 * Seek to a particular row number of a buffered result set
449
+	 * @link https://php.net/manual/en/function.sqlite-seek.php
450
+	 * @param $row
451
+	 * <p>
452
+	 * The ordinal row number to seek to.  The row number is zero-based (0 is
453
+	 * the first row).
454
+	 * </p>
455
+	 * <blockquote><p><b>Note</b>: </p><p>This function cannot be used with
456
+	 * unbuffered result handles.</p></blockquote>
457
+	 */
458
+	public function seek($row) {}
459 459
 }
460 460
 
461 461
 /**
@@ -464,88 +464,88 @@  discard block
 block discarded – undo
464 464
  */
465 465
 final class SQLiteUnbuffered
466 466
 {
467
-    /**
468
-     * @param int $result_type [optional]
469
-     * @param bool $decode_binary [optional]
470
-     */
471
-    public function fetch($result_type, $decode_binary) {}
472
-
473
-    /**
474
-     * @link https://www.php.net/manual/en/function.sqlite-fetch-object.php
475
-     * @param string $class_name [optional]
476
-     * @param array $ctor_params [optional]
477
-     * @param bool $decode_binary [optional]
478
-     */
479
-    public function fetchObject($class_name, $ctor_params, $decode_binary) {}
480
-
481
-    /**
482
-     * @param bool $decode_binary [optional]
483
-     */
484
-    public function fetchSingle($decode_binary) {}
485
-
486
-    /**
487
-     * @param int $result_type [optional]
488
-     * @param bool $decode_binary [optional]
489
-     */
490
-    public function fetchAll($result_type, $decode_binary) {}
491
-
492
-    /**
493
-     * @param $index_or_name
494
-     * @param $decode_binary [optional]
495
-     */
496
-    public function column($index_or_name, $decode_binary) {}
497
-
498
-    public function numFields() {}
499
-
500
-    /**
501
-     * @param int $field_index
502
-     */
503
-    public function fieldName($field_index) {}
504
-
505
-    /**
506
-     * @param int $result_type [optional]
507
-     * @param bool $decode_binary [optional]
508
-     */
509
-    public function current($result_type, $decode_binary) {}
510
-
511
-    public function next() {}
512
-
513
-    public function valid() {}
467
+	/**
468
+	 * @param int $result_type [optional]
469
+	 * @param bool $decode_binary [optional]
470
+	 */
471
+	public function fetch($result_type, $decode_binary) {}
472
+
473
+	/**
474
+	 * @link https://www.php.net/manual/en/function.sqlite-fetch-object.php
475
+	 * @param string $class_name [optional]
476
+	 * @param array $ctor_params [optional]
477
+	 * @param bool $decode_binary [optional]
478
+	 */
479
+	public function fetchObject($class_name, $ctor_params, $decode_binary) {}
480
+
481
+	/**
482
+	 * @param bool $decode_binary [optional]
483
+	 */
484
+	public function fetchSingle($decode_binary) {}
485
+
486
+	/**
487
+	 * @param int $result_type [optional]
488
+	 * @param bool $decode_binary [optional]
489
+	 */
490
+	public function fetchAll($result_type, $decode_binary) {}
491
+
492
+	/**
493
+	 * @param $index_or_name
494
+	 * @param $decode_binary [optional]
495
+	 */
496
+	public function column($index_or_name, $decode_binary) {}
497
+
498
+	public function numFields() {}
499
+
500
+	/**
501
+	 * @param int $field_index
502
+	 */
503
+	public function fieldName($field_index) {}
504
+
505
+	/**
506
+	 * @param int $result_type [optional]
507
+	 * @param bool $decode_binary [optional]
508
+	 */
509
+	public function current($result_type, $decode_binary) {}
510
+
511
+	public function next() {}
512
+
513
+	public function valid() {}
514 514
 }
515 515
 
516 516
 final class SQLiteException extends RuntimeException
517 517
 {
518
-    protected $message;
519
-    protected $code;
520
-    protected $file;
521
-    protected $line;
522
-
523
-    /**
524
-     * Clone the exception
525
-     * @link https://php.net/manual/en/exception.clone.php
526
-     * @return void
527
-     * @since 5.1.0
528
-     */
529
-    final private function __clone() {}
530
-
531
-    /**
532
-     * Construct the exception
533
-     * @link https://php.net/manual/en/exception.construct.php
534
-     * @param $message [optional]
535
-     * @param $code [optional]
536
-     * @param $previous [optional]
537
-     * @since 5.1.0
538
-     */
539
-    #[Pure]
540
-    public function __construct($message, $code, $previous) {}
541
-
542
-    /**
543
-     * String representation of the exception
544
-     * @link https://php.net/manual/en/exception.tostring.php
545
-     * @return string the string representation of the exception.
546
-     * @since 5.1.0
547
-     */
548
-    public function __toString() {}
518
+	protected $message;
519
+	protected $code;
520
+	protected $file;
521
+	protected $line;
522
+
523
+	/**
524
+	 * Clone the exception
525
+	 * @link https://php.net/manual/en/exception.clone.php
526
+	 * @return void
527
+	 * @since 5.1.0
528
+	 */
529
+	final private function __clone() {}
530
+
531
+	/**
532
+	 * Construct the exception
533
+	 * @link https://php.net/manual/en/exception.construct.php
534
+	 * @param $message [optional]
535
+	 * @param $code [optional]
536
+	 * @param $previous [optional]
537
+	 * @since 5.1.0
538
+	 */
539
+	#[Pure]
540
+	public function __construct($message, $code, $previous) {}
541
+
542
+	/**
543
+	 * String representation of the exception
544
+	 * @link https://php.net/manual/en/exception.tostring.php
545
+	 * @return string the string representation of the exception.
546
+	 * @since 5.1.0
547
+	 */
548
+	public function __toString() {}
549 549
 }
550 550
 
551 551
 /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
 /**
7 7
  * @link https://php.net/manual/en/ref.sqlite.php
8 8
  */
9
-class SQLiteDatabase
10
-{
9
+class SQLiteDatabase {
11 10
     /**
12 11
      * (PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)
13 12
      * @link https://php.net/manual/en/function.sqlite-open.php
@@ -462,8 +461,7 @@  discard block
 block discarded – undo
462 461
  * Represents an unbuffered SQLite result set. Unbuffered results sets are sequential, forward-seeking only.
463 462
  * @link https://php.net/manual/en/ref.sqlite.php
464 463
  */
465
-final class SQLiteUnbuffered
466
-{
464
+final class SQLiteUnbuffered {
467 465
     /**
468 466
      * @param int $result_type [optional]
469 467
      * @param bool $decode_binary [optional]
@@ -513,8 +511,7 @@  discard block
 block discarded – undo
513 511
     public function valid() {}
514 512
 }
515 513
 
516
-final class SQLiteException extends RuntimeException
517
-{
514
+final class SQLiteException extends RuntimeException {
518 515
     protected $message;
519 516
     protected $code;
520 517
     protected $file;
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/mbstring/mbstring.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -813,11 +813,11 @@
 block discarded – undo
813 813
  * or false for failure.
814 814
  */
815 815
 function mb_convert_variables(
816
-    string $to_encoding,
817
-    array|string $from_encoding,
818
-    #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] &$vars,
819
-    #[PhpStormStubsElementAvailable(from: '8.0')] mixed &$var,
820
-    mixed &...$vars
816
+	string $to_encoding,
817
+	array|string $from_encoding,
818
+	#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] &$vars,
819
+	#[PhpStormStubsElementAvailable(from: '8.0')] mixed &$var,
820
+	mixed &...$vars
821 821
 ): string|false {}
822 822
 
823 823
 /**
Please login to merge, or discard this patch.
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
  * name as a string. If no language is set previously, it then returns
73 73
  * false.
74 74
  */
75
-function mb_language(?string $language): string|bool {}
75
+function mb_language(?string $language): string | bool {}
76 76
 
77 77
 /**
78 78
  * Set/Get internal character encoding
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
  * If encoding is omitted, then
89 89
  * the current character encoding name is returned.
90 90
  */
91
-function mb_internal_encoding(?string $encoding): string|bool {}
91
+function mb_internal_encoding(?string $encoding): string | bool {}
92 92
 
93 93
 /**
94 94
  * Detect HTTP input character encoding
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
  * HTTP input, it returns false.
105 105
  */
106 106
 #[Pure]
107
-function mb_http_input(?string $type): array|string|false {}
107
+function mb_http_input(?string $type): array | string | false {}
108 108
 
109 109
 /**
110 110
  * Set/Get HTTP output character encoding
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
  * character encoding. Otherwise,
125 125
  * true on success or false on failure.
126 126
  */
127
-function mb_http_output(?string $encoding): string|bool {}
127
+function mb_http_output(?string $encoding): string | bool {}
128 128
 
129 129
 /**
130 130
  * Set/Get character encoding detection order
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
  * When getting the encoding detection order, an ordered array
170 170
  * of the encodings is returned.
171 171
  */
172
-function mb_detect_order(array|string|null $encoding = null): array|bool {}
172
+function mb_detect_order(array | string | null $encoding = null): array | bool {}
173 173
 
174 174
 /**
175 175
  * Set/Get substitution character
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
  * If substchar is not set, it returns the Unicode value,
187 187
  * or "none" or "long".
188 188
  */
189
-function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {}
189
+function mb_substitute_character(string | int | null $substitute_character = null): string | int | bool {}
190 190
 
191 191
 /**
192 192
  * Parse GET/POST/COOKIE data and set global variable
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
  * </p>
200 200
  * @return bool true on success or false on failure.
201 201
  */
202
-#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')]
202
+#[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')]
203 203
 function mb_parse_str(string $string, &$result): bool {}
204 204
 
205 205
 /**
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
  * </p>
214 214
  * @return bool true on success or false on failure.
215 215
  */
216
-#[PhpStormStubsElementAvailable(from: '8.0')]
216
+#[PhpStormStubsElementAvailable(from : '8.0')]
217 217
 function mb_parse_str(string $string, &$result): bool {}
218 218
 
219 219
 /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
  * encoding.
241 241
  */
242 242
 #[Pure]
243
-function mb_preferred_mime_name(string $encoding): string|false {}
243
+function mb_preferred_mime_name(string $encoding): string | false {}
244 244
 
245 245
 /**
246 246
  * Get string length
@@ -255,8 +255,8 @@  discard block
 block discarded – undo
255 255
  * counted as 1.
256 256
  */
257 257
 #[Pure]
258
-#[LanguageLevelTypeAware(['8.0' => 'int'], default: 'int|false')]
259
-function mb_strlen(string $string, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $encoding) {}
258
+#[LanguageLevelTypeAware(['8.0' => 'int'], default : 'int|false')]
259
+function mb_strlen(string $string, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : 'string')] $encoding) {}
260 260
 
261 261
 /**
262 262
  * Find position of first occurrence of string in a string
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
  * needle is not found, it returns false.
278 278
  */
279 279
 #[Pure]
280
-function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {}
280
+function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int | false {}
281 281
 
282 282
 /**
283 283
  * Find position of last occurrence of a string in a string
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
  * needle is not found, it returns false.
300 300
  */
301 301
 #[Pure]
302
-function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {}
302
+function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int | false {}
303 303
 
304 304
 /**
305 305
  * Finds position of first occurrence of a string within another, case insensitive
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
  * string, or false if needle is not found.
325 325
  */
326 326
 #[Pure]
327
-function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {}
327
+function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int | false {}
328 328
 
329 329
 /**
330 330
  * Finds position of last occurrence of a string within another, case insensitive
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
  * if needle is not found.
351 351
  */
352 352
 #[Pure]
353
-function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int|false {}
353
+function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding): int | false {}
354 354
 
355 355
 /**
356 356
  * Finds first occurrence of a string within another
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
  * or false if needle is not found.
379 379
  */
380 380
 #[Pure]
381
-function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {}
381
+function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string | false {}
382 382
 
383 383
 /**
384 384
  * Finds the last occurrence of a character in a string within another
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
  * or false if needle is not found.
407 407
  */
408 408
 #[Pure]
409
-function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {}
409
+function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string | false {}
410 410
 
411 411
 /**
412 412
  * Finds first occurrence of a string within another, case insensitive
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
  * or false if needle is not found.
435 435
  */
436 436
 #[Pure]
437
-function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {}
437
+function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string | false {}
438 438
 
439 439
 /**
440 440
  * Finds the last occurrence of a character in a string within another, case insensitive
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
  * or false if needle is not found.
463 463
  */
464 464
 #[Pure]
465
-function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string|false {}
465
+function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding): string | false {}
466 466
 
467 467
 /**
468 468
  * Count the number of substring occurrences
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
  * @return array|string|false The encoded string.
582 582
  */
583 583
 #[Pure]
584
-function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false {}
584
+function mb_convert_encoding(array | string $string, string $to_encoding, array | string | null $from_encoding = null): array | string | false {}
585 585
 
586 586
 /**
587 587
  * Detect character encoding
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
  * detected from the given string.
608 608
  */
609 609
 #[Pure]
610
-function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = false): string|false {}
610
+function mb_detect_encoding(string $string, array | string | null $encodings = null, bool $strict = false): string | false {}
611 611
 
612 612
 /**
613 613
  * Returns an array of all supported encodings
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
  * @link https://php.net/manual/en/function.mb-encoding-aliases.php
625 625
  */
626 626
 #[Pure]
627
-#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
627
+#[LanguageLevelTypeAware(["8.0" => "array"], default : "array|false")]
628 628
 function mb_encoding_aliases(string $encoding) {}
629 629
 
630 630
 /**
@@ -814,11 +814,11 @@  discard block
 block discarded – undo
814 814
  */
815 815
 function mb_convert_variables(
816 816
     string $to_encoding,
817
-    array|string $from_encoding,
818
-    #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] &$vars,
819
-    #[PhpStormStubsElementAvailable(from: '8.0')] mixed &$var,
817
+    array | string $from_encoding,
818
+    #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] & $vars,
819
+    #[PhpStormStubsElementAvailable(from : '8.0')] mixed &$var,
820 820
     mixed &...$vars
821
-): string|false {}
821
+): string | false {}
822 822
 
823 823
 /**
824 824
  * Encode character to HTML numeric string reference
@@ -854,8 +854,8 @@  discard block
 block discarded – undo
854 854
  * @return string|false|null The converted string.
855 855
  */
856 856
 #[Pure]
857
-#[LanguageLevelTypeAware(['8.0' => 'string'], default: 'string|false|null')]
858
-function mb_decode_numericentity(string $string, array $map, ?string $encoding = null, #[PhpStormStubsElementAvailable(from: '7.2', to: '7.4')] $is_hex = false) {}
857
+#[LanguageLevelTypeAware(['8.0' => 'string'], default : 'string|false|null')]
858
+function mb_decode_numericentity(string $string, array $map, ?string $encoding = null, #[PhpStormStubsElementAvailable(from : '7.2', to : '7.4')] $is_hex = false) {}
859 859
 
860 860
 /**
861 861
  * Send encoded mail
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
  * </p>
887 887
  * @return bool true on success or false on failure.
888 888
  */
889
-function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers, ?string $additional_params): bool {}
889
+function mb_send_mail(string $to, string $subject, string $message, array | string $additional_headers, ?string $additional_params): bool {}
890 890
 
891 891
 /**
892 892
  * Get internal settings of mbstring
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
  * is not specified, otherwise a specific type.
907 907
  */
908 908
 #[Pure]
909
-function mb_get_info(string $type = 'all'): array|string|int|false {}
909
+function mb_get_info(string $type = 'all'): array | string | int | false {}
910 910
 
911 911
 /**
912 912
  * Check if the string is valid for the specified encoding
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
  * @since 5.1.3
923 923
  */
924 924
 #[Pure]
925
-function mb_check_encoding(array|string|null $value = null, ?string $encoding): bool {}
925
+function mb_check_encoding(array | string | null $value = null, ?string $encoding): bool {}
926 926
 
927 927
 /**
928 928
  * Returns current encoding for multibyte regex as string
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
  * is NOT changed. If encoding is omitted, then the current character
934 934
  * encoding name for a multibyte regex is returned.
935 935
  */
936
-function mb_regex_encoding(?string $encoding): string|bool {}
936
+function mb_regex_encoding(?string $encoding): string | bool {}
937 937
 
938 938
 /**
939 939
  * Set/Get the default options for mbregex functions
@@ -976,7 +976,7 @@  discard block
 block discarded – undo
976 976
  * </p>
977 977
  * @return bool|int
978 978
  */
979
-#[LanguageLevelTypeAware(["8.0" => "bool"], default: "false|int")]
979
+#[LanguageLevelTypeAware(["8.0" => "bool"], default : "false|int")]
980 980
 function mb_eregi(string $pattern, string $string, &$matches): bool {}
981 981
 
982 982
 /**
@@ -1008,7 +1008,7 @@  discard block
 block discarded – undo
1008 1008
  * @return string|false|null The resultant string on success, or false on error.
1009 1009
  */
1010 1010
 #[Pure]
1011
-function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = "msr"): string|false|null {}
1011
+function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = "msr"): string | false | null {}
1012 1012
 
1013 1013
 /**
1014 1014
  * Perform a regular expresssion seach and replace with multibyte support using a callback
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
  * </p>
1054 1054
  * @since 5.4.1
1055 1055
  */
1056
-function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = "msr"): string|false|null {}
1056
+function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = "msr"): string | false | null {}
1057 1057
 
1058 1058
 /**
1059 1059
  * Replace regular expression with multibyte support ignoring case
@@ -1073,7 +1073,7 @@  discard block
 block discarded – undo
1073 1073
  * @return string|false|null The resultant string or false on error.
1074 1074
  */
1075 1075
 #[Pure]
1076
-function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = "msr"): string|false|null {}
1076
+function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = "msr"): string | false | null {}
1077 1077
 
1078 1078
 /**
1079 1079
  * Split multibyte string using regular expression
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
  * @return string[]|false The result as an array.
1091 1091
  */
1092 1092
 #[Pure]
1093
-function mb_split(string $pattern, string $string, int $limit = -1): array|false {}
1093
+function mb_split(string $pattern, string $string, int $limit = -1): array | false {}
1094 1094
 
1095 1095
 /**
1096 1096
  * Regular expression match for multibyte string
@@ -1137,7 +1137,7 @@  discard block
 block discarded – undo
1137 1137
  * length in bytes of the match. If an error occurs, FALSE is returned.
1138 1138
  */
1139 1139
 #[Pure]
1140
-function mb_ereg_search_pos(?string $pattern, ?string $options): array|false {}
1140
+function mb_ereg_search_pos(?string $pattern, ?string $options): array | false {}
1141 1141
 
1142 1142
 /**
1143 1143
  * Returns the matched part of a multibyte regular expression
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
  * part as third element, and so on. It returns FALSE on error.
1156 1156
  */
1157 1157
 #[Pure]
1158
-function mb_ereg_search_regs(?string $pattern, ?string $options): array|false {}
1158
+function mb_ereg_search_regs(?string $pattern, ?string $options): array | false {}
1159 1159
 
1160 1160
 /**
1161 1161
  * Setup string and regular expression for a multibyte regular expression match
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
  * brackets, and so on. It returns FALSE on error;
1185 1185
  */
1186 1186
 #[Pure]
1187
-function mb_ereg_search_getregs(): array|false {}
1187
+function mb_ereg_search_getregs(): array | false {}
1188 1188
 
1189 1189
 /**
1190 1190
  * Returns start point for next regular expression match
@@ -1192,7 +1192,7 @@  discard block
 block discarded – undo
1192 1192
  * @return int
1193 1193
  */
1194 1194
 #[Pure]
1195
-#[Deprecated(since: '7.3')]
1195
+#[Deprecated(since : '7.3')]
1196 1196
 function mb_ereg_search_getpos(): int {}
1197 1197
 
1198 1198
 /**
@@ -1211,7 +1211,7 @@  discard block
 block discarded – undo
1211 1211
  * @see mb_regex_encoding
1212 1212
  * @removed 8.0
1213 1213
  */
1214
-#[Deprecated(replacement: "mb_regex_encoding(%parametersList%)", since: "7.3")]
1214
+#[Deprecated(replacement : "mb_regex_encoding(%parametersList%)", since : "7.3")]
1215 1215
 function mbregex_encoding($encoding) {}
1216 1216
 
1217 1217
 /**
@@ -1221,7 +1221,7 @@  discard block
 block discarded – undo
1221 1221
  * @see mb_ereg
1222 1222
  * @removed 8.0
1223 1223
  */
1224
-#[Deprecated(replacement: 'mb_ereg(%parametersList%)', since: '7.3')]
1224
+#[Deprecated(replacement : 'mb_ereg(%parametersList%)', since : '7.3')]
1225 1225
 function mbereg(string $pattern, string $string, array &$registers) {}
1226 1226
 
1227 1227
 /**
@@ -1231,7 +1231,7 @@  discard block
 block discarded – undo
1231 1231
  * @see mb_eregi
1232 1232
  * @removed 8.0
1233 1233
  */
1234
-#[Deprecated(replacement: "mb_eregi(%parametersList%)", since: "7.3")]
1234
+#[Deprecated(replacement : "mb_eregi(%parametersList%)", since : "7.3")]
1235 1235
 function mberegi(string $pattern, string $string, array &$registers) {}
1236 1236
 
1237 1237
 /**
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
  * @see mb_ereg_replace
1243 1243
  * @removed 8.0
1244 1244
  */
1245
-#[Deprecated(replacement: 'mb_ereg_replace(%parametersList%)', since: '7.3')]
1245
+#[Deprecated(replacement : 'mb_ereg_replace(%parametersList%)', since : '7.3')]
1246 1246
 function mbereg_replace($pattern, $replacement, $string, $option) {}
1247 1247
 
1248 1248
 /**
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
  * @see mb_eregi_replace
1255 1255
  * @removed 8.0
1256 1256
  */
1257
-#[Deprecated(replacement: "mb_eregi_replace(%parametersList%)", since: "7.3")]
1257
+#[Deprecated(replacement : "mb_eregi_replace(%parametersList%)", since : "7.3")]
1258 1258
 function mberegi_replace($pattern, $replacement, $string, string $option = "msri"): string {}
1259 1259
 
1260 1260
 /**
@@ -1264,7 +1264,7 @@  discard block
 block discarded – undo
1264 1264
  * @see mb_split
1265 1265
  * @removed 8.0
1266 1266
  */
1267
-#[Deprecated(replacement: 'mb_split(%parametersList%)', since: '7.3')]
1267
+#[Deprecated(replacement : 'mb_split(%parametersList%)', since : '7.3')]
1268 1268
 function mbsplit($pattern, $string, $limit) {}
1269 1269
 
1270 1270
 /**
@@ -1274,7 +1274,7 @@  discard block
 block discarded – undo
1274 1274
  * @see mb_ereg_match
1275 1275
  * @removed 8.0
1276 1276
  */
1277
-#[Deprecated(replacement: "mb_ereg_match(%parametersList%)", since: "7.3")]
1277
+#[Deprecated(replacement : "mb_ereg_match(%parametersList%)", since : "7.3")]
1278 1278
 function mbereg_match($pattern, $string, $option) {}
1279 1279
 
1280 1280
 /**
@@ -1283,7 +1283,7 @@  discard block
 block discarded – undo
1283 1283
  * @see mb_ereg_search
1284 1284
  * @removed 8.0
1285 1285
  */
1286
-#[Deprecated("use mb_ereg_search instead", replacement: "mb_ereg_search(%parametersList%)", since: "7.3")]
1286
+#[Deprecated("use mb_ereg_search instead", replacement : "mb_ereg_search(%parametersList%)", since : "7.3")]
1287 1287
 function mbereg_search($pattern, $option) {}
1288 1288
 
1289 1289
 /**
@@ -1292,7 +1292,7 @@  discard block
 block discarded – undo
1292 1292
  * @see mb_ereg_search_pos
1293 1293
  * @removed 8.0
1294 1294
  */
1295
-#[Deprecated(replacement: "mb_ereg_search_pos(%parametersList%)", since: "7.3")]
1295
+#[Deprecated(replacement : "mb_ereg_search_pos(%parametersList%)", since : "7.3")]
1296 1296
 function mbereg_search_pos($pattern, $option) {}
1297 1297
 
1298 1298
 /**
@@ -1301,7 +1301,7 @@  discard block
 block discarded – undo
1301 1301
  * @see mb_ereg_search_regs
1302 1302
  * @removed 8.0
1303 1303
  */
1304
-#[Deprecated(replacement: 'mb_ereg_search_regs(%parametersList%)', since: '7.3')]
1304
+#[Deprecated(replacement : 'mb_ereg_search_regs(%parametersList%)', since : '7.3')]
1305 1305
 function mbereg_search_regs($pattern, $option) {}
1306 1306
 
1307 1307
 /**
@@ -1311,21 +1311,21 @@  discard block
 block discarded – undo
1311 1311
  * @see mb_ereg_search_init
1312 1312
  * @removed 8.0
1313 1313
  */
1314
-#[Deprecated(replacement: "mb_ereg_search_init(%parametersList%)", since: "7.3")]
1314
+#[Deprecated(replacement : "mb_ereg_search_init(%parametersList%)", since : "7.3")]
1315 1315
 function mbereg_search_init($string, $pattern, $option) {}
1316 1316
 
1317 1317
 /**
1318 1318
  * @see mb_ereg_search_getregs
1319 1319
  * @removed 8.0
1320 1320
  */
1321
-#[Deprecated(replacement: 'mb_ereg_search_getregs(%parametersList%)', since: '7.3')]
1321
+#[Deprecated(replacement : 'mb_ereg_search_getregs(%parametersList%)', since : '7.3')]
1322 1322
 function mbereg_search_getregs() {}
1323 1323
 
1324 1324
 /**
1325 1325
  * @see mb_ereg_search_getpos
1326 1326
  * @removed 8.0
1327 1327
  */
1328
-#[Deprecated(replacement: "mb_ereg_search_getpos()", since: "7.3")]
1328
+#[Deprecated(replacement : "mb_ereg_search_getpos()", since : "7.3")]
1329 1329
 function mbereg_search_getpos() {}
1330 1330
 
1331 1331
 /**
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
  * @since 7.2
1338 1338
  */
1339 1339
 #[Pure]
1340
-function mb_chr(int $codepoint, ?string $encoding): string|false {}
1340
+function mb_chr(int $codepoint, ?string $encoding): string | false {}
1341 1341
 
1342 1342
 /**
1343 1343
  * Get code point of character
@@ -1348,7 +1348,7 @@  discard block
 block discarded – undo
1348 1348
  * @since 7.2
1349 1349
  */
1350 1350
 #[Pure]
1351
-function mb_ord(string $string, ?string $encoding): int|false {}
1351
+function mb_ord(string $string, ?string $encoding): int | false {}
1352 1352
 
1353 1353
 /**
1354 1354
  * Scrub broken multibyte strings.
@@ -1359,14 +1359,14 @@  discard block
 block discarded – undo
1359 1359
  * @since 7.2
1360 1360
  */
1361 1361
 #[Pure]
1362
-#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
1363
-function mb_scrub(string $string, ?string $encoding): false|string {}
1362
+#[LanguageLevelTypeAware(["8.0" => "string"], default : "string|false")]
1363
+function mb_scrub(string $string, ?string $encoding): false | string {}
1364 1364
 
1365 1365
 /**
1366 1366
  * @param $position
1367 1367
  * @see mb_ereg_search_setpos
1368 1368
  */
1369
-#[Deprecated(replacement: "mb_ereg_search_setpos(%parametersList%)", since: "7.3")]
1369
+#[Deprecated(replacement : "mb_ereg_search_setpos(%parametersList%)", since : "7.3")]
1370 1370
 #[Pure]
1371 1371
 function mbereg_search_setpos($position) {}
1372 1372
 
@@ -1386,7 +1386,7 @@  discard block
 block discarded – undo
1386 1386
  * @since 7.4
1387 1387
  */
1388 1388
 #[Pure]
1389
-#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
1389
+#[LanguageLevelTypeAware(["8.0" => "array"], default : "array|false")]
1390 1390
 function mb_str_split(string $string, int $length = 1, ?string $encoding) {}
1391 1391
 
1392 1392
 /**
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/sodium/sodium.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
  * @since 7.2
245 245
  */
246 246
 function sodium_crypto_aead_chacha20poly1305_ietf_encrypt(
247
-    string $message,
248
-    string $additional_data,
249
-    string $nonce,
250
-    string $key
247
+	string $message,
248
+	string $additional_data,
249
+	string $nonce,
250
+	string $key
251 251
 ): string {}
252 252
 
253 253
 /**
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
  * @since 7.2
262 262
  */
263 263
 function sodium_crypto_auth(
264
-    string $message,
265
-    string $key
264
+	string $message,
265
+	string $key
266 266
 ): string {}
267 267
 
268 268
 /**
@@ -532,10 +532,10 @@  discard block
 block discarded – undo
532 532
  * @since 7.2
533 533
  */
534 534
 function sodium_crypto_kx(
535
-    string $secret_key,
536
-    string $public_key,
537
-    string $client_publickey,
538
-    string $server_publickey
535
+	string $secret_key,
536
+	string $public_key,
537
+	string $client_publickey,
538
+	string $server_publickey
539 539
 ): string {}
540 540
 
541 541
 /**
@@ -561,8 +561,8 @@  discard block
 block discarded – undo
561 561
  * @since 7.2
562 562
  */
563 563
 function sodium_crypto_generichash_init(
564
-    string $key = '',
565
-    int $length = 32
564
+	string $key = '',
565
+	int $length = 32
566 566
 ): string {}
567 567
 
568 568
 /**
@@ -588,8 +588,8 @@  discard block
 block discarded – undo
588 588
  * @since 7.2
589 589
  */
590 590
 function sodium_crypto_generichash_final(
591
-    string &$state,
592
-    int $length = 32
591
+	string &$state,
592
+	int $length = 32
593 593
 ): string {}
594 594
 
595 595
 /**
@@ -647,12 +647,12 @@  discard block
 block discarded – undo
647 647
  * @since 7.2
648 648
  */
649 649
 function sodium_crypto_pwhash_scryptsalsa208sha256(
650
-    int $length,
651
-    string $password,
652
-    string $salt,
653
-    int $opslimit,
654
-    int $memlimit,
655
-    #[PhpStormStubsElementAvailable(from: '7.2', to: '7.4')] $alg = null
650
+	int $length,
651
+	string $password,
652
+	string $salt,
653
+	int $opslimit,
654
+	int $memlimit,
655
+	#[PhpStormStubsElementAvailable(from: '7.2', to: '7.4')] $alg = null
656 656
 ): string {}
657 657
 
658 658
 /**
@@ -792,8 +792,8 @@  discard block
 block discarded – undo
792 792
  * @since 7.2
793 793
  */
794 794
 function sodium_crypto_sign_keypair_from_secretkey_and_publickey(
795
-    string $secret_key,
796
-    string $public_key
795
+	string $secret_key,
796
+	string $public_key
797 797
 ): string {}
798 798
 
799 799
 /**
@@ -871,9 +871,9 @@  discard block
 block discarded – undo
871 871
  * @since 7.2
872 872
  */
873 873
 function sodium_crypto_stream(
874
-    int $length,
875
-    string $nonce,
876
-    string $key
874
+	int $length,
875
+	string $nonce,
876
+	string $key
877 877
 ): string {}
878 878
 
879 879
 /**
@@ -888,9 +888,9 @@  discard block
 block discarded – undo
888 888
  * @since 7.2
889 889
  */
890 890
 function sodium_crypto_stream_xor(
891
-    string $message,
892
-    string $nonce,
893
-    string $key
891
+	string $message,
892
+	string $nonce,
893
+	string $key
894 894
 ): string {}
895 895
 
896 896
 /**
@@ -1025,8 +1025,8 @@  discard block
 block discarded – undo
1025 1025
  * @since 7.2
1026 1026
  */
1027 1027
 function sodium_crypto_scalarmult_base(
1028
-    string $secret_key,
1029
-    #[PhpStormStubsElementAvailable(from: '7.2', to: '7.4')] $string_2
1028
+	string $secret_key,
1029
+	#[PhpStormStubsElementAvailable(from: '7.2', to: '7.4')] $string_2
1030 1030
 ): string {}
1031 1031
 
1032 1032
 /**
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
  * @throws SodiumException
174 174
  * @since 7.2
175 175
  */
176
-function sodium_crypto_aead_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
176
+function sodium_crypto_aead_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string | false {}
177 177
 
178 178
 /**
179 179
  * Authenticated Encryption with Associated Data (encrypt)
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
  * @throws SodiumException
202 202
  * @since 7.2
203 203
  */
204
-function sodium_crypto_aead_chacha20poly1305_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
204
+function sodium_crypto_aead_chacha20poly1305_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string | false {}
205 205
 
206 206
 /**
207 207
  * Authenticated Encryption with Associated Data (encrypt)
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
  * @throws SodiumException
230 230
  * @since 7.2
231 231
  */
232
-function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
232
+function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string | false {}
233 233
 
234 234
 /**
235 235
  * Authenticated Encryption with Associated Data (encrypt)
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
  * @throws SodiumException
466 466
  * @since 7.2
467 467
  */
468
-function sodium_crypto_box_open(string $ciphertext, string $nonce, string $key_pair): string|false {}
468
+function sodium_crypto_box_open(string $ciphertext, string $nonce, string $key_pair): string | false {}
469 469
 
470 470
 /**
471 471
  * Get an X25519 public key from an X25519 keypair
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
  * @throws SodiumException
510 510
  * @since 7.2
511 511
  */
512
-function sodium_crypto_box_seal_open(string $ciphertext, string $key_pair): string|false {}
512
+function sodium_crypto_box_seal_open(string $ciphertext, string $key_pair): string | false {}
513 513
 
514 514
 /**
515 515
  * Extract the X25519 secret key from an X25519 keypair
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
  * @throws SodiumException
716 716
  * @since 7.2
717 717
  */
718
-function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, string $key): string|false {}
718
+function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, string $key): string | false {}
719 719
 
720 720
 /**
721 721
  * A short keyed hash suitable for data structures
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
  * @throws SodiumException
806 806
  * @since 7.2
807 807
  */
808
-function sodium_crypto_sign_open(string $signed_message, string $public_key): string|false {}
808
+function sodium_crypto_sign_open(string $signed_message, string $public_key): string | false {}
809 809
 
810 810
 /**
811 811
  * Get the public key from an Ed25519 keypair
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
  * @since 7.2
1083 1083
  * @see https://www.php.net/manual/en/function.sodium-crypto-aead-xchacha20poly1305-ietf-decrypt.php
1084 1084
  */
1085
-function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
1085
+function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string | false {}
1086 1086
 
1087 1087
 /**
1088 1088
  * @param string $message
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/svm/SVMModel.php 2 patches
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -7,89 +7,89 @@
 block discarded – undo
7 7
  */
8 8
 class SVMModel
9 9
 {
10
-    /* Methods */
11
-    /**
12
-     * Returns true if the model has probability information
13
-     *
14
-     * @return bool Return a boolean value
15
-     * @link https://www.php.net/manual/en/svmmodel.checkprobabilitymodel.php
16
-     */
17
-    public function checkProbabilityModel(): bool {}
18
-    /**
19
-     * Construct a new SVMModel
20
-     *
21
-     * Build a new SVMModel. Models will usually be created from the SVM::train function, but then saved models may be restored directly.
22
-     * @param string $filename The filename for the saved model file this model should load.
23
-     * @throws Throws SVMException on error
24
-     * @link https://www.php.net/manual/en/svmmodel.construct.php
25
-     */
26
-    public function __construct(string $filename = '') {}
27
-    /**
28
-     * Get the labels the model was trained on
29
-     *
30
-     * Return an array of labels that the model was trained on. For regression and one class models an empty array is returned.
31
-     * @return array Return an array of labels
32
-     * @link https://www.php.net/manual/en/svmmodel.getlabels.php
33
-     */
34
-    public function getLabels(): array {}
35
-    /**
36
-     * Returns the number of classes the model was trained with
37
-     *
38
-     * Returns the number of classes the model was trained with, will return 2 for one class and regression models.
39
-     * @return int Return an integer number of classes
40
-     * @link https://www.php.net/manual/en/svmmodel.getnrclass.php
41
-     */
42
-    public function getNrClass(): int {}
43
-    /**
44
-     * Get the SVM type the model was trained with
45
-     *
46
-     * Returns an integer value representing the type of the SVM model used, e.g SVM::C_SVC.
47
-     * @return int Return an integer SVM type
48
-     * @link https://www.php.net/manual/en/svmmodel.getsvmtype.php
49
-     */
50
-    public function getSvmType(): int {}
51
-    /**
52
-     * Get the sigma value for regression types
53
-     *
54
-     * For regression models, returns a sigma value. If there is no probability information or the model is not SVR, 0 is returned.
55
-     * @return float Returns a sigma value
56
-     * @link https://www.php.net/manual/en/svmmodel.getsvrprobability.php
57
-     */
58
-    public function getSvrProbability(): float {}
59
-    /**
60
-     * Load a saved SVM Model
61
-     * @param string $filename The filename of the model.
62
-     * @return bool Returns true on success.
63
-     * @throws SVMException
64
-     * @link https://www.php.net/manual/en/svmmodel.load.php
65
-     */
66
-    public function load(string $filename): bool {}
67
-    /**
68
-     * Return class probabilities for previous unseen data
69
-     *
70
-     * This function accepts an array of data and attempts to predict the class, as with the predict function. Additionally, however, this function returns an array of probabilities, one per class in the model, which represent the estimated chance of the data supplied being a member of that class. Requires that the model to be used has been trained with the probability parameter set to true.
71
-     * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous.
72
-     * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error
73
-     * @throws SVMException Throws SVMException on error
74
-     * @link https://www.php.net/manual/en/svmmodel.predict-probability.php
75
-     */
76
-    public function predict_probability(array $data): float {}
77
-    /**
78
-     * Predict a value for previously unseen data
79
-     *
80
-     * This function accepts an array of data and attempts to predict the class or regression value based on the model extracted from previously trained data.
81
-     * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous.
82
-     * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error
83
-     * @throws SVMException Throws SVMException on error
84
-     * @link https://www.php.net/manual/en/svmmodel.predict.php
85
-     */
86
-    public function predict(array $data): float {}
87
-    /**
88
-     * Save a model to a file, for later use
89
-     * @param string $filename The file to save the model to.
90
-     * @return bool Throws SVMException on error. Returns true on success.
91
-     * @throws SVMException Throws SVMException on error
92
-     * @link https://www.php.net/manual/en/svmmodel.save.php
93
-     */
94
-    public function save(string $filename): bool {}
10
+	/* Methods */
11
+	/**
12
+	 * Returns true if the model has probability information
13
+	 *
14
+	 * @return bool Return a boolean value
15
+	 * @link https://www.php.net/manual/en/svmmodel.checkprobabilitymodel.php
16
+	 */
17
+	public function checkProbabilityModel(): bool {}
18
+	/**
19
+	 * Construct a new SVMModel
20
+	 *
21
+	 * Build a new SVMModel. Models will usually be created from the SVM::train function, but then saved models may be restored directly.
22
+	 * @param string $filename The filename for the saved model file this model should load.
23
+	 * @throws Throws SVMException on error
24
+	 * @link https://www.php.net/manual/en/svmmodel.construct.php
25
+	 */
26
+	public function __construct(string $filename = '') {}
27
+	/**
28
+	 * Get the labels the model was trained on
29
+	 *
30
+	 * Return an array of labels that the model was trained on. For regression and one class models an empty array is returned.
31
+	 * @return array Return an array of labels
32
+	 * @link https://www.php.net/manual/en/svmmodel.getlabels.php
33
+	 */
34
+	public function getLabels(): array {}
35
+	/**
36
+	 * Returns the number of classes the model was trained with
37
+	 *
38
+	 * Returns the number of classes the model was trained with, will return 2 for one class and regression models.
39
+	 * @return int Return an integer number of classes
40
+	 * @link https://www.php.net/manual/en/svmmodel.getnrclass.php
41
+	 */
42
+	public function getNrClass(): int {}
43
+	/**
44
+	 * Get the SVM type the model was trained with
45
+	 *
46
+	 * Returns an integer value representing the type of the SVM model used, e.g SVM::C_SVC.
47
+	 * @return int Return an integer SVM type
48
+	 * @link https://www.php.net/manual/en/svmmodel.getsvmtype.php
49
+	 */
50
+	public function getSvmType(): int {}
51
+	/**
52
+	 * Get the sigma value for regression types
53
+	 *
54
+	 * For regression models, returns a sigma value. If there is no probability information or the model is not SVR, 0 is returned.
55
+	 * @return float Returns a sigma value
56
+	 * @link https://www.php.net/manual/en/svmmodel.getsvrprobability.php
57
+	 */
58
+	public function getSvrProbability(): float {}
59
+	/**
60
+	 * Load a saved SVM Model
61
+	 * @param string $filename The filename of the model.
62
+	 * @return bool Returns true on success.
63
+	 * @throws SVMException
64
+	 * @link https://www.php.net/manual/en/svmmodel.load.php
65
+	 */
66
+	public function load(string $filename): bool {}
67
+	/**
68
+	 * Return class probabilities for previous unseen data
69
+	 *
70
+	 * This function accepts an array of data and attempts to predict the class, as with the predict function. Additionally, however, this function returns an array of probabilities, one per class in the model, which represent the estimated chance of the data supplied being a member of that class. Requires that the model to be used has been trained with the probability parameter set to true.
71
+	 * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous.
72
+	 * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error
73
+	 * @throws SVMException Throws SVMException on error
74
+	 * @link https://www.php.net/manual/en/svmmodel.predict-probability.php
75
+	 */
76
+	public function predict_probability(array $data): float {}
77
+	/**
78
+	 * Predict a value for previously unseen data
79
+	 *
80
+	 * This function accepts an array of data and attempts to predict the class or regression value based on the model extracted from previously trained data.
81
+	 * @param array $data The array to be classified. This should be a series of key => value pairs in increasing key order, but not necessarily continuous.
82
+	 * @return float the predicted value. This will be a class label in the case of classification, a real value in the case of regression. Throws SVMException on error
83
+	 * @throws SVMException Throws SVMException on error
84
+	 * @link https://www.php.net/manual/en/svmmodel.predict.php
85
+	 */
86
+	public function predict(array $data): float {}
87
+	/**
88
+	 * Save a model to a file, for later use
89
+	 * @param string $filename The file to save the model to.
90
+	 * @return bool Throws SVMException on error. Returns true on success.
91
+	 * @throws SVMException Throws SVMException on error
92
+	 * @link https://www.php.net/manual/en/svmmodel.save.php
93
+	 */
94
+	public function save(string $filename): bool {}
95 95
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
  * @since 7.0
6 6
  * @link https://www.php.net/manual/en/class.svmmodel.php
7 7
  */
8
-class SVMModel
9
-{
8
+class SVMModel {
10 9
     /* Methods */
11 10
     /**
12 11
      * Returns true if the model has probability information
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/svm/SVM.php 2 patches
Indentation   +137 added lines, -138 removed lines patch added patch discarded remove patch
@@ -1,153 +1,152 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3 3
  * Support Vector Machine Library
4
-
5 4
  * LibSVM is an efficient solver for SVM classification and regression problems. The svm extension wraps this in a PHP interface for easy use in PHP scripts.
6 5
  * @since 7.0
7 6
  * @link https://www.php.net/manual/en/class.svm.php
8 7
  */
9 8
 class SVM
10 9
 {
11
-    /* Constants */
12
-    /**
13
-     * @const The basic C_SVC SVM type. The default, and a good starting point
14
-     */
15
-    public const C_SVC = 0;
16
-    /**
17
-     * @const NU_SVC type uses a different, more flexible, error weighting
18
-     */
19
-    public const NU_SVC = 1;
20
-    /**
21
-     * @const One class SVM type. Train just on a single class, using outliers as negative examples
22
-     */
23
-    public const ONE_CLASS = 2;
24
-    /**
25
-     * @const A SVM type for regression (predicting a value rather than just a class)
26
-     */
27
-    public const EPSILON_SVR = 3;
28
-    /**
29
-     * @const A NU style SVM regression type
30
-     */
31
-    public const NU_SVR = 4;
32
-    /**
33
-     * @const A very simple kernel, can work well on large document classification problems
34
-     */
35
-    public const KERNEL_LINEAR = 0;
36
-    /**
37
-     * @const A polynomial kernel
38
-     */
39
-    public const KERNEL_POLY = 1;
40
-    /**
41
-     * @const The common Gaussian RBD kernel. Handles non-linear problems well and is a good default for classification
42
-     */
43
-    public const KERNEL_RBF = 2;
44
-    /**
45
-     * @const A kernel based on the sigmoid function. Using this makes the SVM very similar to a two layer sigmoid based neural network
46
-     */
47
-    public const KERNEL_SIGMOID = 3;
48
-    /**
49
-     * @const A precomputed kernel - currently unsupported.
50
-     */
51
-    public const KERNEL_PRECOMPUTED = 4;
52
-    /**
53
-     * @const The options key for the SVM type
54
-     */
55
-    public const OPT_TYPE = 101;
56
-    /**
57
-     * @const The options key for the kernel type
58
-     */
59
-    public const OPT_KERNEL_TYPE = 102;
60
-    /**
61
-     * @const OPT_DEGREE
62
-     */
63
-    public const OPT_DEGREE = 103;
64
-    /**
65
-     * @const Training parameter, boolean, for whether to use the shrinking heuristics
66
-     */
67
-    public const OPT_SHRINKING = 104;
68
-    /**
69
-     * @const Training parameter, boolean, for whether to collect and use probability estimates
70
-     */
71
-    public const OPT_PROPABILITY = 105;
72
-    /**
73
-     * @const Algorithm parameter for Poly, RBF and Sigmoid kernel types.
74
-     */
75
-    public const OPT_GAMMA = 201;
76
-    /**
77
-     * @const The option key for the nu parameter, only used in the NU_ SVM types
78
-     */
79
-    public const OPT_NU = 202;
80
-    /**
81
-     * @const The option key for the Epsilon parameter, used in epsilon regression
82
-     */
83
-    public const OPT_EPS = 203;
84
-    /**
85
-     * @const Training parameter used by Episilon SVR regression
86
-     */
87
-    public const OPT_P = 204;
88
-    /**
89
-     * @const Algorithm parameter for poly and sigmoid kernels
90
-     */
91
-    public const OPT_COEF_ZERO = 205;
92
-    /**
93
-     * @const The option for the cost parameter that controls tradeoff between errors and generality - effectively the penalty for misclassifying training examples.
94
-     */
95
-    public const OPT_C = 206;
96
-    /**
97
-     * @const Memory cache size, in MB
98
-     */
99
-    public const OPT_CACHE_SIZE = 207;
10
+	/* Constants */
11
+	/**
12
+	 * @const The basic C_SVC SVM type. The default, and a good starting point
13
+	 */
14
+	public const C_SVC = 0;
15
+	/**
16
+	 * @const NU_SVC type uses a different, more flexible, error weighting
17
+	 */
18
+	public const NU_SVC = 1;
19
+	/**
20
+	 * @const One class SVM type. Train just on a single class, using outliers as negative examples
21
+	 */
22
+	public const ONE_CLASS = 2;
23
+	/**
24
+	 * @const A SVM type for regression (predicting a value rather than just a class)
25
+	 */
26
+	public const EPSILON_SVR = 3;
27
+	/**
28
+	 * @const A NU style SVM regression type
29
+	 */
30
+	public const NU_SVR = 4;
31
+	/**
32
+	 * @const A very simple kernel, can work well on large document classification problems
33
+	 */
34
+	public const KERNEL_LINEAR = 0;
35
+	/**
36
+	 * @const A polynomial kernel
37
+	 */
38
+	public const KERNEL_POLY = 1;
39
+	/**
40
+	 * @const The common Gaussian RBD kernel. Handles non-linear problems well and is a good default for classification
41
+	 */
42
+	public const KERNEL_RBF = 2;
43
+	/**
44
+	 * @const A kernel based on the sigmoid function. Using this makes the SVM very similar to a two layer sigmoid based neural network
45
+	 */
46
+	public const KERNEL_SIGMOID = 3;
47
+	/**
48
+	 * @const A precomputed kernel - currently unsupported.
49
+	 */
50
+	public const KERNEL_PRECOMPUTED = 4;
51
+	/**
52
+	 * @const The options key for the SVM type
53
+	 */
54
+	public const OPT_TYPE = 101;
55
+	/**
56
+	 * @const The options key for the kernel type
57
+	 */
58
+	public const OPT_KERNEL_TYPE = 102;
59
+	/**
60
+	 * @const OPT_DEGREE
61
+	 */
62
+	public const OPT_DEGREE = 103;
63
+	/**
64
+	 * @const Training parameter, boolean, for whether to use the shrinking heuristics
65
+	 */
66
+	public const OPT_SHRINKING = 104;
67
+	/**
68
+	 * @const Training parameter, boolean, for whether to collect and use probability estimates
69
+	 */
70
+	public const OPT_PROPABILITY = 105;
71
+	/**
72
+	 * @const Algorithm parameter for Poly, RBF and Sigmoid kernel types.
73
+	 */
74
+	public const OPT_GAMMA = 201;
75
+	/**
76
+	 * @const The option key for the nu parameter, only used in the NU_ SVM types
77
+	 */
78
+	public const OPT_NU = 202;
79
+	/**
80
+	 * @const The option key for the Epsilon parameter, used in epsilon regression
81
+	 */
82
+	public const OPT_EPS = 203;
83
+	/**
84
+	 * @const Training parameter used by Episilon SVR regression
85
+	 */
86
+	public const OPT_P = 204;
87
+	/**
88
+	 * @const Algorithm parameter for poly and sigmoid kernels
89
+	 */
90
+	public const OPT_COEF_ZERO = 205;
91
+	/**
92
+	 * @const The option for the cost parameter that controls tradeoff between errors and generality - effectively the penalty for misclassifying training examples.
93
+	 */
94
+	public const OPT_C = 206;
95
+	/**
96
+	 * @const Memory cache size, in MB
97
+	 */
98
+	public const OPT_CACHE_SIZE = 207;
100 99
 
101
-    /* Methods */
102
-    /**
103
-     * Construct a new SVM object
104
-     *
105
-     * Constructs a new SVM object ready to accept training data.
106
-     * @throws SVMException Throws SVMException if the libsvm library could not be loaded
107
-     * @link https://www.php.net/manual/en/svm.construct.php
108
-     */
109
-    public function __construct() {}
100
+	/* Methods */
101
+	/**
102
+	 * Construct a new SVM object
103
+	 *
104
+	 * Constructs a new SVM object ready to accept training data.
105
+	 * @throws SVMException Throws SVMException if the libsvm library could not be loaded
106
+	 * @link https://www.php.net/manual/en/svm.construct.php
107
+	 */
108
+	public function __construct() {}
110 109
 
111
-    /**
112
-     * Test training params on subsets of the training data
113
-     *
114
-     * Crossvalidate can be used to test the effectiveness of the current parameter set on a subset of the training data. Given a problem set and a n "folds", it separates the problem set into n subsets, and the repeatedly trains on one subset and tests on another. While the accuracy will generally be lower than a SVM trained on the enter data set, the accuracy score returned should be relatively useful, so it can be used to test different training parameters.
115
-     * @param array $problem The problem data. This can either be in the form of an array, the URL of an SVMLight formatted file, or a stream to an opened SVMLight formatted datasource.
116
-     * @param int $number_of_folds The number of sets the data should be divided into and cross tested. A higher number means smaller training sets and less reliability. 5 is a good number to start with.
117
-     * @return float The correct percentage, expressed as a floating point number from 0-1. In the case of NU_SVC or EPSILON_SVR kernels the mean squared error will returned instead.
118
-     * @link https://www.php.net/manual/en/svm.crossvalidate.php
119
-     */
120
-    public function crossvalidate(array $problem, int $number_of_folds): float {}
110
+	/**
111
+	 * Test training params on subsets of the training data
112
+	 *
113
+	 * Crossvalidate can be used to test the effectiveness of the current parameter set on a subset of the training data. Given a problem set and a n "folds", it separates the problem set into n subsets, and the repeatedly trains on one subset and tests on another. While the accuracy will generally be lower than a SVM trained on the enter data set, the accuracy score returned should be relatively useful, so it can be used to test different training parameters.
114
+	 * @param array $problem The problem data. This can either be in the form of an array, the URL of an SVMLight formatted file, or a stream to an opened SVMLight formatted datasource.
115
+	 * @param int $number_of_folds The number of sets the data should be divided into and cross tested. A higher number means smaller training sets and less reliability. 5 is a good number to start with.
116
+	 * @return float The correct percentage, expressed as a floating point number from 0-1. In the case of NU_SVC or EPSILON_SVR kernels the mean squared error will returned instead.
117
+	 * @link https://www.php.net/manual/en/svm.crossvalidate.php
118
+	 */
119
+	public function crossvalidate(array $problem, int $number_of_folds): float {}
121 120
 
122
-    /**
123
-     * Return the current training parameters
124
-     *
125
-     * Retrieve an array containing the training parameters. The parameters will be keyed on the predefined SVM constants.
126
-     * @return array Returns an array of configuration settings.
127
-     * @link https://www.php.net/manual/en/svm.getoptions.php
128
-     */
129
-    public function getOptions(): array {}
121
+	/**
122
+	 * Return the current training parameters
123
+	 *
124
+	 * Retrieve an array containing the training parameters. The parameters will be keyed on the predefined SVM constants.
125
+	 * @return array Returns an array of configuration settings.
126
+	 * @link https://www.php.net/manual/en/svm.getoptions.php
127
+	 */
128
+	public function getOptions(): array {}
130 129
 
131
-    /**
132
-     * Set training parameters
133
-     *
134
-     * Set one or more training parameters.
135
-     * @param array $params An array of training parameters, keyed on the SVM constants.
136
-     * @return bool Return true on success, throws SVMException on error.
137
-     * @throws SVMException
138
-     * @link https://www.php.net/manual/en/svm.setoptions.php
139
-     */
140
-    public function setOptions(array $params): bool {}
130
+	/**
131
+	 * Set training parameters
132
+	 *
133
+	 * Set one or more training parameters.
134
+	 * @param array $params An array of training parameters, keyed on the SVM constants.
135
+	 * @return bool Return true on success, throws SVMException on error.
136
+	 * @throws SVMException
137
+	 * @link https://www.php.net/manual/en/svm.setoptions.php
138
+	 */
139
+	public function setOptions(array $params): bool {}
141 140
 
142
-    /**
143
-     * Create a SVMModel based on training data
144
-     *
145
-     * Train a support vector machine based on the supplied training data.
146
-     * @param array $problem The problem can be provided in three different ways. An array, where the data should start with the class label (usually 1 or -1) then followed by a sparse data set of dimension => data pairs. A URL to a file containing a SVM Light formatted problem, with the each line being a new training example, the start of each line containing the class (1, -1) then a series of tab separated data values shows as key:value. A opened stream pointing to a data source formatted as in the file above.
147
-     * @param array|null $weights Weights are an optional set of weighting parameters for the different classes, to help account for unbalanced training sets. For example, if the classes were 1 and -1, and -1 had significantly more example than one, the weight for -1 could be 0.5. Weights should be in the range 0-1.
148
-     * @return SVMModel Returns an SVMModel that can be used to classify previously unseen data. Throws SVMException on error
149
-     * @throws SMVException
150
-     * @link https://www.php.net/manual/en/svm.train.php
151
-     */
152
-    public function train(array $problem, array $weights = null): SVMModel {}
141
+	/**
142
+	 * Create a SVMModel based on training data
143
+	 *
144
+	 * Train a support vector machine based on the supplied training data.
145
+	 * @param array $problem The problem can be provided in three different ways. An array, where the data should start with the class label (usually 1 or -1) then followed by a sparse data set of dimension => data pairs. A URL to a file containing a SVM Light formatted problem, with the each line being a new training example, the start of each line containing the class (1, -1) then a series of tab separated data values shows as key:value. A opened stream pointing to a data source formatted as in the file above.
146
+	 * @param array|null $weights Weights are an optional set of weighting parameters for the different classes, to help account for unbalanced training sets. For example, if the classes were 1 and -1, and -1 had significantly more example than one, the weight for -1 could be 0.5. Weights should be in the range 0-1.
147
+	 * @return SVMModel Returns an SVMModel that can be used to classify previously unseen data. Throws SVMException on error
148
+	 * @throws SMVException
149
+	 * @link https://www.php.net/manual/en/svm.train.php
150
+	 */
151
+	public function train(array $problem, array $weights = null): SVMModel {}
153 152
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
  * @since 7.0
7 7
  * @link https://www.php.net/manual/en/class.svm.php
8 8
  */
9
-class SVM
10
-{
9
+class SVM {
11 10
     /* Constants */
12 11
     /**
13 12
      * @const The basic C_SVC SVM type. The default, and a good starting point
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/filter/filter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
  * returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
29 29
  */
30 30
 #[Pure]
31
-function filter_input(int $type, string $var_name, int $filter = FILTER_DEFAULT, array|int $options): mixed {}
31
+function filter_input(int $type, string $var_name, int $filter = FILTER_DEFAULT, array | int $options): mixed {}
32 32
 
33 33
 /**
34 34
  * Filters a variable with a specified filter
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
  * @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
85 85
  */
86 86
 #[Pure]
87
-function filter_var(mixed $value, int $filter = FILTER_DEFAULT, array|int $options): mixed {}
87
+function filter_var(mixed $value, int $filter = FILTER_DEFAULT, array | int $options): mixed {}
88 88
 
89 89
 /**
90 90
  * Gets external variables and optionally filters them
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
  * fails.
119 119
  */
120 120
 #[Pure]
121
-function filter_input_array(int $type, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {}
121
+function filter_input_array(int $type, array | int $options = FILTER_DEFAULT, bool $add_empty = true): array | false | null {}
122 122
 
123 123
 /**
124 124
  * Gets multiple variables and optionally filters them
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
  * the variable is not set.
150 150
  */
151 151
 #[Pure]
152
-function filter_var_array(array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {}
152
+function filter_var_array(array $array, array | int $options = FILTER_DEFAULT, bool $add_empty = true): array | false | null {}
153 153
 
154 154
 /**
155 155
  * Returns a list of all supported filters
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
  * @return int|false ID of a filter on success or <b>FALSE</b> if filter doesn't exist.
187 187
  */
188 188
 #[Pure]
189
-function filter_id(string $name): int|false {}
189
+function filter_id(string $name): int | false {}
190 190
 
191 191
 /**
192 192
  * POST variables.
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/mqseries/mqseries.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
  */
136 136
 function mqseries_strerror($reason)
137 137
 {
138
-    return (string)$reason;
138
+	return (string)$reason;
139 139
 }
140 140
 
141 141
 /*
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/expect/expect.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
  */
42 42
 function expect_popen(string $command)
43 43
 {
44
-    unset($command);
45
-    return false;
44
+	unset($command);
45
+	return false;
46 46
 }
47 47
 
48 48
 /**
@@ -94,6 +94,6 @@  discard block
 block discarded – undo
94 94
  */
95 95
 function expect_expectl($expect, array $cases, array &$match = []): int
96 96
 {
97
-    unset($expect, $cases, $match);
98
-    return 0;
97
+	unset($expect, $cases, $match);
98
+	return 0;
99 99
 }
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/leveldb/LevelDB.php 2 patches
Indentation   +116 added lines, -116 removed lines patch added patch discarded remove patch
@@ -6,149 +6,149 @@
 block discarded – undo
6 6
 
7 7
 class LevelDB
8 8
 {
9
-    /**
10
-     * @param string $name Path to database
11
-     * @param array  $options
12
-     * @param array  $read_options
13
-     * @param array  $write_options
14
-     */
15
-    public function __construct($name, array $options = [
16
-        'create_if_missing' => true, // if the specified database does not exist will create a new one
17
-        'error_if_exists' => false, // if the opened database exists will throw exception
18
-        'paranoid_checks' => false,
19
-        'block_cache_size' => 8 * (2 << 20),
20
-        'write_buffer_size' => 4 << 20,
21
-        'block_size' => 4096,
22
-        'max_open_files' => 1000,
23
-        'block_restart_interval' => 16,
24
-        'compression' => LEVELDB_SNAPPY_COMPRESSION,
25
-        'comparator' => null, // any callable parameter return 0, -1, 1
26
-    ], array $read_options = [
27
-        'verify_check_sum' => false, //may be set to true to force checksum verification of all data that is read from the file system on behalf of a particular read. By default, no such verification is done.
28
-        'fill_cache' => true, //When performing a bulk read, the application may set this to false to disable the caching so that the data processed by the bulk read does not end up displacing most of the cached contents.
29
-    ], array $write_options = [
30
-        //Only one element named sync in the write option array. By default, each write to leveldb is asynchronous.
31
-        'sync' => false
32
-    ]) {}
33
-
34
-    /**
35
-     * @param string $key
36
-     * @param array  $read_options
37
-     *
38
-     * @return string|false
39
-     */
40
-    public function get($key, array $read_options = []) {}
41
-
42
-    /**
43
-     * Alias of LevelDB::put()
44
-     *
45
-     * @param string $key
46
-     * @param string $value
47
-     * @param array  $write_options
48
-     */
49
-    public function set($key, $value, array $write_options = []) {}
50
-
51
-    /**
52
-     * @param string $key
53
-     * @param string $value
54
-     * @param array  $write_options
55
-     */
56
-    public function put($key, $value, array $write_options = []) {}
57
-
58
-    /**
59
-     * @param string $key
60
-     * @param array  $write_options
61
-     *
62
-     * @return bool
63
-     */
64
-    public function delete($key, array $write_options = []) {}
65
-
66
-    /**
67
-     * Executes all of the operations added in the write batch.
68
-     *
69
-     * @param LevelDBWriteBatch $batch
70
-     * @param array             $write_options
71
-     */
72
-    public function write(LevelDBWriteBatch $batch, array $write_options = []) {}
73
-
74
-    /**
75
-     * Valid properties:
76
-     * - leveldb.stats: returns the status of the entire db
77
-     * - leveldb.num-files-at-level: returns the number of files for each level. For example, you can use leveldb.num-files-at-level0 the number of files for zero level.
78
-     * - leveldb.sstables: returns current status of sstables
79
-     *
80
-     * @param string $name
81
-     *
82
-     * @return mixed
83
-     */
84
-    public function getProperty($name) {}
85
-
86
-    public function getApproximateSizes($start, $limit) {}
87
-
88
-    public function compactRange($start, $limit) {}
89
-
90
-    public function close() {}
91
-
92
-    /**
93
-     * @param array $options
94
-     *
95
-     * @return LevelDBIterator
96
-     */
97
-    public function getIterator(array $options = []) {}
98
-
99
-    /**
100
-     * @return LevelDBSnapshot
101
-     */
102
-    public function getSnapshot() {}
103
-
104
-    public static function destroy($name, array $options = []) {}
105
-
106
-    public static function repair($name, array $options = []) {}
9
+	/**
10
+	 * @param string $name Path to database
11
+	 * @param array  $options
12
+	 * @param array  $read_options
13
+	 * @param array  $write_options
14
+	 */
15
+	public function __construct($name, array $options = [
16
+		'create_if_missing' => true, // if the specified database does not exist will create a new one
17
+		'error_if_exists' => false, // if the opened database exists will throw exception
18
+		'paranoid_checks' => false,
19
+		'block_cache_size' => 8 * (2 << 20),
20
+		'write_buffer_size' => 4 << 20,
21
+		'block_size' => 4096,
22
+		'max_open_files' => 1000,
23
+		'block_restart_interval' => 16,
24
+		'compression' => LEVELDB_SNAPPY_COMPRESSION,
25
+		'comparator' => null, // any callable parameter return 0, -1, 1
26
+	], array $read_options = [
27
+		'verify_check_sum' => false, //may be set to true to force checksum verification of all data that is read from the file system on behalf of a particular read. By default, no such verification is done.
28
+		'fill_cache' => true, //When performing a bulk read, the application may set this to false to disable the caching so that the data processed by the bulk read does not end up displacing most of the cached contents.
29
+	], array $write_options = [
30
+		//Only one element named sync in the write option array. By default, each write to leveldb is asynchronous.
31
+		'sync' => false
32
+	]) {}
33
+
34
+	/**
35
+	 * @param string $key
36
+	 * @param array  $read_options
37
+	 *
38
+	 * @return string|false
39
+	 */
40
+	public function get($key, array $read_options = []) {}
41
+
42
+	/**
43
+	 * Alias of LevelDB::put()
44
+	 *
45
+	 * @param string $key
46
+	 * @param string $value
47
+	 * @param array  $write_options
48
+	 */
49
+	public function set($key, $value, array $write_options = []) {}
50
+
51
+	/**
52
+	 * @param string $key
53
+	 * @param string $value
54
+	 * @param array  $write_options
55
+	 */
56
+	public function put($key, $value, array $write_options = []) {}
57
+
58
+	/**
59
+	 * @param string $key
60
+	 * @param array  $write_options
61
+	 *
62
+	 * @return bool
63
+	 */
64
+	public function delete($key, array $write_options = []) {}
65
+
66
+	/**
67
+	 * Executes all of the operations added in the write batch.
68
+	 *
69
+	 * @param LevelDBWriteBatch $batch
70
+	 * @param array             $write_options
71
+	 */
72
+	public function write(LevelDBWriteBatch $batch, array $write_options = []) {}
73
+
74
+	/**
75
+	 * Valid properties:
76
+	 * - leveldb.stats: returns the status of the entire db
77
+	 * - leveldb.num-files-at-level: returns the number of files for each level. For example, you can use leveldb.num-files-at-level0 the number of files for zero level.
78
+	 * - leveldb.sstables: returns current status of sstables
79
+	 *
80
+	 * @param string $name
81
+	 *
82
+	 * @return mixed
83
+	 */
84
+	public function getProperty($name) {}
85
+
86
+	public function getApproximateSizes($start, $limit) {}
87
+
88
+	public function compactRange($start, $limit) {}
89
+
90
+	public function close() {}
91
+
92
+	/**
93
+	 * @param array $options
94
+	 *
95
+	 * @return LevelDBIterator
96
+	 */
97
+	public function getIterator(array $options = []) {}
98
+
99
+	/**
100
+	 * @return LevelDBSnapshot
101
+	 */
102
+	public function getSnapshot() {}
103
+
104
+	public static function destroy($name, array $options = []) {}
105
+
106
+	public static function repair($name, array $options = []) {}
107 107
 }
108 108
 
109 109
 class LevelDBIterator implements Iterator
110 110
 {
111
-    public function __construct(LevelDB $db, array $read_options = []) {}
111
+	public function __construct(LevelDB $db, array $read_options = []) {}
112 112
 
113
-    public function valid() {}
113
+	public function valid() {}
114 114
 
115
-    public function rewind() {}
115
+	public function rewind() {}
116 116
 
117
-    public function last() {}
117
+	public function last() {}
118 118
 
119
-    public function seek($key) {}
119
+	public function seek($key) {}
120 120
 
121
-    public function next() {}
121
+	public function next() {}
122 122
 
123
-    public function prev() {}
123
+	public function prev() {}
124 124
 
125
-    public function key() {}
125
+	public function key() {}
126 126
 
127
-    public function current() {}
127
+	public function current() {}
128 128
 
129
-    public function getError() {}
129
+	public function getError() {}
130 130
 
131
-    public function destroy() {}
131
+	public function destroy() {}
132 132
 }
133 133
 
134 134
 class LevelDBWriteBatch
135 135
 {
136
-    public function __construct() {}
136
+	public function __construct() {}
137 137
 
138
-    public function set($key, $value, array $write_options = []) {}
138
+	public function set($key, $value, array $write_options = []) {}
139 139
 
140
-    public function put($key, $value, array $write_options = []) {}
140
+	public function put($key, $value, array $write_options = []) {}
141 141
 
142
-    public function delete($key, array $write_options = []) {}
142
+	public function delete($key, array $write_options = []) {}
143 143
 
144
-    public function clear() {}
144
+	public function clear() {}
145 145
 }
146 146
 
147 147
 class LevelDBSnapshot
148 148
 {
149
-    public function __construct(LevelDB $db) {}
149
+	public function __construct(LevelDB $db) {}
150 150
 
151
-    public function release() {}
151
+	public function release() {}
152 152
 }
153 153
 
154 154
 class LevelDBException extends Exception {}
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 define("LEVELDB_SNAPPY_COMPRESSION", 1);
6 6
 
7
-class LevelDB
8
-{
7
+class LevelDB {
9 8
     /**
10 9
      * @param string $name Path to database
11 10
      * @param array  $options
@@ -106,8 +105,7 @@  discard block
 block discarded – undo
106 105
     public static function repair($name, array $options = []) {}
107 106
 }
108 107
 
109
-class LevelDBIterator implements Iterator
110
-{
108
+class LevelDBIterator implements Iterator {
111 109
     public function __construct(LevelDB $db, array $read_options = []) {}
112 110
 
113 111
     public function valid() {}
@@ -131,8 +129,7 @@  discard block
 block discarded – undo
131 129
     public function destroy() {}
132 130
 }
133 131
 
134
-class LevelDBWriteBatch
135
-{
132
+class LevelDBWriteBatch {
136 133
     public function __construct() {}
137 134
 
138 135
     public function set($key, $value, array $write_options = []) {}
@@ -144,8 +141,7 @@  discard block
 block discarded – undo
144 141
     public function clear() {}
145 142
 }
146 143
 
147
-class LevelDBSnapshot
148
-{
144
+class LevelDBSnapshot {
149 145
     public function __construct(LevelDB $db) {}
150 146
 
151 147
     public function release() {}
Please login to merge, or discard this patch.