Completed
Push — master ( a0bb97...1e5239 )
by chihiro
36:06
created
src/Eccube/Repository/PageLayoutRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
             $this->app['config']['block_default_realdir'],
188 188
         );
189 189
         foreach ($readPaths as $readPath) {
190
-            $filePath = $readPath . '/' . $fileName . '.twig';
190
+            $filePath = $readPath.'/'.$fileName.'.twig';
191 191
             $fs = new Filesystem();
192 192
             if ($fs->exists($filePath)) {
193 193
                 return array(
Please login to merge, or discard this patch.
src/Eccube/Repository/Master/OrderStatusRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         foreach ($criteria as $col => $val) {
55 55
             $qb->andWhere($qb->expr()->notIn('o.'.$col, ':'.$col))
56
-                ->setParameter($col, (array)$val);
56
+                ->setParameter($col, (array) $val);
57 57
         }
58 58
 
59 59
         if (is_array($orderBy)) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/OrderDetailType.php 1 patch
Spacing   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 )));
111 111
 
112 112
         $app = $this->app;
113
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) {
113
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) {
114 114
             // モーダルからのPOST時に、金額等をセットする.
115 115
             if ('modal' === $app['request']->get('modal')) {
116 116
                 $data = $event->getData();
@@ -127,17 +127,13 @@  discard block
 block discarded – undo
127 127
                     $data['product_name'] = $Product->getName();
128 128
                     $data['product_code'] = $ProductClass->getCode();
129 129
                     $data['class_name1'] = $ProductClass->hasClassCategory1() ?
130
-                        $ProductClass->getClassCategory1()->getClassName() :
131
-                        null;
130
+                        $ProductClass->getClassCategory1()->getClassName() : null;
132 131
                     $data['class_name2'] = $ProductClass->hasClassCategory2() ?
133
-                        $ProductClass->getClassCategory2()->getClassName() :
134
-                        null;
132
+                        $ProductClass->getClassCategory2()->getClassName() : null;
135 133
                     $data['class_category_name1'] = $ProductClass->hasClassCategory1() ?
136
-                        $ProductClass->getClassCategory1()->getName() :
137
-                        null;
134
+                        $ProductClass->getClassCategory1()->getName() : null;
138 135
                     $data['class_category_name2'] = $ProductClass->hasClassCategory2() ?
139
-                        $ProductClass->getClassCategory2()->getName() :
140
-                        null;
136
+                        $ProductClass->getClassCategory2()->getName() : null;
141 137
                     $data['tax_rule'] = $TaxRule->getCalcRule()->getId();
142 138
                     $data['price'] = $ProductClass->getPrice02();
143 139
                     $data['quantity'] = empty($data['quantity']) ? 1 : $data['quantity'];
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/ShipmentItemType.php 1 patch
Spacing   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 )));
94 94
 
95 95
         $app = $this->app;
96
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($app) {
96
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($app) {
97 97
             // モーダルからのPOST時に、金額等をセットする.
98 98
             if ('modal' === $app['request']->get('modal')) {
99 99
                 $data = $event->getData();
@@ -108,17 +108,13 @@  discard block
 block discarded – undo
108 108
                     $data['product_name'] = $Product->getName();
109 109
                     $data['product_code'] = $ProductClass->getCode();
110 110
                     $data['class_name1'] = $ProductClass->hasClassCategory1() ?
111
-                        $ProductClass->getClassCategory1()->getClassName() :
112
-                        null;
111
+                        $ProductClass->getClassCategory1()->getClassName() : null;
113 112
                     $data['class_name2'] = $ProductClass->hasClassCategory2() ?
114
-                        $ProductClass->getClassCategory2()->getClassName() :
115
-                        null;
113
+                        $ProductClass->getClassCategory2()->getClassName() : null;
116 114
                     $data['class_category_name1'] = $ProductClass->hasClassCategory1() ?
117
-                        $ProductClass->getClassCategory1()->getName() :
118
-                        null;
115
+                        $ProductClass->getClassCategory1()->getName() : null;
119 116
                     $data['class_category_name2'] = $ProductClass->hasClassCategory2() ?
120
-                        $ProductClass->getClassCategory2()->getName() :
121
-                        null;
117
+                        $ProductClass->getClassCategory2()->getName() : null;
122 118
                     $data['price'] = $ProductClass->getPrice02();
123 119
                     $data['quantity'] = empty($data['quantity']) ? 1 : $data['quantity'];
124 120
                     $event->setData($data);
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/OrderType.php 1 patch
Spacing   +8 added lines, -10 removed lines patch added patch discarded remove patch
@@ -234,13 +234,13 @@  discard block
 block discarded – undo
234 234
                     '\Eccube\Entity\Customer'
235 235
                 )));
