Completed
Push — master ( a0bb97...1e5239 )
by chihiro
36:06
created
src/Eccube/Twig/Extension/EccubeExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     public function getCsrfTokenForAnchor()
120 120
     {
121 121
         $token = $this->app['form.csrf_provider']->getToken(Constant::TOKEN_NAME)->getValue();
122
-        return 'token-for-anchor=\'' . $token . '\'';
122
+        return 'token-for-anchor=\''.$token.'\'';
123 123
     }
124 124
 
125 125
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function getPriceFilter($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',')
155 155
     {
156 156
         $price = number_format($number, $decimals, $decPoint, $thousandsSep);
157
-        $price = '¥ ' . $price;
157
+        $price = '¥ '.$price;
158 158
 
159 159
         return $price;
160 160
     }
Please login to merge, or discard this patch.
src/Eccube/Form/Type/PriceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             new Assert\GreaterThanOrEqual(array('value' => 0)),
48 48
         );
49 49
 
50
-        $constraints = function (Options $options) use ($defaultValues) {
50
+        $constraints = function(Options $options) use ($defaultValues) {
51 51
             if (false !== $options['required']) {
52 52
                 return array_merge($defaultValues, array(new Assert\NotBlank()));
53 53
             }
Please login to merge, or discard this patch.
src/Eccube/Form/Type/TelType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $builder->setAttribute('tel02_name', $options['tel02_name']);
78 78
         $builder->setAttribute('tel03_name', $options['tel03_name']);
79 79
         // todo 変
80
-        $builder->addEventListener(FormEvents::POST_BIND, function ($event) use ($builder) {
80
+        $builder->addEventListener(FormEvents::POST_BIND, function($event) use ($builder) {
81 81
             $form = $event->getForm();
82 82
             $count = 0;
83 83
             if ($form[$builder->getName().'01']->getData() != '') {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/NameType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
         }
63 63
 
64 64
         if (empty($options['lastname_name'])) {
65
-            $options['lastname_name'] = $builder->getName() . '01';
65
+            $options['lastname_name'] = $builder->getName().'01';
66 66
         }
67 67
         if (empty($options['firstname_name'])) {
68
-            $options['firstname_name'] = $builder->getName() . '02';
68
+            $options['firstname_name'] = $builder->getName().'02';
69 69
         }
70 70
 
71 71
         $builder
Please login to merge, or discard this patch.
src/Eccube/Form/Type/ShippingMultipleItemType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     new Assert\Regex(array('pattern' => '/^\d+$/')),
64 64
                 ),
65 65
             ))
66
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($app) {
66
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($app) {
67 67
                 $form = $event->getForm();
68 68
 
69 69
                 if ($app->isGranted('IS_AUTHENTICATED_FULLY')) {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     $form->add('customer_address', 'entity', array(
73 73
                         'class' => 'Eccube\Entity\CustomerAddress',
74 74
                         'property' => 'shippingMultipleDefaultName',
75
-                        'query_builder' => function (EntityRepository $er) use ($Customer) {
75
+                        'query_builder' => function(EntityRepository $er) use ($Customer) {
76 76
                             return $er->createQueryBuilder('ca')
77 77
                                 ->where('ca.Customer = :Customer')
78 78
                                 ->orderBy("ca.id", "ASC")
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                     }
105 105
                 }
106 106
             })
107
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
107
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
108 108
                 /** @var \Eccube\Entity\Shipping $data */
109 109
                 $data = $event->getData();
110 110
                 /** @var \Symfony\Component\Form\Form $form */
Please login to merge, or discard this patch.
src/Eccube/Form/Type/ShippingItemType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $app = $this->app;
49 49
 
50 50
         $builder
51
-            ->addEventListener(FormEvents::PRE_SET_DATA, function ($event) use ($app) {
51
+            ->addEventListener(FormEvents::PRE_SET_DATA, function($event) use ($app) {
52 52
                 /** @var \Eccube\Entity\Shipping $data */
53 53
                 $data = $event->getData();
54 54
                 /** @var \Symfony\Component\Form\Form $form */
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                         'empty_data' => null,
103 103
                     ));
104 104
             })
105
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
105
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
106 106
                 /** @var \Eccube\Entity\Shipping $data */
107 107
                 $data = $event->getData();
108 108
                 /** @var \Symfony\Component\Form\Form $form */
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 }
119 119
 
120 120
             })
121
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
121
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
122 122
                 /** @var \Eccube\Entity\Shipping $data */
123 123
                 $data = $event->getData();
124 124
                 /** @var \Symfony\Component\Form\Form $form */
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step4Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                     new Assert\Callback(array($this, 'validate')),
97 97
                 ),
98 98
             ))
99
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) {
99
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) {
100 100
                 $form = $event->getForm();
101 101
                 $data = $form->getData();
102 102
                 try {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);
122 122
                     $conn->connect();
123 123
                 } catch (\Exception $e) {
124
-                    $form['database']->addError(new FormError('データベースに接続できませんでした。' . $e->getMessage()));
124
+                    $form['database']->addError(new FormError('データベースに接続できませんでした。'.$e->getMessage()));
125 125
                 }
126 126
             });
127 127
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function validate($data, ExecutionContext $context, $param = null)
138 138
     {
139 139
         $parameters = $this->app['request']->get('install_step4');
140
-        if ($parameters['database'] != 'pdo_sqlite'){
140
+        if ($parameters['database'] != 'pdo_sqlite') {
141 141
             $context->validateValue($data, array(
142 142
                 new Assert\NotBlank()
143 143
             ));
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Install/Step3Type.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,19 +141,19 @@
 block discarded – undo
141 141
                 'help' => 'メーラーバックエンドがSMTPかつSMTP-AUTH使用時のみ指定',
142 142
                 'required' => false,
143 143
             ))
144
-            ->addEventListener(FormEvents::POST_SUBMIT, function ($event) use($app)  {
144
+            ->addEventListener(FormEvents::POST_SUBMIT, function($event) use($app)  {
145 145
                 $form = $event->getForm();
146 146
                 $data = $form->getData();
147 147
 
148 148
                 $ips = preg_split("/\R/", $data['admin_allow_hosts'], null, PREG_SPLIT_NO_EMPTY);
149 149
 
150
-                foreach($ips as $ip) {
150
+                foreach ($ips as $ip) {
151 151
                     $errors = $app['validator']->validateValue($ip, array(
152 152
                             new Assert\Ip(),
153 153
                         )
154 154
                     );
155 155
                     if ($errors->count() != 0) {
156
-                        $form['admin_allow_hosts']->addError(new FormError($ip . 'はIPv4アドレスではありません。'));
156
+                        $form['admin_allow_hosts']->addError(new FormError($ip.'はIPv4アドレスではありません。'));
157 157
                     }
158 158
                 }
159 159
             })
Please login to merge, or discard this patch.
src/Eccube/Form/Type/MasterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             'expanded' => false,
42 42
             'required' => false,
43 43
             'empty_value' => false,
44
-            'query_builder' => function (EntityRepository $er) {
44
+            'query_builder' => function(EntityRepository $er) {
45 45
                 return $er->createQueryBuilder('m')
46 46
                     ->orderBy('m.rank', 'ASC');
47 47
             },
Please login to merge, or discard this patch.