Anonymous avatar Anonymous committed 68238d6

Fix CS and remove unused "use" statements

Comments (0)

Files changed (19)

lib/Doctrine/DBAL/Migrations/AbortMigrationException.php

 
 class AbortMigrationException extends MigrationException
 {
-
 }

lib/Doctrine/DBAL/Migrations/AbstractMigration.php

 
 namespace Doctrine\DBAL\Migrations;
 
-use Doctrine\DBAL\Schema\Schema,
-    Doctrine\DBAL\Migrations\Configuration\Configuration,
-    Doctrine\DBAL\Migrations\Version;
+use Doctrine\DBAL\Migrations\Configuration\Configuration;
+use Doctrine\DBAL\Migrations\Version;
+use Doctrine\DBAL\Schema\Schema;
 
 /**
  * Abstract class for individual migrations to extend from.

lib/Doctrine/DBAL/Migrations/Configuration/AbstractFileConfiguration.php

      *
      * @param string $file The path to the configuration file
      *
-     * @return void
-     *
      * @throws MigrationException Throws exception if configuration file was already loaded
      */
     public function load($file)

lib/Doctrine/DBAL/Migrations/Configuration/Configuration.php

 
 namespace Doctrine\DBAL\Migrations\Configuration;
 
-use Doctrine\DBAL\Connection,
-    Doctrine\DBAL\Migrations\MigrationException,
-    Doctrine\DBAL\Migrations\Version,
-    Doctrine\DBAL\Migrations\OutputWriter,
-    Doctrine\DBAL\Schema\Table,
-    Doctrine\DBAL\Schema\Column,
-    Doctrine\DBAL\Types\Type;
+use Doctrine\DBAL\Connection;
+use Doctrine\DBAL\Migrations\MigrationException;
+use Doctrine\DBAL\Migrations\OutputWriter;
+use Doctrine\DBAL\Migrations\Version;
+use Doctrine\DBAL\Schema\Column;
+use Doctrine\DBAL\Schema\Table;
+use Doctrine\DBAL\Types\Type;
 
 /**
- * Default Migration Configurtion object used for configuring an instance of
+ * Default Migration Configuration object used for configuring an instance of
  * the Migration class. Set the connection, version table name, register migration
  * classes/versions, etc.
  *
     /**
      * Validation that this instance has all the required properties configured
      *
-     * @return void
      * @throws MigrationException
      */
     public function validate()

lib/Doctrine/DBAL/Migrations/SkipMigrationException.php

 
 class SkipMigrationException extends MigrationException
 {
-
 }

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/AbstractCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Command\Command,
-    Symfony\Component\Console\Input\InputInterface,
-    Symfony\Component\Console\Output\OutputInterface,
-    Symfony\Component\Console\Input\InputOption,
-    Doctrine\DBAL\Migrations\Migration,
-    Doctrine\DBAL\Migrations\MigrationException,
-    Doctrine\DBAL\Migrations\OutputWriter,
-    Doctrine\DBAL\Migrations\Configuration\Configuration,
-    Doctrine\DBAL\Migrations\Configuration\YamlConfiguration,
-    Doctrine\DBAL\Migrations\Configuration\XmlConfiguration;
+use Doctrine\DBAL\Migrations\Configuration\Configuration;
+use Doctrine\DBAL\Migrations\Configuration\YamlConfiguration;
+use Doctrine\DBAL\Migrations\Configuration\XmlConfiguration;
+use Doctrine\DBAL\Migrations\OutputWriter;
+use Symfony\Component\Console\Command\Command;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * CLI Command for adding and deleting migration versions from the version table.

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/DiffCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Input\InputInterface,
-    Symfony\Component\Console\Output\OutputInterface,
-    Symfony\Component\Console\Input\InputArgument,
-    Symfony\Component\Console\Input\InputOption,
-    Doctrine\ORM\Tools\SchemaTool,
-    Doctrine\DBAL\Version as DbalVersion,
-    Doctrine\DBAL\Migrations\Configuration\Configuration;
+use Doctrine\DBAL\Migrations\Configuration\Configuration;
+use Doctrine\DBAL\Version as DbalVersion;
+use Doctrine\ORM\Tools\SchemaTool;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * Command for generate migration classes by comparing your current database schema

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/ExecuteCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Input\InputInterface,
-    Symfony\Component\Console\Output\OutputInterface,
-    Symfony\Component\Console\Input\InputArgument,
-    Symfony\Component\Console\Input\InputOption,
-    Doctrine\DBAL\Migrations\Migration,
-    Doctrine\DBAL\Migrations\Configuration\Configuration,
-    Doctrine\DBAL\Migrations\Configuration\YamlConfiguration,
-    Doctrine\DBAL\Migrations\Configuration\XmlConfiguration;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * Command for executing single migrations up or down manually.

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/GenerateCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Input\InputInterface,
- Symfony\Component\Console\Output\OutputInterface,
- Symfony\Component\Console\Input\InputArgument,
- Symfony\Component\Console\Input\InputOption,
- Doctrine\DBAL\Migrations\MigrationException,
- Doctrine\DBAL\Migrations\Configuration\Configuration;
+use Doctrine\DBAL\Migrations\Configuration\Configuration;
+use Doctrine\DBAL\Migrations\MigrationException;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * Command for generating new blank migration classes
 
 namespace <namespace>;
 
