@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | use Faker\Factory as Faker; |
| 9 | 9 | |
| 10 | 10 | |
| 11 | -$config = parse_ini_file(__DIR__.'/config.ini',true); |
|
| 11 | +$config = parse_ini_file(__DIR__.'/config.ini', true); |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * create fixture |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $faker = Faker::create('ja_JP'); |
| 36 | 36 | Fixtures::add('faker', $faker); |
| 37 | 37 | |
| 38 | -$progress = (function() |
|
| 38 | +$progress = (function () |
|
| 39 | 39 | { |
| 40 | 40 | $current = ''; |
| 41 | 41 | return function ($key) use (&$current) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | ->getQuery() |
| 73 | 73 | ->getSingleScalarResult(); |
| 74 | 74 | // 受注生成件数 + 初期データの商品が生成されているはず |
| 75 | -if ($num < ($config['fixture_product_num']+2)) { |
|
| 75 | +if ($num < ($config['fixture_product_num'] + 2)) { |
|
| 76 | 76 | // 規格なしも含め $config['fixture_product_num'] の分だけ生成する |
| 77 | 77 | for ($i = 0; $i < $config['fixture_product_num'] - 1; $i++) { |
| 78 | 78 | $progress('Generating Products'); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | |
| 162 | 162 | /** 管理画面アカウント情報. */ |
| 163 | -Fixtures::add('admin_account',array( |
|
| 163 | +Fixtures::add('admin_account', array( |
|
| 164 | 164 | 'member' => $config['admin_user'], |
| 165 | 165 | 'password' => $config['admin_password'], |
| 166 | 166 | )); |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | $deleteShippingNotExistsOfItem = function () use ($entityManager) { |
| 227 | 227 | |
| 228 | - $Shippings= $entityManager->getRepository('Eccube\Entity\Shipping')->findAll(); |
|
| 228 | + $Shippings = $entityManager->getRepository('Eccube\Entity\Shipping')->findAll(); |
|
| 229 | 229 | |
| 230 | 230 | if ($Shippings) { |
| 231 | 231 | foreach ($Shippings as $Shipping) { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | /** 商品を検索するクロージャ. */ |
| 251 | 251 | Fixtures::add('findProducts', $findProducts); |
| 252 | 252 | |
| 253 | -$createProduct = function($product_name = null, $product_class_num = 3) use ($container) { |
|
| 253 | +$createProduct = function ($product_name = null, $product_class_num = 3) use ($container) { |
|
| 254 | 254 | return createProduct($container, $product_name, $product_class_num); |
| 255 | 255 | }; |
| 256 | 256 | Fixtures::add('createProduct', $createProduct); |