Skip to content

Commit 211a731

Browse files
committed
Update: Fix lint errors
1 parent 1ae683f commit 211a731

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎features/bootstrap/SQLiteFeatureContext.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ public function aSqlDumpFileNamedWithContent( $filename, PyStringNode $content )
1818
/**
1919
* @Then /^the SQLite database should contain a table named "([^"]*)"$/
2020
*/
21-
public function theSqliteDatabaseShouldContainATableNamed( $tableName ) {
21+
public function theSqliteDatabaseShouldContainATableNamed( $table_name ) {
2222
$this->connectToDatabase();
23-
$result = $this->db->query( "SELECT name FROM sqlite_master WHERE type='table' AND name='$tableName'" );
23+
$result = $this->db->query( "SELECT name FROM sqlite_master WHERE type='table' AND name='$table_name'" );
2424
$row = $result->fetchArray();
2525
if ( ! $row ) {
26-
throw new Exception( "Table '$tableName' not found in the database." );
26+
throw new Exception( "Table '$table_name' not found in the database." );
2727
}
2828
}
2929

3030
/**
3131
* @Then /^the "([^"]*)" should contain a row with name "([^"]*)"$/
3232
*/
33-
public function theTableShouldContainARowWithName( $tableName, $name ) {
33+
public function theTableShouldContainARowWithName( $table_name, $name ) {
3434
$this->connectToDatabase();
35-
$result = $this->db->query( "SELECT * FROM $tableName WHERE name='$name'" );
35+
$result = $this->db->query( "SELECT * FROM $table_name WHERE name='$name'" );
3636
$row = $result->fetchArray();
3737
if ( ! $row ) {
38-
throw new Exception( "Row with name '$name' not found in table '$tableName'." );
38+
throw new Exception( "Row with name '$name' not found in table '$table_name'." );
3939
}
4040
}
4141

0 commit comments

Comments
 (0)