@@ -153,9 +153,9 @@ discard block |
||
| 153 | 153 | $qb |
| 154 | 154 | ->andWhere('c.id = :customer_id OR CONCAT(c.name01, c.name02) LIKE :name OR CONCAT(c.kana01, c.kana02) LIKE :kana OR c.email LIKE :email') |
| 155 | 155 | ->setParameter('customer_id', $id) |
| 156 | - ->setParameter('name', '%' . $clean_key_multi . '%') |
|
| 157 | - ->setParameter('kana', '%' . $clean_key_multi . '%') |
|
| 158 | - ->setParameter('email', '%' . $clean_key_multi . '%'); |
|
| 156 | + ->setParameter('name', '%'.$clean_key_multi.'%') |
|
| 157 | + ->setParameter('kana', '%'.$clean_key_multi.'%') |
|
| 158 | + ->setParameter('email', '%'.$clean_key_multi.'%'); |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | // Pref |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) { |
| 206 | 206 | $qb |
| 207 | 207 | ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel') |
| 208 | - ->setParameter('tel', '%' . $searchData['tel'] . '%'); |
|
| 208 | + ->setParameter('tel', '%'.$searchData['tel'].'%'); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | // buy_total |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | ->leftJoin('c.Orders', 'o') |
| 300 | 300 | ->leftJoin('o.OrderDetails', 'od') |
| 301 | 301 | ->andWhere('od.product_name LIKE :buy_product_name OR od.product_code LIKE :buy_product_name') |
| 302 | - ->setParameter('buy_product_name', '%' . $searchData['buy_product_code'] . '%'); |
|
| 302 | + ->setParameter('buy_product_name', '%'.$searchData['buy_product_code'].'%'); |
|
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | // Order By |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | $cmf->setEntityManager($em); |
| 165 | 165 | $metadatas = $cmf->getAllMetadata(); |
| 166 | 166 | |
| 167 | - $filters = array_map(function ($value) { |
|
| 167 | + $filters = array_map(function($value) { |
|
| 168 | 168 | return ucfirst(Inflector::camelize(str_replace('plg_', '', $value))); |
| 169 | 169 | }, $tableList); |
| 170 | 170 | $metadatas = MetadataFilter::filter($metadatas, $filters); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $app->match('/plugin/[lower_code]/hello', 'Plugin\[code]\Controller\[code]Controller::index')->bind('plugin_[code]_hello'); |
| 34 | 34 | |
| 35 | 35 | // Form |
| 36 | - $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) { |
|
| 36 | + $app['form.types'] = $app->share($app->extend('form.types', function($types) use ($app) { |
|
| 37 | 37 | $types[] = new [code]ConfigType(); |
| 38 | 38 | |
| 39 | 39 | return $types; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | // } |
| 58 | 58 | |
| 59 | 59 | // ログファイル設定 |
| 60 | - $app['monolog.logger.[lower_code]'] = $app->share(function ($app) { |
|
| 60 | + $app['monolog.logger.[lower_code]'] = $app->share(function($app) { |
|
| 61 | 61 | |
| 62 | 62 | $logger = new $app['monolog.logger.class']('[lower_code]'); |
| 63 | 63 | |
@@ -27,12 +27,12 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | //[INFO]index.php,install.phpをEC-CUBEルート直下に移動させる場合は、コメントアウトしている行に置き換える |
| 30 | -require __DIR__ . '/../autoload.php'; |
|
| 30 | +require __DIR__.'/../autoload.php'; |
|
| 31 | 31 | //require __DIR__ . '/autoload.php'; |
| 32 | 32 | |
| 33 | 33 | $app = new Eccube\InstallApplication(); |
| 34 | 34 | $app['debug'] = true; |
| 35 | -$app->before(function (\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) { |
|
| 35 | +$app->before(function(\Symfony\Component\HttpFoundation\Request $request, \Silex\Application $app) { |
|
| 36 | 36 | if (!$request->getSession()->isStarted()) { |
| 37 | 37 | $request->getSession()->start(); |
| 38 | 38 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | //require __DIR__.'/autoload.php'; |
| 28 | 28 | |
| 29 | 29 | ini_set('display_errors', 'Off'); |
| 30 | -error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); |
|
| 30 | +error_reporting(E_ALL&~E_DEPRECATED&~E_STRICT); |
|
| 31 | 31 | |
| 32 | 32 | // see http://silex.sensiolabs.org/doc/web_servers.html#php-5-4 |
| 33 | 33 | $filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']); |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | 'constraints' => array( |
| 54 | 54 | new Assert\NotBlank(array('message' => 'ファイルを選択してください。')), |
| 55 | 55 | new Assert\File(array( |
| 56 | - 'maxSize' => $app['config']['csv_size'] . 'M', |
|
| 57 | - 'maxSizeMessage' => 'CSVファイルは' . $app['config']['csv_size'] . 'M以下でアップロードしてください。', |
|
| 56 | + 'maxSize' => $app['config']['csv_size'].'M', |
|
| 57 | + 'maxSizeMessage' => 'CSVファイルは'.$app['config']['csv_size'].'M以下でアップロードしてください。', |
|
| 58 | 58 | )), |
| 59 | 59 | ), |
| 60 | 60 | )); |
@@ -38,14 +38,14 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 40 | 40 | { |
| 41 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 41 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 42 | 42 | $options = $event->getForm()->getConfig()->getOptions(); |
| 43 | 43 | if (!$event->getData()) { |
| 44 | 44 | $data = current(array_keys($options['choice_list']->getValues())); |
| 45 | 45 | $event->setData($data); |
| 46 | 46 | } |
| 47 | 47 | }); |
| 48 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 48 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 49 | 49 | $options = $event->getForm()->getConfig()->getOptions(); |
| 50 | 50 | $values = $options['choice_list']->getValues(); |
| 51 | 51 | if (!in_array($event->getData(), $values)) { |
@@ -38,14 +38,14 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 40 | 40 | { |
| 41 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 41 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 42 | 42 | $options = $event->getForm()->getConfig()->getOptions(); |
| 43 | 43 | if (!$event->getData()) { |
| 44 | 44 | $data = current(array_keys($options['choice_list']->getValues())); |
| 45 | 45 | $event->setData($data); |
| 46 | 46 | } |
| 47 | 47 | }); |
| 48 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 48 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 49 | 49 | $options = $event->getForm()->getConfig()->getOptions(); |
| 50 | 50 | $values = $options['choice_list']->getValues(); |
| 51 | 51 | if (!in_array($event->getData(), $values)) { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'label' => 'パスワード', |
| 93 | 93 | 'required' => false, |
| 94 | 94 | )) |
| 95 | - ->addEventListener(FormEvents::POST_SUBMIT, function ($event) { |
|
| 95 | + ->addEventListener(FormEvents::POST_SUBMIT, function($event) { |
|
| 96 | 96 | $form = $event->getForm(); |
| 97 | 97 | $data = $form->getData(); |
| 98 | 98 | try { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
| 118 | 118 | $conn->connect(); |
| 119 | 119 | } catch (\Exception $e) { |
| 120 | - $form['database']->addError(new FormError('データベースに接続できませんでした。' . $e->getMessage())); |
|
| 120 | + $form['database']->addError(new FormError('データベースに接続できませんでした。'.$e->getMessage())); |
|
| 121 | 121 | } |
| 122 | 122 | }); |
| 123 | 123 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public function validate($data, ExecutionContext $context, $param = null) |
| 134 | 134 | { |
| 135 | 135 | $parameters = $this->app['request']->get('install_step4'); |
| 136 | - if ($parameters['database'] != 'pdo_sqlite'){ |
|
| 136 | + if ($parameters['database'] != 'pdo_sqlite') { |
|
| 137 | 137 | $context->validateValue($data, array( |
| 138 | 138 | new Assert\NotBlank() |
| 139 | 139 | )); |