Completed
Push — 4.0 ( 687532...4f70fc )
by Ryo
06:14
created
src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use Doctrine\ORM\EntityManagerInterface;
17 17
 use Eccube\Entity\BaseInfo;
18
-use Eccube\Entity\ItemHolderInterface;
19 18
 use Eccube\Entity\BaseInfoRepository;
19
+use Eccube\Entity\ItemHolderInterface;
20 20
 use Eccube\Service\PurchaseFlow\ItemHolderProcessor;
21 21
 use Eccube\Service\PurchaseFlow\ProcessResult;
22 22
 use Eccube\Service\PurchaseFlow\PurchaseContext;
Please login to merge, or discard this patch.
src/Eccube/Service/PurchaseFlow/Processor/PaymentChargePreprocessor.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,18 +13,18 @@
 block discarded – undo
13 13
 
14 14
 namespace Eccube\Service\PurchaseFlow\Processor;
15 15
 
16
-use Eccube\Service\PurchaseFlow\ItemHolderPreprocessor;
17 16
 use Eccube\Entity\ItemHolderInterface;
18
-use Eccube\Service\PurchaseFlow\PurchaseContext;
19
-use Eccube\Entity\OrderItem;
20
-use Eccube\Repository\Master\OrderItemTypeRepository;
21
-use Eccube\Repository\Master\TaxDisplayTypeRepository;
22 17
 use Eccube\Entity\Master\OrderItemType;
23 18
 use Eccube\Entity\Master\TaxDisplayType;
19
+use Eccube\Entity\Master\TaxType;
24 20
 use Eccube\Entity\Order;
21
+use Eccube\Entity\OrderItem;
25 22
 use Eccube\Entity\Payment;
23
+use Eccube\Repository\Master\OrderItemTypeRepository;
24
+use Eccube\Repository\Master\TaxDisplayTypeRepository;
26 25
 use Eccube\Repository\Master\TaxTypeRepository;
27
-use Eccube\Entity\Master\TaxType;
26
+use Eccube\Service\PurchaseFlow\ItemHolderPreprocessor;
27
+use Eccube\Service\PurchaseFlow\PurchaseContext;
28 28
 
29 29
 class PaymentChargePreprocessor implements ItemHolderPreprocessor
