Completed
Pull Request — experimental/sf (#3157)
by Kentaro
151:58 queued 143:16
created
src/Eccube/DependencyInjection/EccubeExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
         $stmt = $conn->query('select * from dtb_plugin');
68 68
         $plugins = $stmt->fetchAll();
69 69
 
70
-        $enabled = array_filter($plugins, function ($plugin) {
70
+        $enabled = array_filter($plugins, function($plugin) {
71 71
             return true === (bool) $plugin['enabled'];
72 72
         });
73 73
 
74
-        $disabled = array_filter($plugins, function ($plugin) {
74
+        $disabled = array_filter($plugins, function($plugin) {
75 75
             return false === (bool) $plugin['enabled'];
76 76
         });
77 77
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $sm = $conn->getSchemaManager();
138 138
         $tables = array_filter(
139 139
             $sm->listTables(),
140
-            function ($table) {
140
+            function($table) {
141 141
                 return $table->getName() === 'dtb_plugin';
142 142
             }
143 143
         );
Please login to merge, or discard this patch.
src/Eccube/Command/InstallerCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         $question = new ConfirmationQuestion('Is it OK?');
105 105
         if (!$this->io->askQuestion($question)) {
106 106
             // `no`の場合はキャンセルメッセージを出力して終了する
107
-            $this->setCode(function () {
107
+            $this->setCode(function() {
108 108
                 $this->io->success('EC-CUBE installation stopped.');
109 109
             });
110 110
 
Please login to merge, or discard this patch.
src/Eccube/Repository/TaxRuleRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
         }
219 219
 
220 220
         // 適用日降順, sortNo 降順にソートする
221
-        usort($TaxRules, function ($a, $b) {
221
+        usort($TaxRules, function($a, $b) {
222 222
             return $a->compareTo($b);
223 223
         });
224 224
 
Please login to merge, or discard this patch.
src/Eccube/Repository/AbstractRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,6 +48,6 @@
 block discarded – undo
48 48
     {
49 49
         // $options = $this->eccubeConfig['doctrine_cache'];
50 50
         // return $options['result_cache']['lifetime'];
51
-        return 0;               // FIXME
51
+        return 0; // FIXME
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/Eccube/DataCollector/EccubeDataCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             $Plugins = $this->pluginRepository->findBy([], ['code' => 'ASC']);
128 128
 
129 129
             foreach (array_keys($this->data['plugins']) as $pluginCode) {
130
-                $Plugin = array_filter($Plugins, function ($Plugin) use ($pluginCode) {
130
+                $Plugin = array_filter($Plugins, function($Plugin) use ($pluginCode) {
131 131
                     return $Plugin->getCode() == $pluginCode;
132 132
                 });
133 133
                 if (!empty($Plugin) && count($Plugin) > 0) {
Please login to merge, or discard this patch.
src/Eccube/Controller/Block/CartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
         // TODO ここで集計しないほうがよい?
53 53
         $this->execPurchaseFlow($Carts);
54 54
 
55
-        $totalQuantity = array_reduce($Carts, function ($total, $Cart) {
55
+        $totalQuantity = array_reduce($Carts, function($total, $Cart) {
56 56
             /* @var Cart $Cart */
57 57
             $total += $Cart->getTotalQuantity();
58 58
 
59 59
             return $total;
60 60
         }, 0);
61
-        $totalPrice = array_reduce($Carts, function ($total, $Cart) {
61
+        $totalPrice = array_reduce($Carts, function($total, $Cart) {
62 62
             /* @var Cart $Cart */
63 63
             $total += $Cart->getTotalPrice();
64 64
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     protected function execPurchaseFlow($Carts)
76 76
     {
77 77
         /** @var PurchaseFlowResult[] $flowResults */
78
-        $flowResults = array_map(function ($Cart) {
78
+        $flowResults = array_map(function($Cart) {
79 79
             $purchaseContext = new PurchaseContext($Cart, $this->getUser());
80 80
 
81 81
             return $this->purchaseFlow->calculate($Cart, $purchaseContext);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/OrderController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         $em->getConfiguration()->setSQLLogger(null);
310 310
 
311 311
         $response = new StreamedResponse();
312
-        $response->setCallback(function () use ($request) {
312
+        $response->setCallback(function() use ($request) {
313 313
             // CSV種別を元に初期化.
314 314
             $this->csvExportService->initCsvType(CsvType::CSV_TYPE_ORDER);
315 315
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
             // データ行の出力.
324 324
             $this->csvExportService->setExportQueryBuilder($qb);
325
-            $this->csvExportService->exportData(function ($entity, $csvService) use ($request) {
325
+            $this->csvExportService->exportData(function($entity, $csvService) use ($request) {
326 326
                 $Csvs = $csvService->getCsvs();
327 327
 
328 328
                 $Order = $entity;
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         $em->getConfiguration()->setSQLLogger(null);
392 392
 
393 393
         $response = new StreamedResponse();
394
-        $response->setCallback(function () use ($request) {
394
+        $response->setCallback(function() use ($request) {
395 395
             // CSV種別を元に初期化.
396 396
             $this->csvExportService->initCsvType(CsvType::CSV_TYPE_SHIPPING);
397 397
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 
405 405
             // データ行の出力.
406 406
             $this->csvExportService->setExportQueryBuilder($qb);
407
-            $this->csvExportService->exportData(function ($entity, $csvService) use ($request) {
407
+            $this->csvExportService->exportData(function($entity, $csvService) use ($request) {
408 408
                 /** @var Csv[] $Csvs */
409 409
                 $Csvs = $csvService->getCsvs();
410 410
 
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Content/FileController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@
 block discarded – undo
317 317
     private function getFileList($nowDir)
318 318
     {
319 319
         $topDir = $this->getuserDataDir();
320
-        $filter = function (\SplFileInfo $file) use ($topDir) {
320
+        $filter = function(\SplFileInfo $file) use ($topDir) {
321 321
             $acceptPath = realpath($topDir);
322 322
             $targetPath = $file->getRealPath();
323 323
 
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
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
 
152 152
         // ダウンロード完了後にファイルを削除する.
153 153
         // http://stackoverflow.com/questions/15238897/removing-file-after-delivering-response-with-silex-symfony
154
-        $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function () use (
154
+        $this->eventDispatcher->addListener(KernelEvents::TERMINATE, function() use (
155 155
             $tmpDir,
156 156
             $tarFile,
157 157
             $tarGzFile
Please login to merge, or discard this patch.