File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
setup/src/Magento/Setup/Model/ConfigOptionsList Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
- <?php declare (strict_types=1 );
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
2
8
namespace Magento \Setup \Model \ConfigOptionsList ;
3
9
4
10
use Magento \Framework \Config \ConfigOptionsListConstants ;
5
11
12
+ /**
13
+ * MySql driver options
14
+ */
6
15
class DriverOptions
7
16
{
8
17
/**
18
+ * Get driver options.
19
+ *
9
20
* @params array $options
10
21
* @return array
11
22
*/
12
- public function getDriverOptions ($ options )
23
+ public function getDriverOptions (array $ options ): array
13
24
{
14
25
$ driverOptionKeys = [
15
26
ConfigOptionsListConstants::KEY_MYSQL_SSL_KEY => ConfigOptionsListConstants::INPUT_KEY_DB_SSL_KEY ,
@@ -27,11 +38,13 @@ public function getDriverOptions($options)
27
38
}
28
39
29
40
/**
41
+ * Check if provided option exists.
42
+ *
30
43
* @param array $options
31
44
* @param string $driverOptionKey
32
45
* @return bool
33
46
*/
34
- private function optionExists ($ options , $ driverOptionKey )
47
+ private function optionExists (array $ options , string $ driverOptionKey ): bool
35
48
{
36
49
return $ options [$ driverOptionKey ] === false || !empty ($ options [$ driverOptionKey ]);
37
50
}
You can’t perform that action at this time.
0 commit comments