File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff 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
115124function get_db_version () {
You can’t perform that action at this time.
0 commit comments