Failed Conditions
Push — master ( 1e5239...9c9d2b )
by chihiro
39:16
created
src/Eccube/Form/Type/Admin/PageLayoutType.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
                 'label' => false,
42 42
                 'class' => 'Eccube\Entity\PageLayout',
43 43
                 'property' => 'name',
44
-                'query_builder' => function (EntityRepository $er) {
44
+                'query_builder' => function(EntityRepository $er) {
45 45
                     return $er
46 46
                         ->createQueryBuilder('l')
47 47
                         ->where('l.id <> 0')
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/AuthorityRoleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                 'label' => '拒否URL',
60 60
                 'required' => false,
61 61
             ))
62
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
62
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
63 63
                 $form = $event->getForm();
64 64
 
65 65
                 $Authority = $form['Authority']->getData();
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/TradelawType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 {
34 34
     protected $config;
35 35
 
36
-    public function __construct ($config)
36
+    public function __construct($config)
37 37
     {
38 38
         $this->config = $config;
39 39
     }
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/ShippingType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 'format' => 'yyyy-MM-dd',
142 142
                 'required' => false,
143 143
             ))
144
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($BaseInfo) {
144
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($BaseInfo) {
145 145
                 if ($BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
146 146
                     $form = $event->getForm();
147 147
                     $form->add('ShipmentItems', 'collection', array(
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                     ));
153 153
                 }
154 154
             })
155
-            ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
155
+            ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
156 156
                 /** @var \Eccube\Entity\Shipping $data */
157 157
                 $data = $event->getData();
158 158
                 /** @var \Symfony\Component\Form\Form $form */
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                     'empty_value' => '指定なし',
173 173
                     'empty_data' => null,
174 174
                     'required' => false,
175
-                    'query_builder' => function (EntityRepository $er) use($Delivery) {
175
+                    'query_builder' => function(EntityRepository $er) use($Delivery) {
176 176
                         return $er->createQueryBuilder('dt')
177 177
                             ->where('dt.Delivery = :Delivery')
178 178
                             ->setParameter('Delivery', $Delivery);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 ));
181 181
 
182 182
             })
183
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) {
183
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) {
184 184
                 $data = $event->getData();
185 185
                 $form = $event->getForm();
186 186
                 if (!$data) {
@@ -201,14 +201,14 @@  discard block
 block discarded – undo
201 201
                     'empty_value' => '指定なし',
202 202
                     'empty_data' => null,
203 203
                     'required' => false,
204
-                    'query_builder' => function (EntityRepository $er) use($Delivery) {
204
+                    'query_builder' => function(EntityRepository $er) use($Delivery) {
205 205
                         return $er->createQueryBuilder('dt')
206 206
                             ->where('dt.Delivery = :Delivery')
207 207
                             ->setParameter('Delivery', $Delivery);
208 208
                     },
209 209
                 ));
210 210
             })
