@@ -27,8 +27,6 @@ discard block |
||
| 27 | 27 | use Eccube\Application\ApplicationTrait; |
| 28 | 28 | use Eccube\Common\Constant; |
| 29 | 29 | use Eccube\Doctrine\DBAL\Types\UTCDateTimeType; |
| 30 | -use Eccube\Doctrine\ORM\Mapping\Driver\YamlDriver; |
|
| 31 | -use Eccube\EventListener\TransactionListener; |
|
| 32 | 30 | use Eccube\Plugin\ConfigManager as PluginConfigManager; |
| 33 | 31 | use Eccube\Routing\EccubeRouter; |
| 34 | 32 | use Eccube\ServiceProvider\MobileDetectServiceProvider; |
@@ -39,13 +37,11 @@ discard block |
||
| 39 | 37 | use Sergiors\Silex\Provider\TemplatingServiceProvider; |
| 40 | 38 | use Sergiors\Silex\Routing\ChainUrlGenerator; |
| 41 | 39 | use Sergiors\Silex\Routing\ChainUrlMatcher; |
| 42 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 43 | 40 | use Symfony\Component\Finder\Finder; |
| 44 | 41 | use Symfony\Component\HttpFoundation\Request; |
| 45 | 42 | use Symfony\Component\HttpFoundation\Response; |
| 46 | 43 | use Symfony\Component\HttpKernel\Event\FilterResponseEvent; |
| 47 | 44 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
| 48 | -use Symfony\Component\HttpKernel\Event\PostResponseEvent; |
|
| 49 | 45 | use Symfony\Component\HttpKernel\KernelEvents; |
| 50 | 46 | use Symfony\Component\Yaml\Yaml; |
| 51 | 47 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | return; |
| 19 | 19 | |
| 20 | - if($this->connection->getDatabasePlatform()->getName() == "mysql"){ |
|
| 20 | + if ($this->connection->getDatabasePlatform()->getName() == "mysql") { |
|
| 21 | 21 | // this up() migration is auto-generated, please modify it to your needs |
| 22 | 22 | $this->addSql("alter table dtb_base_info collate utf8_general_ci ;"); |
| 23 | 23 | $this->addSql("alter table dtb_block collate utf8_general_ci ;"); |
@@ -121,14 +121,14 @@ |
||
| 121 | 121 | $sql = sprintf( |
| 122 | 122 | "EXTRACT(%s FROM %s %s $op INTERVAL '$second SECONDS')", |
| 123 | 123 | $this->field, |
| 124 | - (string)$this->type, |
|
| 124 | + (string) $this->type, |
|
| 125 | 125 | $this->source->dispatch($sqlWalker)); |
| 126 | 126 | break; |
| 127 | 127 | default: |
| 128 | 128 | $sql = sprintf( |
| 129 | 129 | "EXTRACT(%s FROM %s %s $op INTERVAL $second SECOND)", |
| 130 | 130 | $this->field, |
| 131 | - (string)$this->type, |
|
| 131 | + (string) $this->type, |
|
| 132 | 132 | $this->source->dispatch($sqlWalker)); |
| 133 | 133 | } |
| 134 | 134 | |