Skip to content

Commit 5365dd2

Browse files
committed
AC-12085:: solved php cs issues
1 parent b0cda8b commit 5365dd2

File tree

1 file changed

+10
-9
lines changed
  • dev/tests/integration/framework/Magento/TestFramework/Db

1 file changed

+10
-9
lines changed

dev/tests/integration/framework/Magento/TestFramework/Db/Mysql.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ class Mysql extends \Magento\TestFramework\Db\AbstractDb
1616
/**
1717
* Mysql default Port.
1818
*/
19-
const DEFAULT_PORT = 3306;
19+
protected const DEFAULT_PORT = 3306;
2020

2121
/**
2222
* MariaDB minimum version.
2323
*/
24-
const MARIADB_MIN_VERSION = '11.4.';
24+
protected const MARIADB_MIN_VERSION = '11.4.';
2525

2626
/**
2727
* Name of configuration file.
2828
*/
29-
const DEFAULTS_EXTRA_FILE_NAME = 'defaults_extra.cnf';
29+
protected const DEFAULTS_EXTRA_FILE_NAME = 'defaults_extra.cnf';
3030

3131
/**
3232
* MySQL DB dump file
@@ -93,7 +93,7 @@ public function __construct($host, $user, $password, $schema, $varPath, \Magento
9393
public function cleanup()
9494
{
9595
$dbCommand = 'mysql';
96-
if($this->isMariaDB()){
96+
if ($this->isMariaDB()) {
9797
$dbCommand = 'mariadb';
9898
}
9999
$this->ensureDefaultsExtraFile();
@@ -139,7 +139,7 @@ public function storeDbDump()
139139
$this->ensureDefaultsExtraFile();
140140
$additionalArguments = [];
141141

142-
if($this->isMariaDB()){
142+
if ($this->isMariaDB()) {
143143
$dumpCommand = 'mariadb-dump';
144144
}
145145

@@ -185,13 +185,14 @@ public function restoreFromDbDump()
185185
}
186186

187187
$dbCommand = 'mysql';
188-
if($this->isMariaDB()){
188+
if ($this->isMariaDB()) {
189189
$dbCommand = 'mariadb';
190190
}
191191

192192
$this->_shell->execute(
193193
'%s --defaults-file=%s --host=%s --port=%s %s < %s',
194-
[$dbCommand, $this->_defaultsExtraFile, $this->_host, $this->_port, $this->_schema, $this->getSetupDbDumpFilename()]
194+
[$dbCommand, $this->_defaultsExtraFile, $this->_host, $this->_port,
195+
$this->_schema, $this->getSetupDbDumpFilename()]
195196
);
196197
}
197198

@@ -285,9 +286,9 @@ private function isMariaDB(): bool
285286

286287
$this->isMariaDB = (bool) preg_match('/-MariaDB/i', $version);
287288

288-
if($this->isMariaDB){
289+
if ($this->isMariaDB) {
289290
$pattern = "/\s*((?:[0-9]+\.?)+)/i";
290-
preg_match($pattern, $version,$matches);
291+
preg_match($pattern, $version, $matches);
291292
$currentVersion = $matches[1];
292293
if (!version_compare($currentVersion, self::MARIADB_MIN_VERSION, '>=')) {
293294
$this->isMariaDB = false;

0 commit comments

Comments
 (0)