211
-            ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($BaseInfo) {
211
+            ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($BaseInfo) {
212 212
                 if ($BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) {
213 213
                     $form = $event->getForm();
214 214
                     $shipmentItems = $form['ShipmentItems']->getData();
Please login to merge, or discard this patch.
src/Eccube/Form/Type/ShippingMultipleType.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
         $app = $this->app;
48 48
 
49 49
         $builder
50
-            ->addEventListener(FormEvents::POST_SET_DATA, function ($event) use ($app) {
50
+            ->addEventListener(FormEvents::POST_SET_DATA, function($event) use ($app) {
51 51
                 /** @var \Eccube\Entity\ShipmentItem $data */
52 52
                 $data = $event->getData();
53 53
                 /** @var \Symfony\Component\Form\Form $form */
Please login to merge, or discard this patch.
src/Eccube/Plugin/AbstractPluginManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@
 block discarded – undo
9 9
 
10 10
     CONST MIGRATION_TABLE_PREFIX = 'migration_';
11 11
 
12
-    public function migrationSchema($app,$migrationFilePath,$pluginCode,$version=null)
12
+    public function migrationSchema($app, $migrationFilePath, $pluginCode, $version = null)
13 13
     {
14 14
         $config = new Configuration($app['db']);
15 15
         $config->setMigrationsNamespace('DoctrineMigrations');
16 16
         $config->setMigrationsDirectory($migrationFilePath);
17
-        $config->registerMigrationsFromDirectory($migrationFilePath );
17
+        $config->registerMigrationsFromDirectory($migrationFilePath);
18 18
         $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode);
19 19
         $migration = new Migration($config);
20 20
                                   // null 又は 'last' を渡すと最新バージョンまでマイグレートする
Please login to merge, or discard this patch.
src/Eccube/Security/Voter/AuthorityVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function __construct(Application $app)
37 37
     {
38
-        $this->app     = $app;
38
+        $this->app = $app;
39 39
     }
40 40
 
41 41
     public function supportsAttribute($attribute)
Please login to merge, or discard this patch.
src/Eccube/Security/Core/Encoder/PasswordEncoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         if ($this->config['auth_type'] == 'PLAIN') {
54 54
             $res = $raw;
55 55
         } else {
56
-            $res = hash_hmac($this->config['password_hash_algos'], $raw . ':' . $this->config['auth_magic'], $salt);
56
+            $res = hash_hmac($this->config['password_hash_algos'], $raw.':'.$this->config['auth_magic'], $salt);
57 57
         }
58 58
 
59 59
         return $res;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         } else {
82 82
             // 旧バージョン(2.11未満)からの移行を考慮
83 83
             if (empty($salt)) {
84
-                $hash = sha1($raw . ':' . $this->config['auth_magic']);
84
+                $hash = sha1($raw.':'.$this->config['auth_magic']);
85 85
             } else {
86 86
                 $hash = $this->encodePassword($raw, $salt);
87 87
             }
Please login to merge, or discard this patch.
src/Eccube/Repository/CustomerRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
         if (isset($searchData['multi']) && Str::isNotBlank($searchData['multi'])) {
150 150
             //スペース除去
151
-            $clean_key_multi = preg_replace('/\s+|[ ]+/u', '',$searchData['multi']);
151
+            $clean_key_multi = preg_replace('/\s+|[ ]+/u', '', $searchData['multi']);
152 152
             if (preg_match('/^\d+$/', $clean_key_multi)) {
153 153
                 $qb
154 154
                     ->andWhere('c.id = :customer_id')
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
             } else {
157 157
                 $qb
158 158
                     ->andWhere('CONCAT(c.name01, c.name02) LIKE :name OR CONCAT(c.kana01, c.kana02) LIKE :kana OR c.email LIKE :email')
159
-                    ->setParameter('name', '%' . $clean_key_multi . '%')
160
-                    ->setParameter('kana', '%' . $clean_key_multi . '%')
161
-                    ->setParameter('email', '%' . $clean_key_multi . '%');
159
+                    ->setParameter('name', '%'.$clean_key_multi.'%')
160
+                    ->setParameter('kana', '%'.$clean_key_multi.'%')
161
+                    ->setParameter('email', '%'.$clean_key_multi.'%');
162 162
             }
163 163
         }
164 164
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         if (isset($searchData['tel']) && Str::isNotBlank($searchData['tel'])) {
210 210
             $qb
211 211
                 ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel')
212
-                ->setParameter('tel', '%' . $searchData['tel'] . '%');
212
+                ->setParameter('tel', '%'.$searchData['tel'].'%');
213 213
         }
214 214
 
215 215
         // buy_total
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                 ->leftJoin('c.Orders', 'o')
304 304
                 ->leftJoin('o.OrderDetails', 'od')
305 305
                 ->andWhere('od.product_name LIKE :buy_product_name OR od.product_code LIKE :buy_product_name')
306
-                ->setParameter('buy_product_name', '%' . $searchData['buy_product_code'] . '%');
306
+                ->setParameter('buy_product_name', '%'.$searchData['buy_product_code'].'%');
307 307
         }
308 308
 
309 309
         // Order By
Please login to merge, or discard this patch.