236 236
 
237
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($BaseInfo) {
237
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($BaseInfo) {
238 238
 
239 239
             $data = $event->getData();
240 240
             $orderDetails = &$data['OrderDetails'];
241 241
 
242 242
             // 数量0フィルター
243
-            $quantityFilter = function ($v) {
243
+            $quantityFilter = function($v) {
244 244
                 return !(isset($v['quantity']) && preg_match('/^0+$/', trim($v['quantity'])));
245 245
             };
246 246
 
@@ -249,10 +249,9 @@  discard block
 block discarded – undo
249 249
                 $shippings = &$data['Shippings'];
250 250
 
251 251
                 // 数量を抽出
252
-                $getQuantity = function ($v) {
252
+                $getQuantity = function($v) {
253 253
                     return (isset($v['quantity']) && preg_match('/^\d+$/', trim($v['quantity']))) ?
254
-                        trim($v['quantity']) :
255
-                        0;
254
+                        trim($v['quantity']) : 0;
256 255
                 };
257 256
 
258 257
                 foreach ($shippings as &$shipping) {
@@ -268,7 +267,7 @@  discard block
 block discarded – undo
268 267
                         $orderDetail['quantity'] = 0;
269 268
 
270 269
                         // 受注詳細と同じ商品規格のみ抽出
271
-                        $productClassFilter = function ($v) use ($orderDetail) {
270
+                        $productClassFilter = function($v) use ($orderDetail) {
272 271
                             return $orderDetail['ProductClass'] === $v['ProductClass'];
273 272
                         };
274 273
 
@@ -277,10 +276,9 @@  discard block
 block discarded – undo
277 276
                             if (!empty($shipping['ShipmentItems'])) {
278 277
 
279 278
                                 // 同じ商品規格の受注詳細の価格を適用
280
-                                $applyPrice = function (&$v) use ($orderDetail) {
279
+                                $applyPrice = function(&$v) use ($orderDetail) {
281 280
                                     $v['price'] = ($v['ProductClass'] === $orderDetail['ProductClass']) ?
282
-                                        $orderDetail['price'] :
283
-                                        $v['price'];
281
+                                        $orderDetail['price'] : $v['price'];
284 282
                                 };
285 283
                                 array_walk($shipping['ShipmentItems'], $applyPrice);
286 284
 
@@ -300,7 +298,7 @@  discard block
 block discarded – undo
300 298
 
301 299
             $event->setData($data);
302 300
         });
303
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
301
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
304 302
             $form = $event->getForm();
305 303
             $orderDetails = $form['OrderDetails']->getData();
306 304
             if (empty($orderDetails) || count($orderDetails) < 1) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Master/ProductListMaxType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
      */
38 38
     public function buildForm(FormBuilderInterface $builder, array $options)
39 39
     {
40
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
40
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
41 41
             $options = $event->getForm()->getConfig()->getOptions();
42 42
             if (!$event->getData()) {
43 43
                 $data = current(array_keys($options['choice_list']->getValues()));
44 44
                 $event->setData($data);
45 45
             }
46 46
         });
47
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
47
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
48 48
             $options = $event->getForm()->getConfig()->getOptions();
49 49
             $values = $options['choice_list']->getValues();
50 50
             if (!in_array($event->getData(), $values)) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Master/PageMaxType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
      */
38 38
     public function buildForm(FormBuilderInterface $builder, array $options)
39 39
     {
40
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
40
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
41 41
             $options = $event->getForm()->getConfig()->getOptions();
42 42
             if (!$event->getData()) {
43 43
                 $data = current(array_keys($options['choice_list']->getValues()));
44 44
                 $event->setData($data);
45 45
             }
46 46
         });
47
-        $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
47
+        $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
48 48
             $options = $event->getForm()->getConfig()->getOptions();
49 49
             $values = $options['choice_list']->getValues();
50 50
             if (!in_array($event->getData(), $values)) {
Please login to merge, or discard this patch.
eccube_install.php 1 patch
Spacing   +13 added lines, -14 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 out('EC-CUBE3 installer use database driver of ', null, false);
32 32
 
33 33
 $database_driver = 'pdo_sqlite';
34
-switch($argv[1]) {
34
+switch ($argv[1]) {
35 35
     case 'mysql':
36 36
         $database_driver = 'pdo_mysql';
37 37
         break;
@@ -166,8 +166,7 @@  discard block
 block discarded – undo
166 166
     putenv('MAIL_PASS='.(getenv('MAIL_PASS') ? getenv('MAIL_PASS') : null));
167 167
     putenv('ADMIN_ROUTE='.(getenv('ADMIN_ROUTE') ? getenv('ADMIN_ROUTE') : 'admin'));
168 168
     putenv('ROOT_URLPATH='.(getenv('ROOT_URLPATH') ? getenv('ROOT_URLPATH') : null));
169
-    putenv('AUTH_MAGIC='.(getenv('AUTH_MAGIC') ? getenv('AUTH_MAGIC') :
170
-                          substr(str_replace(array('/', '+', '='), '', base64_encode(openssl_random_pseudo_bytes(32 * 2))), 0, 32)));
169
+    putenv('AUTH_MAGIC='.(getenv('AUTH_MAGIC') ? getenv('AUTH_MAGIC') : substr(str_replace(array('/', '+', '='), '', base64_encode(openssl_random_pseudo_bytes(32 * 2))), 0, 32)));
171 170
 }
172 171
 
173 172
 function getExampleVariables()
@@ -366,15 +365,15 @@  discard block
 block discarded – undo
366 365
     foreach ($finder as $content) {
367 366
         $permission = $content->getPerms();
368 367
         // see also http://www.php.net/fileperms
369
-        if (!($permission & 0x0010) || !($permission & 0x0002)) {
368
+        if (!($permission&0x0010) || !($permission&0x0002)) {
370 369
             $realPath = $content->getRealPath();
371 370
             if ($verbose) {
372 371
                 out(sprintf('%s %s to ', $realPath, substr(sprintf('%o', $permission), -4)), 'info', false);
373 372
             }
374
-            $permission = !($permission & 0x0020) ? $permission += 040 : $permission; // g+r
375
-            $permission = !($permission & 0x0010) ? $permission += 020 : $permission; // g+w
376
-            $permission = !($permission & 0x0004) ? $permission += 04 : $permission;  // o+r
377
-            $permission = !($permission & 0x0002) ? $permission += 02 : $permission;  // o+w
373
+            $permission = !($permission&0x0020) ? $permission += 040 : $permission; // g+r
374
+            $permission = !($permission&0x0010) ? $permission += 020 : $permission; // g+w
375
+            $permission = !($permission&0x0004) ? $permission += 04 : $permission; // o+r
376
+            $permission = !($permission&0x0002) ? $permission += 02 : $permission; // o+w
378 377
             $result = chmod($realPath, $permission);
379 378
             if ($verbose) {
380 379
                 if ($result) {
@@ -405,13 +404,13 @@  discard block
 block discarded – undo
405 404
 
406 405
 function getConfig()
407 406
 {
408
-    $config = array (
407
+    $config = array(
409 408
         'auth_magic' => getenv('AUTH_MAGIC'),
410 409
         'password_hash_algos' => 'sha256',
411 410
         'shop_name' => getenv('SHOP_NAME'),
412 411
         'force_ssl' => NULL,
413 412
         'admin_allow_host' =>
414
-        array (
413
+        array(
415 414
         ),
416 415
         'cookie_lifetime' => 0,
417 416
         'locale' => 'ja',
@@ -423,9 +422,9 @@  discard block
 block discarded – undo
423 422
 
424 423
 function getDatabaseConfig($database_driver)
425 424
 {
426
-    $database = array (
425
+    $database = array(
427 426
         'database' =>
428
-        array (
427
+        array(
429 428
             'driver' => $database_driver,
430 429
         )
431 430
     );
@@ -452,9 +451,9 @@  discard block
 block discarded – undo
452 451
 
453 452
 function getMailConfig()
454 453
 {
455
-    $mail = array (
454
+    $mail = array(
456 455
         'mail' =>
457
-        array (
456
+        array(
458 457
             'transport' => getenv('MAIL_BACKEND'),
459 458
             'host' => getenv('MAIL_HOST'),
460 459
             'port' => getenv('MAIL_PORT'),
Please login to merge, or discard this patch.