30 30
 {
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/LogController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 use Eccube\Event\EccubeEvents;
18 18
 use Eccube\Event\EventArgs;
19 19
 use Eccube\Form\Type\Admin\LogType;
20
-use Symfony\Component\Routing\Annotation\Route;
21 20
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
22 21
 use Symfony\Component\HttpFoundation\Request;
22
+use Symfony\Component\Routing\Annotation\Route;
23 23
 
24 24
 class LogController extends AbstractController
25 25
 {
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/MasterdataController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 use Eccube\Event\EventArgs;
20 20
 use Eccube\Form\Type\Admin\MasterdataEditType;
21 21
 use Eccube\Form\Type\Admin\MasterdataType;
22
-use Symfony\Component\Routing\Annotation\Route;
23 22
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
24 23
 use Symfony\Component\HttpFoundation\Request;
24
+use Symfony\Component\Routing\Annotation\Route;
25 25
 
26 26
 class MasterdataController extends AbstractController
27 27
 {
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/MemberController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
 use Eccube\Event\EventArgs;
21 21
 use Eccube\Form\Type\Admin\MemberType;
22 22
 use Eccube\Repository\MemberRepository;
23
-use Symfony\Component\Routing\Annotation\Route;
24 23
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
25 24
 use Symfony\Component\HttpFoundation\Request;
25
+use Symfony\Component\Routing\Annotation\Route;
26 26
 use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
27 27
 use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
28 28
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/SecurityController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
 use Eccube\Form\Type\Admin\SecurityType;
18 18
 use Eccube\Util\CacheUtil;
19 19
 use Eccube\Util\StringUtil;
20
-use Symfony\Component\Routing\Annotation\Route;
21 20
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
22 21
 use Symfony\Component\HttpFoundation\Request;
22
+use Symfony\Component\Routing\Annotation\Route;
23 23
 use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
24 24
 
25 25
 class SecurityController extends AbstractController
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/SystemController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
 
16 16
 use Eccube\Common\Constant;
17 17
 use Eccube\Service\SystemService;
18
-use Symfony\Component\Routing\Annotation\Route;
19 18
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
20 19
 use Symfony\Component\HttpFoundation\Request;
21 20
 use Symfony\Component\HttpFoundation\Response;
21
+use Symfony\Component\Routing\Annotation\Route;
22 22
 
23 23
 class SystemController
24 24
 {
Please login to merge, or discard this patch.
codeception/acceptance/_bootstrap.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
 $faker = Faker::create('ja_JP');
47 47
 Fixtures::add('faker', $faker);
48 48
 
49
-$progress = (function() {
49
+$progress = (function () {
50 50
     $current = '';
51
-    return function($key) use (&$current) {
51
+    return function ($key) use (&$current) {
52 52
         if ($current !== $key) {
53 53
             if ($current !== '') {
54 54
                 echo PHP_EOL;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 /* カテゴリ一覧の配列. */
204 204
 Fixtures::add('categories', $categories);
205 205
 
206
-$findOrders = function() use ($entityManager) {
206
+$findOrders = function () use ($entityManager) {
207 207
     return $entityManager->getRepository('Eccube\Entity\Order')
208 208
         ->createQueryBuilder('o')
209 209
         ->getQuery()
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 /* 受注を検索するクロージャ. */
213 213
 Fixtures::add('findOrders', $findOrders);
214 214
 
215
-$findShippings = function() use ($entityManager) {
215
+$findShippings = function () use ($entityManager) {
216 216
     return $entityManager->getRepository('Eccube\Entity\Shipping')
217 217
         ->createQueryBuilder('o')
218 218
         ->getQuery()
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 /* 出荷を検索するクロージャ. */
222 222
 Fixtures::add('findShippings', $findShippings);
223 223
 
224
-$resetShippingDate = function() use ($entityManager) {
224
+$resetShippingDate = function () use ($entityManager) {
225 225
     $Shippings = $entityManager->getRepository('Eccube\Entity\Shipping')
226 226
         ->findAll();
227 227
     foreach ($Shippings as $Shipping) {
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 /* 出荷準備中に更新するクロージャ. */
235 235
 Fixtures::add('resetShippingDate', $resetShippingDate);
236 236
 
237
-$setShippingDate = function() use ($entityManager) {
237
+$setShippingDate = function () use ($entityManager) {
238 238
     $Shippings = $entityManager->getRepository('Eccube\Entity\Shipping')
239 239
         ->findAll();
240 240
     foreach ($Shippings as $Shipping) {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 /* 出荷済みに更新するクロージャ. */
248 248
 Fixtures::add('setShippingDate', $setShippingDate);
249 249
 
250
-$deleteShippingNotExistsOfItem = function() use ($entityManager) {
250
+$deleteShippingNotExistsOfItem = function () use ($entityManager) {
251 251
 
252 252
     $Shippings = $entityManager->getRepository('Eccube\Entity\Shipping')->findAll();
253 253
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 /* OrderItemの存在しない出荷を削除するクロージャ. */
266 266
 Fixtures::add('deleteShippingNotExistsOfItem', $deleteShippingNotExistsOfItem);
267 267
 
268
-$findProducts = function() use ($entityManager) {
268
+$findProducts = function () use ($entityManager) {
269 269
     return $entityManager->getRepository('Eccube\Entity\Product')
270 270
         ->createQueryBuilder('p')
271 271
         ->getQuery()
@@ -274,12 +274,12 @@  discard block
 block discarded – undo
274 274
 /* 商品を検索するクロージャ. */
275 275
 Fixtures::add('findProducts', $findProducts);
276 276
 
277
-$createProduct = function($product_name = null, $product_class_num = 3) use ($container) {
277
+$createProduct = function ($product_name = null, $product_class_num = 3) use ($container) {
278 278
     return createProduct($container, $product_name, $product_class_num);
279 279
 };
280 280
 Fixtures::add('createProduct', $createProduct);
281 281
 
282
-$createCustomer = function($email = null, $active = true) use ($container, $faker) {
282
+$createCustomer = function ($email = null, $active = true) use ($container, $faker) {
283 283
     if (is_null($email)) {
284 284
         $email = microtime(true).'.'.$faker->safeEmail;
285 285
     }
@@ -319,19 +319,19 @@  discard block
 block discarded – undo
319 319
 /* 受注を生成するクロージャ. */
320 320
 Fixtures::add('createOrders', $createOrders);
321 321
 
322
-$findPlugins = function() use ($entityManager) {
322
+$findPlugins = function () use ($entityManager) {
323 323
     return $entityManager->getRepository('Eccube\Entity\Plugin')->findAll();
324 324
 };
325 325
 /* プラグインを検索するクロージャ */
326 326
 Fixtures::add('findPlugins', $findPlugins);
327 327
 
328
-$findPluginByCode = function($code = null) use ($entityManager) {
328
+$findPluginByCode = function ($code = null) use ($entityManager) {
329 329
     return $entityManager->getRepository('Eccube\Entity\Plugin')->findOneBy(['code' => $code]);
330 330
 };
331 331
 /* プラグインを検索するクロージャ */
332 332
 Fixtures::add('findPluginByCode', $findPluginByCode);
333 333
 
334
-$findCustomers = function() use ($entityManager) {
334
+$findCustomers = function () use ($entityManager) {
335 335
     return $entityManager->getRepository('Eccube\Entity\Customer')
336 336
         ->createQueryBuilder('c')
337 337
         ->getQuery()
@@ -341,13 +341,13 @@  discard block
 block discarded – undo
341 341
 Fixtures::add('findCustomers', $findCustomers);
342 342
 
343 343
 /** 新着情報を検索するクロージャ */
344
-Fixtures::add('findNews', function() use ($entityManager) {
344
+Fixtures::add('findNews', function () use ($entityManager) {
345 345
     return $entityManager->getRepository(\Eccube\Entity\News::class)
346 346
         ->findBy([], ['sort_no' => 'DESC']);
347 347
 });
348 348
 
349 349
 /** 新着情報を登録するクロージャ */
350
-Fixtures::add('createNews', function($publishDate, $title, $description, $url = null) use ($entityManager) {
350
+Fixtures::add('createNews', function ($publishDate, $title, $description, $url = null) use ($entityManager) {
351 351
     $TopNews = $entityManager->getRepository(\Eccube\Entity\News::class)
352 352
         ->findOneBy([], ['sort_no' => 'DESC']);
353 353
     $sortNo = $TopNews ? $TopNews->getSortNo() + 1 : 1;
Please login to merge, or discard this patch.
src/Eccube/Controller/CartController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
 use Eccube\Repository\BaseInfoRepository;
21 21
 use Eccube\Repository\ProductClassRepository;
22 22
 use Eccube\Service\CartService;
23
+use Eccube\Service\OrderHelper;
23 24
 use Eccube\Service\PurchaseFlow\PurchaseContext;
24 25
 use Eccube\Service\PurchaseFlow\PurchaseFlow;
25 26
 use Eccube\Service\PurchaseFlow\PurchaseFlowResult;
26
-use Eccube\Service\OrderHelper;
27 27
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
28 28
 use Symfony\Component\HttpFoundation\Request;
29 29
 use Symfony\Component\Routing\Annotation\Route;
Please login to merge, or discard this patch.