@@ -116,9 +116,9 @@ |
||
116 | 116 | |
117 | 117 | $this->file = $file; |
118 | 118 | $this->file->setFlags( |
119 | - \SplFileObject::READ_CSV | |
|
120 | - \SplFileObject::SKIP_EMPTY | |
|
121 | - \SplFileObject::READ_AHEAD | |
|
119 | + \SplFileObject::READ_CSV| |
|
120 | + \SplFileObject::SKIP_EMPTY| |
|
121 | + \SplFileObject::READ_AHEAD| |
|
122 | 122 | \SplFileObject::DROP_NEW_LINE |
123 | 123 | ); |
124 | 124 | $this->file->setCsvControl( |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | $pathExpression = new PathExpression( |
72 | - PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, |
|
72 | + PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, |
|
73 | 73 | $identifierFieldName |
74 | 74 | ); |
75 | 75 | $pathExpression->type = $pathType; |
@@ -83,7 +83,7 @@ |
||
83 | 83 | return $log; |
84 | 84 | } |
85 | 85 | |
86 | - foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) { |
|
86 | + foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) { |
|
87 | 87 | // 上限に達した場合、処理を抜ける |
88 | 88 | if (count($log) >= $formData['line_max']) { |
89 | 89 | break; |
@@ -42,13 +42,13 @@ |
||
42 | 42 | */ |
43 | 43 | public function register(Container $app) |
44 | 44 | { |
45 | - $app->extend('form.type.extensions', function ($extensions) use ($app) { |
|
45 | + $app->extend('form.type.extensions', function($extensions) use ($app) { |
|
46 | 46 | $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension(); |
47 | 47 | |
48 | 48 | return $extensions; |
49 | 49 | }); |
50 | 50 | |
51 | - $app->extend('form.types', function ($types) use ($app) { |
|
51 | + $app->extend('form.types', function($types) use ($app) { |
|
52 | 52 | $types[] = new \Eccube\Form\Type\Install\Step1Type($app); |
53 | 53 | $types[] = new \Eccube\Form\Type\Install\Step3Type($app); |
54 | 54 | $types[] = new \Eccube\Form\Type\Install\Step4Type($app); |
@@ -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_loader']->loadChoiceList()->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_loader']->loadChoiceList()->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_loader']->loadChoiceList()->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_loader']->loadChoiceList()->getValues(); |
51 | 51 | if (!in_array($event->getData(), $values)) { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ->name('*.csv') |
44 | 44 | ->sort( |
45 | 45 | // 定義ファイルに記載の順にソート. |
46 | - function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
46 | + function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
47 | 47 | if (!isset($definition[$a->getFilename()])) { |
48 | 48 | throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename())); |
49 | 49 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | $builder->addEventListener( |
40 | 40 | FormEvents::PRE_SET_DATA, |
41 | - function (FormEvent $event) { |
|
41 | + function(FormEvent $event) { |
|
42 | 42 | $form = $event->getForm(); |
43 | 43 | $config = $form->getConfig(); |
44 | 44 | // data_classオプションが必要 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | public function register(Container $app) |
14 | 14 | { |
15 | - $app['plugin.query_customize.customer_search'] = function (Container $container) { |
|
15 | + $app['plugin.query_customize.customer_search'] = function(Container $container) { |
|
16 | 16 | return new AdminCustomerCustomizer(); |
17 | 17 | }; |
18 | 18 | } |