Skip to content

Commit cacd47e

Browse files
author
Ivan Gavryshko
committed
MAGETWO-31904: There is no validation for 'Table prefix' on Step 2: Add a Database during instalation...
- Fixed code style.
1 parent c436ce7 commit cacd47e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,7 @@ public function checkDatabaseConnection($dbName, $dbHost, $dbUser, $dbPass = '')
766766
*/
767767
public function checkDatabaseTablePrefix($prefix)
768768
{
769-
if ($prefix !=='' && !preg_match('/^([[:alnum:]]+)([[:alnum:]_]+)$/', $prefix)
770-
) {
769+
if ($prefix !== '' && !preg_match('/^([[:alnum:]]+)([[:alnum:]_]+)$/', $prefix)) {
771770
throw new \InvalidArgumentException('Table prefix is in wrong format.');
772771
}
773772

0 commit comments

Comments
 (0)