Completed
Push — master ( a0bb97...1e5239 )
by chihiro
36:06
created
src/silex-doctrine-migrations/MigrationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $app['db.migrations.table_name'] = null;
25 25
         $app['db.migrations.name'] = null;
26 26
 
27
-        $app['dispatcher']->addListener(ConsoleEvents::INIT, function (ConsoleEvent $event) use ($app) {
27
+        $app['dispatcher']->addListener(ConsoleEvents::INIT, function(ConsoleEvent $event) use ($app) {
28 28
             $application = $event->getApplication();
29 29
 
30 30
             $helpers = array('dialog' => new DialogHelper());
Please login to merge, or discard this patch.
src/Eccube/Application/ApplicationTrait.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,32 +20,32 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function addSuccess($message, $namespace = 'front')
22 22
     {
23
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.success', $message);
23
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.success', $message);
24 24
     }
25 25
 
26 26
     public function addError($message, $namespace = 'front')
27 27
     {
28
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.error', $message);
28
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.error', $message);
29 29
     }
30 30
 
31 31
     public function addDanger($message, $namespace = 'front')
32 32
     {
33
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.danger', $message);
33
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.danger', $message);
34 34
     }
35 35
 
36 36
     public function addWarning($message, $namespace = 'front')
37 37
     {
38
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.warning', $message);
38
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.warning', $message);
39 39
     }
40 40
 
41 41
     public function addInfo($message, $namespace = 'front')
42 42
     {
43
-        $this['session']->getFlashBag()->add('eccube.' . $namespace . '.info', $message);
43
+        $this['session']->getFlashBag()->add('eccube.'.$namespace.'.info', $message);
44 44
     }
45 45
 
46 46
     public function addRequestError($message, $namespace = 'front')
47 47
     {
48
-        $this['session']->getFlashBag()->set('eccube.' . $namespace . '.request.error', $message);
48
+        $this['session']->getFlashBag()->set('eccube.'.$namespace.'.request.error', $message);
49 49
     }
50 50
 
51 51
     public function clearMessage()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         if (is_null($namespace)) {
65 65
             $this['session']->getFlashBag()->set('eccube.login.target.path', $targetPath);
66 66
         } else {
67
-            $this['session']->getFlashBag()->set('eccube.' . $namespace . '.login.target.path', $targetPath);
67
+            $this['session']->getFlashBag()->set('eccube.'.$namespace.'.login.target.path', $targetPath);
68 68
         }
69 69
     }
70 70
 
@@ -234,14 +234,14 @@  discard block
 block discarded – undo
234 234
         $eventName = $view;
235 235
         if ($this->isAdminRequest()) {
236 236
             // 管理画面の場合、event名に「Admin/」を付ける
237
-            $eventName = 'Admin/' . $view;
237
+            $eventName = 'Admin/'.$view;
238 238
         }
239
-        $this['monolog']->debug('Template Event Name : ' . $eventName);
239
+        $this['monolog']->debug('Template Event Name : '.$eventName);
240 240
 
241 241
         $this['eccube.event.dispatcher']->dispatch($eventName, $event);
242 242
 
243 243
         if ($response instanceof StreamedResponse) {
244
-            $response->setCallback(function () use ($twig, $view, $parameters) {
244
+            $response->setCallback(function() use ($twig, $view, $parameters) {
245 245
                 $twig->display($view, $parameters);
246 246
             });
247 247
         } else {
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20150812132454.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         // this up() migration is auto-generated, please modify it to your needs
22 22
         $t = $schema->getTable(self::NAME);
23 23
 
24
-        if($t->hasColumn('option_delivery_fee')){
24
+        if ($t->hasColumn('option_delivery_fee')) {
25 25
             $t->dropColumn('option_delivery_fee');
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20150722170707.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function up(Schema $schema)
17 17
     {
18 18
 
19
-        if($this->connection->getDatabasePlatform()->getName() == "mysql"){
19
+        if ($this->connection->getDatabasePlatform()->getName() == "mysql") {
20 20
             // this up() migration is auto-generated, please modify it to your needs
21 21
             $this->addSql("alter table  dtb_base_info                 collate utf8_general_ci ;");
22 22
             $this->addSql("alter table  dtb_block                     collate utf8_general_ci ;");
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20151023102323.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $PageLayout = new PageLayout();
29 29
         $PageLayout->setDeviceType($DeviceType);
30
-        $PageLayout->setName( '商品購入/お届け先の追加');
30
+        $PageLayout->setName('商品購入/お届け先の追加');
31 31
         $PageLayout->setUrl('shopping_shipping_edit');
32 32
         $PageLayout->setFileName('Shopping/shipping_edit');
33 33
         $PageLayout->setEditFlg(2);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $PageLayout = new PageLayout();
40 40
         $PageLayout->setDeviceType($DeviceType);
41
-        $PageLayout->setName( '商品購入/お届け先の複数指定(お届け先の追加)');
41
+        $PageLayout->setName('商品購入/お届け先の複数指定(お届け先の追加)');
42 42
         $PageLayout->setUrl('shopping_shipping_multiple_edit');
43 43
         $PageLayout->setFileName('Shopping/shipping_multiple_edit');
44 44
         $PageLayout->setEditFlg(2);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $PageLayout = new PageLayout();
51 51
         $PageLayout->setDeviceType($DeviceType);
52
-        $PageLayout->setName( '商品購入/購入エラー');
52
+        $PageLayout->setName('商品購入/購入エラー');
53 53
         $PageLayout->setUrl('shopping_error');
54 54
         $PageLayout->setFileName('Shopping/shopping_error');
55 55
         $PageLayout->setEditFlg(2);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $PageLayout = new PageLayout();
62 62
         $PageLayout->setDeviceType($DeviceType);
63
-        $PageLayout->setName( 'ご利用ガイド');
63
+        $PageLayout->setName('ご利用ガイド');
64 64
         $PageLayout->setUrl('help_guide');
65 65
         $PageLayout->setFileName('Help/guide');
66 66
         $PageLayout->setEditFlg(2);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $PageLayout = new PageLayout();
72 72
         $PageLayout->setDeviceType($DeviceType);
73
-        $PageLayout->setName( 'パスワード再発行(入力ページ)');
73
+        $PageLayout->setName('パスワード再発行(入力ページ)');
74 74
         $PageLayout->setUrl('forgot');
75 75
         $PageLayout->setFileName('Forgot/index');
76 76
         $PageLayout->setEditFlg(2);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $PageLayout = new PageLayout();
82 82
         $PageLayout->setDeviceType($DeviceType);
83
-        $PageLayout->setName( 'パスワード再発行(完了ページ)');
83
+        $PageLayout->setName('パスワード再発行(完了ページ)');
84 84
         $PageLayout->setUrl('forgot_complete');
85 85
         $PageLayout->setFileName('Forgot/complete');
86 86
         $PageLayout->setEditFlg(2);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $PageLayout = new PageLayout();
93 93
         $PageLayout->setDeviceType($DeviceType);
94
-        $PageLayout->setName( 'パスワード変更((完了ページ)');
94
+        $PageLayout->setName('パスワード変更((完了ページ)');
95 95
         $PageLayout->setUrl('forgot_reset');
96 96
         $PageLayout->setFileName('Forgot/reset');
97 97
         $PageLayout->setEditFlg(2);
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20151110174227.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $t_dtb_mail_history = $schema->getTable(self::DTB_MAIL_HISTORY);
25 25
 
26 26
         $keyName = '';
27
-        if($t_dtb_mail_history->hasColumn('creator_id')){
27
+        if ($t_dtb_mail_history->hasColumn('creator_id')) {
28 28
             $keys = $t_dtb_mail_history->getForeignKeys();
29 29
             foreach ($keys as $key) {
30 30
                 $column = $key->getColumns();
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20150806222639.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
     public function up(Schema $schema)
40 40
     {
41 41
         // this up() migration is auto-generated, please modify it to your needs
42
-        $t=$schema->getTable('dtb_product_class');
43
-        if($t->hasColumn('stock_unlimited_tmp')){
42
+        $t = $schema->getTable('dtb_product_class');
43
+        if ($t->hasColumn('stock_unlimited_tmp')) {
44 44
             $this->addSql('update dtb_product_class set stock_unlimited = stock_unlimited_tmp;');
45 45
             $t->dropColumn('stock_unlimited_tmp');
46 46
         }
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20150806184533.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $t = $schema->getTable('dtb_product_class');
43 43
         $c = $t->getColumn('stock_unlimited');
44 44
 
45
-        if($c->getType()->getName() != 'smallint'){
45
+        if ($c->getType()->getName() != 'smallint') {
46 46
             $this->addSql('ALTER TABLE dtb_product_class ADD stock_unlimited_tmp int ;');
47 47
             $this->addSql('UPDATE dtb_product_class SET stock_unlimited_tmp = 1 where stock_unlimited =  true ');
48 48
             $this->addSql('UPDATE dtb_product_class SET stock_unlimited_tmp = 0 where stock_unlimited <> true ');
Please login to merge, or discard this patch.
src/Eccube/Resource/doctrine/migration/Version20160413151321.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
         // path.ymlの更新
23 23
         $app = Application::getInstance();
24
-        $file = $app['config']['root_dir'] . '/app/config/eccube/path.yml';
24
+        $file = $app['config']['root_dir'].'/app/config/eccube/path.yml';
25 25
         $config = Yaml::parse(file_get_contents($file));
26 26
 
27 27
         if (!array_key_exists('public_path', $config)) {
Please login to merge, or discard this patch.