Completed
Push — support-coverage ( b5dae6...9a8e61 )
by Kentaro
55:48
created
src/Eccube/Form/Extension/DoctrineOrmExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     {
67 67
         $builder->addEventListener(
68 68
             FormEvents::PRE_SET_DATA,
69
-            function (FormEvent $event) {
69
+            function(FormEvent $event) {
70 70
                 $form = $event->getForm();
71 71
                 $config = $form->getConfig();
72 72
                 // data_classオプションが必要
Please login to merge, or discard this patch.
src/Eccube/Controller/Block/CartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@
 block discarded – undo
49 49
     {
50 50
         $Carts = $this->cartService->getCarts();
51 51
 
52
-        $totalQuantity = array_reduce($Carts, function ($total, $Cart) {
52
+        $totalQuantity = array_reduce($Carts, function($total, $Cart) {
53 53
             /* @var Cart $Cart */
54 54
             $total += $Cart->getTotalQuantity();
55 55
 
56 56
             return $total;
57 57
         }, 0);
58
-        $totalPrice = array_reduce($Carts, function ($total, $Cart) {
58
+        $totalPrice = array_reduce($Carts, function($total, $Cart) {
59 59
             /* @var Cart $Cart */
60 60
             $total += $Cart->getTotalPrice();
61 61
 
Please login to merge, or discard this patch.
src/Eccube/Controller/CartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
         $quantity = 0;
92 92
         $isDeliveryFree = false;
93 93
 
94
-        $totalQuantity = array_reduce($Carts, function ($total, $Cart) {
94
+        $totalQuantity = array_reduce($Carts, function($total, $Cart) {
95 95
             /* @var Cart $Cart */
96 96
             $total += $Cart->getQuantity();
97 97
 
98 98
             return $total;
99 99
         }, 0);
100
-        $totalPrice = array_reduce($Carts, function ($total, $Cart) {
100
+        $totalPrice = array_reduce($Carts, function($total, $Cart) {
101 101
             /* @var Cart $Cart */
102 102
             $total += $Cart->getTotalPrice();
103 103
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     protected function execPurchaseFlow($Carts)
123 123
     {
124 124
         /** @var PurchaseFlowResult[] $flowResults */
125
-        $flowResults = array_map(function ($Cart) {
125
+        $flowResults = array_map(function($Cart) {
126 126
             $purchaseContext = new PurchaseContext($Cart, $this->getUser());
127 127
 
128 128
             return $this->purchaseFlow->calculate($Cart, $purchaseContext);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Store/PluginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -529,7 +529,7 @@
 block discarded – undo
529 529
     {
530 530
         $curl = curl_init($url);
531 531
 
532
-        $options = [           // オプション配列
532
+        $options = [// オプション配列
533 533
             //HEADER
534 534
             CURLOPT_HTTPHEADER => [
535 535
                 'Authorization: '.base64_encode($authKey),
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Store/TemplateController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 
162 162
         // ダウンロード完了後にファイルを削除する.
163 163
         // http://stackoverflow.com/questions/15238897/removing-file-after-delivering-response-with-silex-symfony
164
-        $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function () use (
164
+        $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function() use (
165 165
             $tmpDir,
166 166
             $tarFile,
167 167
             $tarGzFile
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/MasterdataController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
                 $entity = new $entityName();
149 149
                 $sortNo = 0;
150 150
                 $ids = array_map(
151
-                    function ($v) {
151
+                    function($v) {
152 152
                         return $v['id'];
153 153
                     },
154 154
                     $data['data']
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/LogController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             return $log;
103 103
         }
104 104
 
105
-        foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)) as $line) {
105
+        foreach (array_reverse(file($logFile, FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)) as $line) {
106 106
             // 上限に達した場合、処理を抜ける
107 107
             if (count($log) >= $formData['line_max']) {
108 108
                 break;
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Setting/System/SecurityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             $env = file_get_contents($envFile);
69 69
 
70 70
             $adminAllowHosts = \json_encode(
71
-                array_filter(\explode("\n", StringUtil::convertLineFeed($data['admin_allow_hosts'])), function ($str) {
71
+                array_filter(\explode("\n", StringUtil::convertLineFeed($data['admin_allow_hosts'])), function($str) {
72 72
                     return StringUtil::isNotBlank($str);
73 73
                 })
74 74
             );
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductClassController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         if ($Product->hasProductClass()) {
109 109
             // 規格ありの商品は編集画面を表示する.
110 110
             $ProductClasses = $Product->getProductClasses()
111
-                ->filter(function ($pc) {
111
+                ->filter(function($pc) {
112 112
                     return $pc->getClassCategory1() !== null;
113 113
                 });
114 114
 
Please login to merge, or discard this patch.