@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $key = sprintf('keyword%s', $index); |
100 | 100 | $qb |
101 | 101 | ->andWhere(sprintf('p.name LIKE :%s OR p.search_word LIKE :%s', $key, $key)) |
102 | - ->setParameter($key, '%' . $keyword . '%'); |
|
102 | + ->setParameter($key, '%'.$keyword.'%'); |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $qb |
145 | 145 | ->andWhere('p.id = :id OR p.name LIKE :likeid OR pc.code LIKE :likeid') |
146 | 146 | ->setParameter('id', $id) |
147 | - ->setParameter('likeid', '%' . $searchData['id'] . '%'); |
|
147 | + ->setParameter('likeid', '%'.$searchData['id'].'%'); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | // code |
@@ -16,7 +16,7 @@ |
||
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 ;"); |
@@ -42,7 +42,7 @@ |
||
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 '); |
@@ -38,8 +38,8 @@ |
||
38 | 38 | public function up(Schema $schema) |
39 | 39 | { |
40 | 40 | // this up() migration is auto-generated, please modify it to your needs |
41 | - $t=$schema->getTable('dtb_product_class'); |
|
42 | - if(!$t->hasColumn('stock_unlimited') && $t->hasColumn('stock_unlimited_tmp')){ |
|
41 | + $t = $schema->getTable('dtb_product_class'); |
|
42 | + if (!$t->hasColumn('stock_unlimited') && $t->hasColumn('stock_unlimited_tmp')) { |
|
43 | 43 | $t->addColumn('stock_unlimited', 'smallint', array('NotNull'=>true, 'Default'=>0)); |
44 | 44 | } |
45 | 45 | } |
@@ -39,8 +39,8 @@ |
||
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 | } |
@@ -21,7 +21,7 @@ |
||
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 |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | class Version20151022094610 extends AbstractMigration |
12 | 12 | { |
13 | 13 | |
14 | - const DTB_CATEGORY='dtb_category'; |
|
15 | - const DTB_CLASS_CATEGORY='dtb_class_category'; |
|
16 | - const DTB_CLASS_NAME='dtb_class_name'; |
|
14 | + const DTB_CATEGORY = 'dtb_category'; |
|
15 | + const DTB_CLASS_CATEGORY = 'dtb_class_category'; |
|
16 | + const DTB_CLASS_NAME = 'dtb_class_name'; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @param Schema $schema |
@@ -22,27 +22,27 @@ discard block |
||
22 | 22 | { |
23 | 23 | // this up() migration is auto-generated, please modify it to your needs |
24 | 24 | // dtb_category |
25 | - $t_dtb_category=$schema->getTable(self::DTB_CATEGORY); |
|
26 | - if($t_dtb_category->hasColumn('category_name')){ |
|
25 | + $t_dtb_category = $schema->getTable(self::DTB_CATEGORY); |
|
26 | + if ($t_dtb_category->hasColumn('category_name')) { |
|
27 | 27 | $t_dtb_category->changeColumn('category_name', array('NotNull'=>true)); |
28 | 28 | } |
29 | - if($t_dtb_category->hasColumn('rank')){ |
|
29 | + if ($t_dtb_category->hasColumn('rank')) { |
|
30 | 30 | $t_dtb_category->changeColumn('rank', array('NotNull'=>true)); |
31 | 31 | } |
32 | 32 | // dtb_class_category |
33 | - $t_dtb_class_category=$schema->getTable(self::DTB_CLASS_CATEGORY); |
|
34 | - if($t_dtb_class_category->hasColumn('name')){ |
|
33 | + $t_dtb_class_category = $schema->getTable(self::DTB_CLASS_CATEGORY); |
|
34 | + if ($t_dtb_class_category->hasColumn('name')) { |
|
35 | 35 | $t_dtb_class_category->changeColumn('name', array('NotNull'=>true)); |
36 | 36 | } |
37 | - if($t_dtb_class_category->hasColumn('rank')){ |
|
37 | + if ($t_dtb_class_category->hasColumn('rank')) { |
|
38 | 38 | $t_dtb_class_category->changeColumn('rank', array('NotNull'=>true)); |
39 | 39 | } |
40 | 40 | // dtb_class_name |
41 | - $t_dtb_class_name=$schema->getTable(self::DTB_CLASS_NAME); |
|
42 | - if($t_dtb_class_name->hasColumn('name')){ |
|
41 | + $t_dtb_class_name = $schema->getTable(self::DTB_CLASS_NAME); |
|
42 | + if ($t_dtb_class_name->hasColumn('name')) { |
|
43 | 43 | $t_dtb_class_name->changeColumn('name', array('NotNull'=>true)); |
44 | 44 | } |
45 | - if($t_dtb_class_name->hasColumn('rank')){ |
|
45 | + if ($t_dtb_class_name->hasColumn('rank')) { |
|
46 | 46 | $t_dtb_class_name->changeColumn('rank', array('NotNull'=>true)); |
47 | 47 | } |
48 | 48 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | $PageLayout = new PageLayout(); |
31 | 31 | $PageLayout->setDeviceType($DeviceType); |
32 | - $PageLayout->setName( '商品購入/お届け先の追加'); |
|
32 | + $PageLayout->setName('商品購入/お届け先の追加'); |
|
33 | 33 | $PageLayout->setUrl('shopping_shipping_edit'); |
34 | 34 | $PageLayout->setFileName('Shopping/shipping_edit'); |
35 | 35 | $PageLayout->setEditFlg(2); |
@@ -38,7 +38,7 @@ discard block |
||
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); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $PageLayout = new PageLayout(); |
49 | 49 | $PageLayout->setDeviceType($DeviceType); |
50 | - $PageLayout->setName( '商品購入/購入エラー'); |
|
50 | + $PageLayout->setName('商品購入/購入エラー'); |
|
51 | 51 | $PageLayout->setUrl('shopping_error'); |
52 | 52 | $PageLayout->setFileName('Shopping/shopping_error'); |
53 | 53 | $PageLayout->setEditFlg(2); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $PageLayout = new PageLayout(); |
58 | 58 | $PageLayout->setDeviceType($DeviceType); |
59 | - $PageLayout->setName( 'ご利用ガイド'); |
|
59 | + $PageLayout->setName('ご利用ガイド'); |
|
60 | 60 | $PageLayout->setUrl('help_guide'); |
61 | 61 | $PageLayout->setFileName('Help/guide'); |
62 | 62 | $PageLayout->setEditFlg(2); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $PageLayout = new PageLayout(); |
66 | 66 | $PageLayout->setDeviceType($DeviceType); |
67 | - $PageLayout->setName( 'パスワード再発行(入力ページ)'); |
|
67 | + $PageLayout->setName('パスワード再発行(入力ページ)'); |
|
68 | 68 | $PageLayout->setUrl('forgot'); |
69 | 69 | $PageLayout->setFileName('Forgot/index'); |
70 | 70 | $PageLayout->setEditFlg(2); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | $PageLayout = new PageLayout(); |
74 | 74 | $PageLayout->setDeviceType($DeviceType); |
75 | - $PageLayout->setName( 'パスワード再発行(完了ページ)'); |
|
75 | + $PageLayout->setName('パスワード再発行(完了ページ)'); |
|
76 | 76 | $PageLayout->setUrl('forgot_complete'); |
77 | 77 | $PageLayout->setFileName('Forgot/complete'); |
78 | 78 | $PageLayout->setEditFlg(2); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | $PageLayout = new PageLayout(); |
83 | 83 | $PageLayout->setDeviceType($DeviceType); |
84 | - $PageLayout->setName( 'パスワード変更((完了ページ)'); |
|
84 | + $PageLayout->setName('パスワード変更((完了ページ)'); |
|
85 | 85 | $PageLayout->setUrl('forgot_reset'); |
86 | 86 | $PageLayout->setFileName('Forgot/reset'); |
87 | 87 | $PageLayout->setEditFlg(2); |
@@ -24,7 +24,7 @@ |
||
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(); |