Skip to content

Commit dae93cf

Browse files
Copilotswissspidy
andcommitted
Fix PHPCS: format multi-item arrays with each value on new line
Co-authored-by: swissspidy <[email protected]>
1 parent f0b0d40 commit dae93cf

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

utils/behat-tags.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ function get_db_type_and_version() {
5757

5858
if ( null === $client_binary ) {
5959
// No client binary found, return defaults.
60-
return array( 'type' => 'mysql', 'version' => '' );
60+
return array(
61+
'type' => 'mysql',
62+
'version' => '',
63+
);
6164
}
6265

6366
// Build connection parameters from environment variables.
@@ -97,7 +100,10 @@ function get_db_type_and_version() {
97100

98101
// If the connection failed, return defaults.
99102
if ( 0 !== $return_code || empty( $version_string ) ) {
100-
return array( 'type' => 'mysql', 'version' => '' );
103+
return array(
104+
'type' => 'mysql',
105+
'version' => '',
106+
);
101107
}
102108

103109
// Detect database type from server version string.
@@ -109,7 +115,10 @@ function get_db_type_and_version() {
109115
preg_match( '@[0-9]+\.[0-9]+\.[0-9]+@', $version_string, $version );
110116
$db_version = isset( $version[0] ) ? $version[0] : '';
111117

112-
return array( 'type' => $db_type, 'version' => $db_version );
118+
return array(
119+
'type' => $db_type,
120+
'version' => $db_version,
121+
);
113122
}
114123

115124
function get_db_version() {

0 commit comments

Comments
 (0)