-use Doctrine\DBAL\Migrations\AbstractMigration,
-    Doctrine\DBAL\Schema\Schema;
+use Doctrine\DBAL\Migrations\AbstractMigration;
+use Doctrine\DBAL\Schema\Schema;
 
 /**
  * Auto-generated Migration: Please modify to your needs!

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/MigrateCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Input\InputInterface,
-    Symfony\Component\Console\Output\OutputInterface,
-    Symfony\Component\Console\Input\InputArgument,
-    Symfony\Component\Console\Input\InputOption,
-    Doctrine\DBAL\Migrations\Migration,
-    Doctrine\DBAL\Migrations\Configuration\Configuration,
-    Doctrine\DBAL\Migrations\Configuration\YamlConfiguration,
-    Doctrine\DBAL\Migrations\Configuration\XmlConfiguration;
+use Doctrine\DBAL\Migrations\Migration;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * Command for executing a migration to a specified version or the latest available version.

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/StatusCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Input\InputInterface,
-    Symfony\Component\Console\Output\OutputInterface,
-    Symfony\Component\Console\Input\InputArgument,
-    Symfony\Component\Console\Input\InputOption,
-    Doctrine\DBAL\Migrations\Migration,
-    Doctrine\DBAL\Migrations\MigrationException,
-    Doctrine\DBAL\Migrations\Configuration\Configuration,
-    Doctrine\DBAL\Migrations\Configuration\YamlConfiguration,
-    Doctrine\DBAL\Migrations\Configuration\XmlConfiguration;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * Command to view the status of a set of migrations.

lib/Doctrine/DBAL/Migrations/Tools/Console/Command/VersionCommand.php

 
 namespace Doctrine\DBAL\Migrations\Tools\Console\Command;
 
-use Symfony\Component\Console\Input\InputInterface,
-    Symfony\Component\Console\Output\OutputInterface,
-    Symfony\Component\Console\Input\InputArgument,
-    Symfony\Component\Console\Input\InputOption,
-    Doctrine\DBAL\Migrations\Migration,
-    Doctrine\DBAL\Migrations\MigrationException,
-    Doctrine\DBAL\Migrations\Configuration\Configuration,
-    Doctrine\DBAL\Migrations\Configuration\YamlConfiguration,
-    Doctrine\DBAL\Migrations\Configuration\XmlConfiguration;
+use Doctrine\DBAL\Migrations\Migration;
+use Doctrine\DBAL\Migrations\MigrationException;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Input\InputArgument;
+use Symfony\Component\Console\Input\InputOption;
 
 /**
  * Command for manually adding and deleting migration versions from the version table.

lib/Doctrine/DBAL/Migrations/Version.php

      * @param array|string $sql
      * @param array        $params
      * @param array        $types
-     *
-     * @return void
      */
     public function addSql($sql, array $params = array(), array $types = array())
     {

tests/Doctrine/DBAL/Migrations/Tests/Configuration/AbstractConfigurationTest.php

 abstract class AbstractConfigurationTest extends \Doctrine\DBAL\Migrations\Tests\MigrationTestCase
 {
     /**
-     * @var \Doctrine\DBAL\Migrations\Configuration\Configuration
+     * @return \Doctrine\DBAL\Migrations\Configuration\Configuration
      */
     abstract public function loadConfiguration();
 
         $config = $this->loadConfiguration();
         $this->assertEquals('doctrine_migration_versions_test', $config->getMigrationsTableName());
     }
-}
+}

tests/Doctrine/DBAL/Migrations/Tests/Configuration/XmlConfigurationTest.php

 
         return $config;
     }
-}
+}

tests/Doctrine/DBAL/Migrations/Tests/Functional/FunctionalTest.php

     private $config;
 
     /**
-     * @var Connection
+     * @var \Doctrine\DBAL\Connection
      */
     private $connection;
 
         $table->addColumn('id', 'integer');
     }
 
-}
+}

tests/Doctrine/DBAL/Migrations/Tests/MigrationTest.php

     }
 
     /**
-     * @expectedException Doctrine\DBAL\Migrations\MigrationException
+     * @expectedException \Doctrine\DBAL\Migrations\MigrationException
      */
     public function testMigrateWithNoMigrationsThrowsException()
     {
 
         $sql = $migration->migrate();
     }
-}
+}

tests/Doctrine/DBAL/Migrations/Tests/MigrationTestCase.php

 
 namespace Doctrine\DBAL\Migrations\Tests;
 
-use Doctrine\Common\ClassLoader;
 use Doctrine\DBAL\DriverManager;
+use Doctrine\DBAL\Migrations\Configuration\Configuration;
 
 abstract class MigrationTestCase extends \PHPUnit_Framework_TestCase
 {
     public function getSqliteConnection()
     {
         $params = array('driver' => 'pdo_sqlite', 'memory' => true);
+
         return DriverManager::getConnection($params);
     }
 
     /**
-     * @return \Doctrine\DBAL\Migrations\Configuration\Configuration
+     * @return Configuration
      */
     public function getSqliteConfiguration()
     {
-        $config = new \Doctrine\DBAL\Migrations\Configuration\Configuration($this->getSqliteConnection());
+        $config = new Configuration($this->getSqliteConnection());
         $config->setMigrationsDirectory(\sys_get_temp_dir());
         $config->setMigrationsNamespace('DoctrineMigrations');
+
         return $config;
     }
-}
+}

tests/Doctrine/DBAL/Migrations/Tests/VersionTest.php

 <?php
 namespace Doctrine\DBAL\Migrations\Tests;
 
-
 use Doctrine\DBAL\Migrations\Tests\MigrationTestCase;
 use Doctrine\DBAL\Schema\Schema;
 use Doctrine\DBAL\Migrations\AbstractMigration;
     {
         return 'CustomVersionName';
     }
+
     public function down(Schema $schema) {}
     public function up(Schema $schema)   {}
-}
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.