Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
misantron committed Jun 9, 2023
1 parent a2c2f83 commit 166f947
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Expand Up @@ -36,6 +36,7 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
services:
mysql:
image: "mysql:${{ matrix.db-version }}"
Expand Down
26 changes: 13 additions & 13 deletions src/Database/Metadata/AbstractMetadata.php
Expand Up @@ -56,6 +56,19 @@ abstract class AbstractMetadata implements Metadata
*/
protected $truncateCommand = 'TRUNCATE';

/**
* Creates a new database meta data object using the given pdo connection
* and schema name.
*
* @param PDO $pdo
* @param string $schema
*/
final public function __construct(PDO $pdo, $schema = '')
{
$this->pdo = $pdo;
$this->schema = $schema;
}

/**
* Creates a meta data object based on the driver of given $pdo object and
* $schema name.
Expand Down Expand Up @@ -110,19 +123,6 @@ public static function registerClassWithDriver($className, $pdoDriver)
throw new RuntimeException("Specified class for {$pdoDriver} driver ({$className}) does not extend PHPUnit_Extensions_Database_DB_MetaData.");
}

/**
* Creates a new database meta data object using the given pdo connection
* and schema name.
*
* @param PDO $pdo
* @param string $schema
*/
final public function __construct(PDO $pdo, $schema = '')
{
$this->pdo = $pdo;
$this->schema = $schema;
}

/**
* Returns the schema for the connection.
*
Expand Down

0 comments on commit 166f947

Please sign in to comment.