Commit 291d89c3 authored by Benjamin Morel's avatar Benjamin Morel

Clean up redundant annotations and dead code

parent 1c680e19
...@@ -22,7 +22,6 @@ class BlobTest extends DbalFunctionalTestCase ...@@ -22,7 +22,6 @@ class BlobTest extends DbalFunctionalTestCase
{ {
parent::setUp(); parent::setUp();
/** @var AbstractSchemaManager $sm */
$table = new Table('blob_table'); $table = new Table('blob_table');
$table->addColumn('id', 'integer'); $table->addColumn('id', 'integer');
$table->addColumn('clobfield', 'text'); $table->addColumn('clobfield', 'text');
......
...@@ -42,7 +42,6 @@ class DataAccessTest extends DbalFunctionalTestCase ...@@ -42,7 +42,6 @@ class DataAccessTest extends DbalFunctionalTestCase
return; return;
} }
/** @var AbstractSchemaManager $sm */
$table = new Table('fetch_table'); $table = new Table('fetch_table');
$table->addColumn('test_int', 'integer'); $table->addColumn('test_int', 'integer');
$table->addColumn('test_string', 'string'); $table->addColumn('test_string', 'string');
...@@ -601,7 +600,6 @@ class DataAccessTest extends DbalFunctionalTestCase ...@@ -601,7 +600,6 @@ class DataAccessTest extends DbalFunctionalTestCase
$table->addColumn('test_days', 'integer'); $table->addColumn('test_days', 'integer');
$table->setPrimaryKey(['test_date']); $table->setPrimaryKey(['test_date']);
/** @var AbstractSchemaManager $sm */
$sm = $this->connection->getSchemaManager(); $sm = $this->connection->getSchemaManager();
$sm->createTable($table); $sm->createTable($table);
......
...@@ -32,7 +32,6 @@ class MasterSlaveConnectionTest extends DbalFunctionalTestCase ...@@ -32,7 +32,6 @@ class MasterSlaveConnectionTest extends DbalFunctionalTestCase
} }
try { try {
/** @var AbstractSchemaManager $sm */
$table = new Table('master_slave_table'); $table = new Table('master_slave_table');
$table->addColumn('test_int', 'integer'); $table->addColumn('test_int', 'integer');
$table->setPrimaryKey(['test_int']); $table->setPrimaryKey(['test_int']);
......
...@@ -19,7 +19,6 @@ class ModifyLimitQueryTest extends DbalFunctionalTestCase ...@@ -19,7 +19,6 @@ class ModifyLimitQueryTest extends DbalFunctionalTestCase
parent::setUp(); parent::setUp();
if (! self::$tableCreated) { if (! self::$tableCreated) {
/** @var AbstractSchemaManager $sm */
$table = new Table('modify_limit_table'); $table = new Table('modify_limit_table');
$table->addColumn('test_int', 'integer'); $table->addColumn('test_int', 'integer');
$table->setPrimaryKey(['test_int']); $table->setPrimaryKey(['test_int']);
......
...@@ -51,7 +51,6 @@ class PortabilityTest extends DbalFunctionalTestCase ...@@ -51,7 +51,6 @@ class PortabilityTest extends DbalFunctionalTestCase
$this->portableConnection = DriverManager::getConnection($params, $this->connection->getConfiguration(), $this->connection->getEventManager()); $this->portableConnection = DriverManager::getConnection($params, $this->connection->getConfiguration(), $this->connection->getEventManager());
try { try {
/** @var AbstractSchemaManager $sm */
$table = new Table('portability_table'); $table = new Table('portability_table');
$table->addColumn('Test_Int', 'integer'); $table->addColumn('Test_Int', 'integer');
$table->addColumn('Test_String', 'string', ['fixed' => true, 'length' => 32]); $table->addColumn('Test_String', 'string', ['fixed' => true, 'length' => 32]);
......
...@@ -20,9 +20,6 @@ class TypeConversionTest extends DbalFunctionalTestCase ...@@ -20,9 +20,6 @@ class TypeConversionTest extends DbalFunctionalTestCase
{ {
parent::setUp(); parent::setUp();
/** @var AbstractSchemaManager $sm */
$sm = $this->connection->getSchemaManager();
$table = new Table('type_conversion'); $table = new Table('type_conversion');
$table->addColumn('id', 'integer', ['notnull' => false]); $table->addColumn('id', 'integer', ['notnull' => false]);
$table->addColumn('test_string', 'string', ['notnull' => false]); $table->addColumn('test_string', 'string', ['notnull' => false]);
......
...@@ -20,7 +20,6 @@ class WriteTest extends DbalFunctionalTestCase ...@@ -20,7 +20,6 @@ class WriteTest extends DbalFunctionalTestCase
parent::setUp(); parent::setUp();
try { try {
/** @var AbstractSchemaManager $sm */
$table = new Table('write_table'); $table = new Table('write_table');
$table->addColumn('id', 'integer', ['autoincrement' => true]); $table->addColumn('id', 'integer', ['autoincrement' => true]);
$table->addColumn('test_int', 'integer'); $table->addColumn('test_int', 'integer');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment